Creating .NET web client -Errors and info needed

J

Jeff

Greetings
I am new to both web services and , for the most part, .NET.
I am trying to create a .NET (C#) web application that consumes a
php-NuSoap web service.

I create my .NET app and add a web reference by pointing it to the
nusoap web service. The program attempts to instantiate an instance of
the web service, which I think is an object of type :
System.Web.Services.Protocols.SoapHttpClientProtocol, using auto
generated code in the referecne.cs file.

When this happens I get the "data at the root level is invalid. Line
1, position 1" error. If someone can explain this, that would be
wonderful.
However, more importatnly (I think) is that first I need to know how
to access and view the XML document that is triggering this error.
I am catching the error and tried displaying the
Request.InputStream.ToString() but all it gives me is
"System.Web.HttpInputStream" as output.

1. How can I get access to the soap document that is being returned to
my application so that I can view it to try to find the problem AND
2. Does anyone have any suggestions on where to find good, clear
information about creatingusing web services/SOAP in C# ?

Thanks much
Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top