473,395 Members | 1,539 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,395 software developers and data experts.

Porting SOAP calls from SOAP SDK to the new .NET WSE

TC
Hey All,

Below is a sample of the code that I was handed in VB using the SOAP SDK
--I did not write this -- don't shoot the messenger ;-)
Private Const ENC = "http://schemas.xmlsoap.org/soap/encoding/"
Private Const XSI = "http://www.w3.org/1999/XMLSchema-instance"
Private Const XSD = "http://www.w3.org/1999/XMLSchema"

Set Connector = New HttpConnector
Set Serializer = New SoapSerializer
Set Reader = New SoapReader

URI = "urn:" & "soap"
Connector.Property("EndPointURL") = "http://www.soaptest.com/soap.php"
Connector.Connect
Connector.Property("SoapAction") = URI & "#" & method
Connector.BeginMessage
Serializer.Init Connector.InputStream
Serializer.startEnvelope , ENC
Serializer.SoapNamespace "xsi", XSI
Serializer.SoapNamespace "SOAP-ENC", ENC
Serializer.SoapNamespace "xsd", XSD
Serializer.startBody
Serializer.startElement "trackmail", URI, , "method"
Serializer.startElement "subject"
Serializer.SoapAttribute "type", , "xsd:string", "xsi"
Serializer.writeString msgsubject
Serializer.endElement
Serializer.startElement "text"
Serializer.SoapAttribute "type", , "xsd:string", "xsi"
Serializer.writeString msgtext
Serializer.endElement

Serializer.endElement
Serializer.endBody
Serializer.endEnvelope
Connector.EndMessage

'have the reader parse the response
Reader.Load Connector.OutputStream

If Reader.RPCResult.nodeTypedValue = "Succeeded" Then
MsgBox "Success"
Else
MsgBox "Failed"
End If

I am looking to port these SOAP calls to C# using the new WSE. I assume
that I will need to make use of the new SoapWebRequest and such. However,
when I search the samples, none of them use SoapWebRequest.

Can anyone advise based upon the sample provided?

Thanks & Regards,

TC
Nov 23 '05 #1
0 983

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

Similar topics

6
by: Glauco | last post by:
I'm trying to use SOAPpy 0.10.1 for a client but is difficult to handle easly Is this library in use or i'm using an OLD death library ? I'm alone in find a lot of problem in a SOAP Client ?...
14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
0
by: Kyle K | last post by:
I am getting occasional errors when invoking calls on the low level API of the SOAP library (3.0 Toolkit). The HRESULT code is always 0x800A1518. The _com_error Description is "Connector:Http...
0
by: EagleRed | last post by:
I have written a Web service that I must access from a modified VC++ 6.0 console application. I am using the SOAP Toolkit version 2.0. I am using the HttpConnector, and the SoapSerializer to...
0
by: Leonid | last post by:
Hello, Please help me to resolve next problem: I have Web service installed on the network and I can communicate with it via WSDL file from several applications including VC++6 application...
0
by: TC | last post by:
Hey All, I have been asked to port a VB6 COM component that makes SOAP calls to .Net. The server side SOAP calls are written in PHP and after referencing the WSDL, the SOAP methods do not offer...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
31
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
1
by: libsfan01 | last post by:
Hi all Can anyone explain the relationship between SOAP and XMLHttpRequest in Javascript? What actually is SOAP? and how does it relate to the process of transferring data client-side through...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.