473,854 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web service (client) problem and general help requested

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.Serv ices.Protocols. SoapHttpClientP rotocol, 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.InputSt ream.ToString() but all it gives me is
"System.Web.Htt pInputStream" 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

Nov 17 '05 #1
2 2702
you have to build the web serivice before u try to bind it

"Jeff" wrote:
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.Serv ices.Protocols. SoapHttpClientP rotocol, 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.InputSt ream.ToString() but all it gives me is
"System.Web.Htt pInputStream" 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

Nov 17 '05 #2
If I understand you correctly, the service is built. It resides at
tsingtao.cs.uof s.edu:81/php/dbsoap_W_wsdl_S tring.php
tsingtao.cs.uof s.edu:81/php/dbsoap_W_wsdl_S tring.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

On Thu, 25 Aug 2005 02:59:13 -0700, "milk-jam"
<mi*****@discus sions.microsoft .com> wrote:
you have to build the web serivice before u try to bind it

"Jeff" wrote:
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.Serv ices.Protocols. SoapHttpClientP rotocol, 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.InputSt ream.ToString() but all it gives me is
"System.Web.Htt pInputStream" 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


Nov 17 '05 #3

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

Similar topics

9
4216
by: Marty McDonald | last post by:
If I invoke a web service, and it throws an exception, I can see the exception if the client app is a .Net app. However, if the client app is not a .Net app, I only receive the HTTP 500 error. I believe this is due mostly to the fact that the non-.Net apps are using POST instead of SOAP. If the non-.Net apps were using SOAP, they too would in fact "see" the exception. Is this true? Thanks!
1
8999
by: vijay | last post by:
Hello I am learnign Dot NEt I have implemted 1. remote object 2.Listener 3.Client Listener started and listening to requests Client started and able to nstantiate remote object But when a Remote object method is invoked, following error happens
3
19727
by: Steve Lutz | last post by:
Hi All, I have a Windows Service that runs well. The service hosts a remote object. The purpose of the object is so that I can "peak" into the service to see what it's doing. I wrote a small Windows Application that connects to the remote object and prints out status information. Everything works fine when I first start the service. However, after some period, when I attempt to connect to the remote object, I get "Requested Service not...
2
7283
by: Fadi | last post by:
Backround: I am trying to figure out how to do the equivalant of a classic COM Local Server Singleton in .NET/C#. I created a coupld of simple Class Libs that exposes public interfaces and hosted them in a Windows Forms EXE. Create a Windows Forms client and both the Client and the Host EXEs configure the remoting protocols through respective .config files. Problem: I want to change the host from an Win Forms EXE to a Windows Service.
10
8219
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will obviously change once the program's fully built to actually do something, but for testing, it works). The only code I added to the service is below:
0
2311
by: Naresh | last post by:
All the components have been developed using .NET C#. I have a web service installed on a windows 2003 server machine. I have a client application running from 10 different machines and calling that webservice. On a couple of machine(Windows 2003) when the network is disabled, then when creating an instance of the Web service it gives the following exception: System.Net.Sockets.SocketException Message - The requested name is valid, but...
2
1779
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive the data in real time. They have requested that I subscribe to a Web Service that they have published. The only problem is that they often take longer than 30 seconds to process my data before I get a response back from them. This is taking far...
2
1994
by: Delmar | last post by:
I need to build Web Application that will generate a client to execute some operations. Each client has running silent application. Maybe somebody can advice me what can I do ? Thank you.
11
3258
by: David R | last post by:
This is a repost, with additional information. I have a Net 2.0 client (C# Winform) calling an Axis web service. The .NET client can authenticate, create requested objects, serialize the objects and send. These are received without issue on the Axis server. The .NET client can also receive responses from the Axis web service when the response is a single value type (long, string, etc), or an array of value types. However if an object...
0
9751
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10679
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10371
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5941
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4560
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3186
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.