473,782 Members | 2,699 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 2699
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
4204
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
8992
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
19713
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
7279
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
8207
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
2310
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
1775
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
1992
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
3252
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
9474
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
10308
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10143
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
10076
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
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.