473,382 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Trouble Migrating VB6 App to ASP.NET

Currently in a VB6 application we are using SOAP to send an XML file
to another application. I have not been successfull in finding a way
to convert the code below to something similar in ASP.NET (VB.NET):

-----------
Dim Connector
Dim Serializer
Dim Reader

'On Error GoTo cleanUp

Set Connector = CreateObject("MSSOAP.HttpConnector")
Set Serializer = CreateObject("MSSOAP.SoapSerializer")
Set Reader = CreateObject("MSSOAP.SoapReader")

' The following Connector settings establish the SOAP Listener
' connection

Connector.Property("EndPointURL") = "http://" + txbHostListener +
":8080/ssc/servlet/SUGSoap"
Connector.Property("SoapAction") = "uri:Principal-" & txbComponent
Connector.Property("Timeout") = 300000
Connector.Connect

Dim StartTime
Dim ElapsedTime
StartTime = Now()

' The following builds the SOAP Message by Using the
' Serializer which generates the XML SOAP Message
' and executes the SOAP Request
Connector.BeginMessage
Serializer.Init Connector.InputStream
Serializer.startEnvelope
Serializer.SoapNamespace "xsi",
"http://www.w3.org/1999/XMLSchema-instance"
Serializer.startBody
Serializer.startElement txbMethod, "Principal-" &
txbComponent, , "m"
Serializer.startElement "strPayload"
Serializer.SoapAttribute "xsi:type", "", "xsd:string"
Serializer.writeString sscPayload
Serializer.endElement
Serializer.endElement
Serializer.endBody
Serializer.endEnvelope
Connector.EndMessage

' The following Reader object opens the SOAP Response
' and evaluates if any SOAP Fault was raised
' The SOAP Response is placed in the strResult variable

Reader.Load Connector.OutputStream
Dim strResult
If Not Reader.Fault Is Nothing Then
strResult = Reader.faultstring.Text
Else
strResult = Reader.RPCResult.Text
End If
------------------

Can anyone give me some assitance on this?

Thanks,

Tom
Nov 18 '05 #1
0 952

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra...
0
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this:...
4
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
11
by: Randy Weber | last post by:
I am getting unexpected results with a Like Query using ASP and an Access database. This query - SELECT PN, Qty From Inventory Where PN Like 'SSW-10%'; returns what I expect: PN ...
4
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
2
by: isaac rainsford | last post by:
i have some code that works fine in vb6, but when i paste it into vb.net 2003, i get errors thrown... can anyone tell me a good port of call for help converting this code??? i am assuming thing...
2
by: Jean-Claude Adams | last post by:
Hi Folks. I need some tutorial or some expertice about the subject. Because, i'm have a customer, need's change the actual appl, but the only issue is a dbf database, and the GUI is the older...
0
by: sdot | last post by:
i had a vb 6 application..an i am currently migrating it to .net... for now i have an active x listview.. AxMSComctlLib.AxListView for some reason..when i do this im getting an error ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.