473,769 Members | 1,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Service Parameters Lost

Hello,

I am trying to learn about web services. I was able to get a working
VS 2005 web service and VS 2005 web service consumer application to
communicate. The service would return the passed in string parameter
and "Hello World", thus printing "myteststri ng Hello Word"

When I tried to use a Delphi 2006 win32 web service consumer for the
same service, the parameters were lost and it just returned "Hello
World". I first thought that there was something wrong with my Delphi
client, but when I tried to use another service made from .NET it
worked fine. Now I am thinking that my web service is at fault.

0. How should I begin troubleshooting this setup?
1. Is there a setting in VS/Delphi that could affect parameter
passing
2. How can I capture the SOAP requests into/outof the web service to
examine what is different between the clients

Thanks,

Bryan

Mar 8 '06 #1
1 2274
Hi,

hi****@cableone .net wrote:
Hello,

I am trying to learn about web services. I was able to get a working
VS 2005 web service and VS 2005 web service consumer application to
communicate. The service would return the passed in string parameter
and "Hello World", thus printing "myteststri ng Hello Word"

When I tried to use a Delphi 2006 win32 web service consumer for the
same service, the parameters were lost and it just returned "Hello
World". I first thought that there was something wrong with my Delphi
client, but when I tried to use another service made from .NET it
worked fine. Now I am thinking that my web service is at fault.

0. How should I begin troubleshooting this setup?
1. Is there a setting in VS/Delphi that could affect parameter
passing
2. How can I capture the SOAP requests into/outof the web service to
examine what is different between the clients

Thanks,

Bryan


Disclaimer: All information here is valid in the Framework 1.1, I am not
sure if it changed in 2.0.

In my experience, a typical case where parameters get lost is that you
use a RPC SOAP request with a Document SOAP Web Method, or the opposite.
SOAP comes in two flavours, RPC and Document. To enable a RPC Web
Method, you need the decoration attribute:

[SoapRpcMethod]

before the method declaration (where you place the [WebMethod]
attribute). Per default, web methods work in document mode in Visual Studio.

To debug the setup, a good idea is to observe the HTTP request/response,
where you should see the SOAP XML content. To do this, I use TCP Trace.
It's not very complicated to use, but you need to change the destination
port of your web service request, for example to 8080. Please refer to
TCP Trace documentation at
http://www.pocketsoap.com/tcpTrace/

This should help you to get on track.

Greetings,
Laurent
Mar 9 '06 #2

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

Similar topics

40
3400
by: Sonia | last post by:
Hi, Please look at the following code. This is a simple program for a game of craps - very basic. I have declared the gameStatus as global variable. I was wondering if there is a better way of handling this (possibly via local variables) I am using that variable to keep track of the status of the game and pass it back to main() from craps() where I either increase or decrease a bank balance. Should this be handled with local parameters...
2
3625
by: Shazad | last post by:
I am creating a windows service that requires parameters to start. The service Startup Type is set to automatic therefore it starts when the computer is started or rebooted. However the service fails because the parameters do not persist. If the service is started manually and the parameters entered it starts and runs correctly. If the computer is rebooted the service attempts to start but fails because the parameters are not used to...
3
1966
by: Marty McDonald | last post by:
Using Visual Studio.Net... I have two classes, one derives from the other. My web service accepts the base class as input, it returns the derived class as the return value. When I set a web reference to that web service, the web service proxy is incorrect! It creates its own version of the base class fine, but when it creates its own version of the derived class, it shows it as simply deriving from the base, but its own members are not...
0
1683
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to consume them in VB .NET I get objects with nothing in them. Interestingly, if I call a webservice that returns a string, then it all works fine. I have pasted the wsdl file for review. Any suggestions would be greatly appreciated. I used the...
4
1977
by: leslie_tighe | last post by:
Hello, I have a webservice running on a J2EE server created with Axis 1.2.. I have a client that I am building in .net that needs to consume this webserivce and am having a bit of trouble. I have pasted the wsdl below and have a created a class in VB.net by adding a web refrence to my project. What is odd is that I can successfully call methods that return a simple value like a string. I call also call methods that add an object....
2
1971
by: Tim Reynolds | last post by:
Team, We need some guidance here. We are developing a web service to expose to external system. We are not sure which is the best path to take. We have multiple input fields required and a few output fields. We are thinking to either 1) Make all input fields one class and have one parameter for our web service of this object type and make all output fields a second class and have return type of our web method return an object of this...
2
8848
by: BluNuit | last post by:
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. Other applications (besides the c# ones) are able to execute the web service and get the proper response. I put a SOAP sniffer on the call and the response was: 193 <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope...
0
3870
by: oolon | last post by:
Hy, I have to build a report. this report has to be call by a web service. My method to call this report is : public void Amende( string dossierId ) { ReportingService rs = new localhost.ReportingService(); rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
3
5480
by: =?Utf-8?B?UGllcnJl?= | last post by:
Hello, I have a .NET 2.0 web service that is consumed by a Delphi application. The Delphi application calls a method from the .NET web service with parameters. Theses parameters are in the call message, which we can see through a HTTP proxy. But the ASP.NET application does not received the parameter values, it recevices only null values. When tagging the ASP.NET method parameters with
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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
10045
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
9994
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
9863
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
6673
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
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
3561
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.