RE: How to intercept the XML requests sent by the proxy? -
05-10-2006
, 05:41 AM
Hi Gabriel,
Thank you for posting.
Regarding on the intercepting the SOAP message sent by webservice proxy
generated by .net framework, I think you can just some some certain trace
tools like tcpTrace, proxyTrace or traceUtility in soaptoolkit 3.0.
#SOAP Toolkit 3.0
http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-
9753-86F052EC8450&displaylang=en
And when you want to start tracing(for your case, we're the webservice
client-side), just start the trace utility and listening on a local
port(specify a unused one, such as 8888), and then, forward the request to
the remote destination server(and a specified port, this is usually 80 for
http ). Then, for our webservice proxy's code, we should change its
service url to the local port we specified earlier. e.g:
=================
MyProxy mp = new MyProxy();
mp.Url = "http:localhost:8888/xxxxx/xxxx.xxx";
..................
==================
Then, the SOAP message will be passed through the local 8888 port(our trace
utlity ) first, then be forwarded to the destination server(port) after be
logged.
Hope this helps. If there is anything I missed, please feel free to post
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
here. |