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

SOAP Call Retrieval

TC
Hello,

I have been asked to port a VB6 / SOAP SDK app to C# .Net using web services
and do it quickly. I have a remote SOAP interface that I've referenced and
can now call methods on.

What I am unsure of is how such items below from the SOAP SDK transfer to
..Net:

.Reader.RPCResult
.Reader.DOM

Any advice?

Regards,

TC

Nov 12 '05 #1
5 2028


TC wrote:

I have been asked to port a VB6 / SOAP SDK app to C# .Net using web services
and do it quickly. I have a remote SOAP interface that I've referenced and
can now call methods on.

What I am unsure of is how such items below from the SOAP SDK transfer to
.Net:

.Reader.RPCResult
.Reader.DOM

Any advice?


Where are you using .NET/C#, to build a client that accesses a web
service? You can do that by generating a proxy class in .NET from the
WSDL description the web service exposes and then you simply call
methods on an instance of the generated proxy class and get the result
of a web service method call as a .NET object. In this scenario you do
not deal in any way with low level stuff like the DOM of the whole SOAP
messages exchanged or like the DOM of a part of that message.
The proxy class in .NET works more like the SoapClient interface in the
SOAP SDK, there is no exposure to SOAP messages as XML DOM documents but
simply a proxy object having the methods the web services exposes and
the ability to get the result of a message call as a typed value in the
programming language you use.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 12 '05 #2
TC
Hey Martin,

OK.

Under these circumstances, what happens when the SOAP method is supposed to
return a list?

For example, I have been receiving an XML document with a list of names,
both first and last. How would such a thing be returned under this
scenario?

Regards,

TC

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:uD**************@TK2MSFTNGP14.phx.gbl...


TC wrote:

I have been asked to port a VB6 / SOAP SDK app to C# .Net using web
services
and do it quickly. I have a remote SOAP interface that I've referenced
and
can now call methods on.

What I am unsure of is how such items below from the SOAP SDK transfer to
.Net:

.Reader.RPCResult
.Reader.DOM

Any advice?


Where are you using .NET/C#, to build a client that accesses a web
service? You can do that by generating a proxy class in .NET from the WSDL
description the web service exposes and then you simply call methods on an
instance of the generated proxy class and get the result of a web service
method call as a .NET object. In this scenario you do not deal in any way
with low level stuff like the DOM of the whole SOAP messages exchanged or
like the DOM of a part of that message.
The proxy class in .NET works more like the SoapClient interface in the
SOAP SDK, there is no exposure to SOAP messages as XML DOM documents but
simply a proxy object having the methods the web services exposes and the
ability to get the result of a message call as a typed value in the
programming language you use.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Nov 12 '05 #3


TC wrote:

Under these circumstances, what happens when the SOAP method is supposed to
return a list?

For example, I have been receiving an XML document with a list of names,
both first and last. How would such a thing be returned under this
scenario?


I think it is best you simply run the tool that comes with .NET to
create a proxy class, wsdl.exe, against the WSDL of the that service you
want to call and then you will see which .NET types the methods of the
proxy object return.
An introduction to the type marshalling done is here:
<http://samples.gotdotnet.com/quickstart/aspplus/doc/webservicetypes.aspx>
An introduction explaining the use of the tool wsdl.exe to create a
proxy is here:
<http://samples.gotdotnet.com/quickstart/aspplus/doc/webservicesintro.aspx>
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 12 '05 #4
TC
Hey Martin,

I am using the proxy. The problem is that the web service is in .php on the
other end and the methods do not offer what type of object(s) are returned.
However, because I have been using these methods with the SOAP SDK, I know
what should be returned.

Since an XML document is what should be returned, I had entertained the
fantasy that I might be able to do something like as follows:

XMLDocument MyDocument=MyWebService.MethodName(arg1,arg2,arg3) ;

Do the web service methods need to be changed such that they expose a
datatype?

Do I have to implement the SOAP calls manually in this situation?

Regards,

TC
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...


TC wrote:

Under these circumstances, what happens when the SOAP method is supposed
to return a list?

For example, I have been receiving an XML document with a list of names,
both first and last. How would such a thing be returned under this
scenario?


I think it is best you simply run the tool that comes with .NET to create
a proxy class, wsdl.exe, against the WSDL of the that service you want to
call and then you will see which .NET types the methods of the proxy
object return.
An introduction to the type marshalling done is here:
<http://samples.gotdotnet.com/quickstart/aspplus/doc/webservicetypes.aspx>
An introduction explaining the use of the tool wsdl.exe to create a proxy
is here:
<http://samples.gotdotnet.com/quickstart/aspplus/doc/webservicesintro.aspx>
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Nov 12 '05 #5


TC wrote:
I am using the proxy. The problem is that the web service is in .php on the
other end and the methods do not offer what type of object(s) are returned.
If you generate .NET code in VB or C# then the methods of the class
generated will have some method signature listing both the return type
and the argument types.
However, because I have been using these methods with the SOAP SDK, I know
what should be returned.

Since an XML document is what should be returned, I had entertained the
fantasy that I might be able to do something like as follows:

XMLDocument MyDocument=MyWebService.MethodName(arg1,arg2,arg3) ;

Do the web service methods need to be changed such that they expose a
datatype?

Do I have to implement the SOAP calls manually in this situation?


I don't think so, I think there are some ways to extract an XML document
from a SOAP proxy or server, have a look at this article
<http://msdn.microsoft.com/msdnmag/issues/04/03/ASPColumn/default.aspx>
There is also a newsgroup dedicated to web services where you might find
more help but consider showing snippets of what you have e.g. the WSDL
of the web service, the proxy class.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 12 '05 #6

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

Similar topics

0
by: bigbinc | last post by:
I have setup a soap machine on linux and similar configuration works properly. on a windows mahcine, I get these erros on the addressbook, samples, any ideas. I am pretty sure my classpaths are...
2
by: mkosca01 | last post by:
Hello, I have recently downloaded and installed the Soap Toolkit 3.0 from microsoft. I have successfully created the example web service DocSample1 and am able to run this from the command line...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
0
by: TC | last post by:
Hello, I have been asked to port a VB6 / SOAP SDK app to C# .Net using web services and do it quickly. I have a remote SOAP interface that I've referenced and can now call methods on. What I...
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...
9
by: kencana | last post by:
Hi all, I am a new bie in SOAP and PHP.I got one question about the data retrieval. I am able to retrieve the data successfully from my database. this is my sql statement: select roadname from...
0
by: santycalde | last post by:
Hi!! I am executing a call to a webservice with SOAP and the following mistake takes place: The XML of the wsdl is: <?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.