473,403 Members | 2,338 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,403 software developers and data experts.

Viewing request XML

Hi,

I've written a web service in C#/ .NET that is called by clients written in
Delphi (we don't do Delphi any more)
Using a .NET test harness the service works, but when called by a Delphi
client all the input parameters arrive as null, empty string or 0.

I wonder if the Delphi components are producing invalid XML, but I need to
view the request...

Please can anyone tell me how I can intercept a SOAP request and view the
XML.

TIA
Stuart IRving
May 17 '06 #1
3 1673
More info:

Intercepting the packets shows that the Delphi components are sending a
single packet with the SOAP headers and the XML appended.

Requests from .Net clients send two individual packets. If the web service
is expecting a second packet containing the parameter info that never
arrives, could this be causing the problem?

Can anyone help?

"Stuart Irving" <sp**@stuartirving.net> wrote in message
news:Of**************@TK2MSFTNGP05.phx.gbl...
Hi,

I've written a web service in C#/ .NET that is called by clients written
in Delphi (we don't do Delphi any more)
Using a .NET test harness the service works, but when called by a Delphi
client all the input parameters arrive as null, empty string or 0.

I wonder if the Delphi components are producing invalid XML, but I need to
view the request...

Please can anyone tell me how I can intercept a SOAP request and view the
XML.

TIA
Stuart IRving

May 17 '06 #2
Stuart Irving wrote:
Hi,

I've written a web service in C#/ .NET that is called by clients
written in Delphi (we don't do Delphi any more) Using a .NET test
harness the service works, but when called by a Delphi client all the
input parameters arrive as null, empty string or 0.

I wonder if the Delphi components are producing invalid XML, but I
need to view the request...

Please can anyone tell me how I can intercept a SOAP request and view
the XML.


Check out:

http://msdn.microsoft.com/library/de.../en-us/cpref/h
tml/frlrfsystemwebservicesprotocolssoapextensionclasst opic.asp

(URL Wraps. Or use http://tinyurl.com/empf)

Just dress your method with a [Trace( FileName="<enter filename
here">)] attribute and the request + response will be saved to the
file. This applies only to the Request or Response XML, not the HTTP
headers.

I've a bit of experience in Delphi SOAP as well, let me know what you
receive - perhaps a change has to be made in the Delphi code.

--
Deepak Shenoy
http://shenoyatwork.blogspot.com
May 18 '06 #3
Many thanks for the pointers, it looks like this is our issue:
RPC|Encoded vs. Document|Literal

The biggest problem in interoperability is the fact that some servers use
Document|Literal encoding, which most others use RPC|Encoded. Delphi servers
only understand RPC|Encoded packages, but Delphi Clients can talk to both
RPC|Encoded and Document|Literal servers.

To communicate with a Doc|Lit server (Most .NET web services are doc|lit)
you must set HTTPRio1.Converter.Options.soLiteralParams to true. This
ensures that parameters encoded with "literal" are not unwound, which is
necessary in doc|lit cases where a parameter name might be encapsulated
under a sub tag under the XML element representing the function.

I'll try to post some indication of what we did if that fixes it.

Cheers

Stuart

"Deepak Shenoy" <no****@nonname.com> wrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
Stuart Irving wrote:
Hi,

I've written a web service in C#/ .NET that is called by clients
written in Delphi (we don't do Delphi any more) Using a .NET test
harness the service works, but when called by a Delphi client all the
input parameters arrive as null, empty string or 0.

I wonder if the Delphi components are producing invalid XML, but I
need to view the request...

Please can anyone tell me how I can intercept a SOAP request and view
the XML.


Check out:

http://msdn.microsoft.com/library/de.../en-us/cpref/h
tml/frlrfsystemwebservicesprotocolssoapextensionclasst opic.asp

(URL Wraps. Or use http://tinyurl.com/empf)

Just dress your method with a [Trace( FileName="<enter filename
here">)] attribute and the request + response will be saved to the
file. This applies only to the Request or Response XML, not the HTTP
headers.

I've a bit of experience in Delphi SOAP as well, let me know what you
receive - perhaps a change has to be made in the Delphi code.

--
Deepak Shenoy
http://shenoyatwork.blogspot.com

May 18 '06 #4

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

Similar topics

8
by: Mark | last post by:
hello! is there a way in code to view the entire HTTP Header? Many of the variables in $_SERVER have much of the header, as do some of the apache functions, but none seem to have a way to show...
3
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. It doesn't happen all the time but it does happen. When...
14
by: Brian Maupin | last post by:
I have a refreshing webcam shot on my site and I was wondering if there was a way I could display how many people are currently viewing it? Thanks in advance.
2
by: swbaz | last post by:
What is an effect way to prevent users from viewing a webpage directly by typing in its URL? For example: If a default page is set up as a login screen with user name and password. The user...
1
by: jeguillo | last post by:
I am trying to retrieve the text within each cell in a datagrid in order to change the color of each cell, depending on the value within that cell. This works fine on the cells that are bound...
1
by: comp.lang.php | last post by:
Whenever I would view any of my PHP scripts on any of a number of servers that I run, the Apache error logs on each of them would have this rather strange error: File does not exist:...
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
12
bartonc
by: bartonc | last post by:
Here's something cool that I just discovered (on IE7, I wonder about the others): I was viewing a long code block with some really long lines in it. Since the horizontal scroll bar was WAY of my...
0
by: Deceneu | last post by:
Hi everyone, this is my first post so please bear with me. I have the following situation: i have a local report that needs to have two "versions": one for viewing in the report viewer (with all...
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
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
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...
0
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...
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...
0
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,...
0
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...

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.