I have a simple c# 3.5 .Net console application that hooks up to a service reference. Everything's working fine - making calls and receiving responses, but now I've been told to look at the Soap header in the message that's coming back.
I've found the .Net WebService Studio which is pretty awesome and will show both the Soap request and the Soap response.
For a response, it shows something like this:
ResponseCode: 200 (OK)
Content-Language:en-US
Content-Length:30048
Content-Type:text/xml; charset=utf-8
Date:Mon, 25 Jan 2010 19:57:47 GMT
Server:WebSphere Application Server/6.1
<?xml version="1.0" encoding="utf-16"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header />
<soapenv:Body>
How can I generate something similar in my application?
The response I'm interested in looking at is for a different method that returns a large enough message to blow up the WebService Studio. I don't see how to set message size parameters using this tool. So, I want to just capture this information myself.
Any ideas on how I can do this?