c# - See the SOAP request from Proxy class method calls -
I am using .NET 2.0 web services. If I add a reference to WSDL and call proxy class method, then what is the easiest way to send SOAP to VAS?
For example, I added the PayPal WSDL web service reference and as the call:
PayPalAPIAASoapBinding _client = new PayPalAPIAASoapBinding (); ... rest code and then setExpressCheckoutResponseType checkoutports = new SetExpressCheckoutResponseType (); Checkoutrespons = _client.SetExpressCheckout (request); // here calls
I tried to set a debug point on line 2 but it is not certain how to drill to see SOAP. Obviously I can use something like Fiddler, but during debugging I want to use Intellisense to drill under the object on which the request is made. I think the customer will be it, my example is above but it was not found. Client is an example of PayPal service.
I see that when I drill in the base class, the PayPal API is a binding that is a variant property but I can not accept it for:
System.Web.Services .Protocols.SoapProtocolVersion.Default
When I try to paste in my watch window, the value does not just show the word default, which is not a true value sent. So this is the reason why I need to see the SOAP and so far in that binding thing I do not see the property to catch it. But it may be in any request that you do a web service in .NET, just do not know where to look during debugging?
My ultimate goal is that before reading the SOAP envelope it is actually being sent to VS using any WSDL reference.
The easiest way to look up SOAP messages is to use a tool Sending and receiving stops.
It is very easy (if SOAP is not encrypted) though it is in VS is not.
Comments
Post a Comment