473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 "myteststring 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 2255
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 "myteststring 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
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...
2
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...
3
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...
0
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...
4
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...
2
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...
2
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. ...
0
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.