How to log the http post message on the client

B

bill

Is there a way to log the actual outgoing http post message on a Web
Services client? I am calling a Java Web Services. I have to use HTTP POST
in my native C++ code. What I can do is writing a C# client and try to see
what's been sent out. Then, I can then try to do a HTTP POST in my C++ code
following the format I have from the C# client.

I found there is something called SOAPExtension. But, it involves the change
on the server side, and it seems to me that it is .NET specific.

Thanks for your help.
 
B

bill

Hi Marvin,
I ended up using ProxyTrace for that. It works pretty well for .NET clients.
I have to set the proxy server in web.config ot ProxyTrace. I would like to
use it to intercept HTTP POST from non .NET applications.

Do you know how to set the proxy server for the whole system? I tried to set
it in Internet Explorer. It only affects tracffic from/to Internet Explorer.
Thanks for your help.
 
C

cksanjose

Bill,

Can you do something like this:

IWebProxy mWebProxy;
mWebProxy = New WebProxy("172.20.1.1"); //IP address of the
proxy server
mywebservice.Proxy = mWebProxy;

This will setup you web service to use the proxy server.

I hope this helps.

Cesar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top