web service (client) problem and general help requested

  • Thread starter Thread starter Jeff
  • Start date Start date
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 incoming 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 creating using web services/SOAP in C# ?

Thanks much
Jeff
 
If I understand you correctly, the service is built. It resides at
tsingtao.cs.uofs.edu:81/php/dbsoap_W_wsdl_String.php
tsingtao.cs.uofs.edu:81/php/dbsoap_W_wsdl_String.php?wsdl will show
the wsdl for the service. This is what I point my .NET web reference
to.

If that is not what you were referring to then, yes, I am missing
something big. If you could explain, I would appreciate it.

Thanks
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

Back
Top