Domanda

I'm making a call to a web service. The call works as expected in most cases. However, sometimes it fails and for troubleshooting, there is always a request from the developer to send them the request xml and if possible the response xml. How do I get this? I tried using fiddler but I don't know if it is because it is https, I only see some tunnel entries but not the xml sent or received. Sample of the web service code is below:

var serviceUrl = "http://190.0.0.1/ServiceLIVE/Service.asmx";
var svc = new LiveEntryService.LiveSoapClient(new BasicHttpBinding("LiveSoap"),new EndpointAddress(serviceUrl));            
var ret = svc.MakeLiveEntry(0, "001001002", "002002003", 3, "New Site Data", "004", DateTime.UtcNow);
È stato utile?

Soluzione

For serious testing of web services download a copy of SOAP UI today. It is relatively simple to get started with it.

You will be able to see and manipulate your requests and responses. It is really worth using this tool for testing.

Disclaimer: I dont work for SOAP UI.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top