Link to home
Start Free TrialLog in
Avatar of cobbbyu
cobbbyu

asked on

C# Getting Raw XML From Webservice Request

I'm using .NET 3.5, and am calling a webservice method.  What I would like, is to get the raw xml that I am sending to the server.  So, me as a client, would like to know the soap message I am actually sending the server when I'm calling that method in code.  I would like to know if that is possible and how that would be done.  

The reason for this, is to save the request, which utilizes multiple methods, objects and variables, to be saved as xml in the database.  Thanks in advance.
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Do you need to save the request and then pass it on to the webservice, or simply save the request and drop it?
ASKER CERTIFIED SOLUTION
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cobbbyu
cobbbyu

ASKER

I do want to send the webservice as well as retain the soap xml that was sent.  Is there no way to do this with the .NET Framework?

ZachSmith, thanks for your quick response, but a proxy app is not desirable in this situation.
The only way I can think of doing it is placing a proxy between your app and the webservice. There does not seem to be a built in function within .NET to handle this type of problem.

If you find a solution at some point please let me know, because I have been dealing with the lack of this ability for a couple years now.
Avatar of cobbbyu

ASKER

Yes, I will, thanks for your responses.  I'll accept your solution if I don't hear anything else in the next little bit.
Sounds good. Thanks.