I have a C# console program that makes a request to a SOAP service.
This interface to the SOAP message was generated with Microsoft.VSDesigner, Version 4.0.30319.42000.
with these steps:
- Right click References
- Choose Add Service Reference
- Choose Advanced
- Add Web Reference
- Type in URL or service I am using
- Name the service
- Click Add Reference.
At that point I have code that is generated that invokes the service.
Here is the fragment that invokes the service:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.xxxxx.com/VerifyInsurance", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("CoverageResponseDocument", Namespace="http://www.xxxxx.com/CoverageVerification/")]
public CoverageResponseDocument VerifyInsurance([System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.xxxxx.com/CoverageVerification/")] CoverageRequest CoverageRequest)
{
object[] results = this.Invoke("VerifyInsurance", new object[] {
CoverageRequest});
return ((CoverageResponseDocument)(results[0]));
}
What can I change such that I can see the exact string of the SOAP message that is sent and received?
Either by changing code or by changing configuration.
I am a long time developer but new to visual studio so I would appreciate an answer that uses terminology I see on the screen.