[Mono-list] How to debug SOAP webservice

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Tue Dec 23 17:11:13 EST 2008


On Tue, 2008-12-23 at 23:10 +0200, Andrus wrote:
> I created SOAP webservice with works OK from VS IDE.
> 
> When this web service is hosted in mod_mono/Apache, calling it returns 
> error:
> 
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception 
> has been thrown by the target of an 
> invocation.</faultstring></soap:Fault></soap:Body></soap:Envelope>
> 
> I want to find stack trace or line number causing exception.

Keep the debug="true" in web.config and go to
http://yourserver/yourservice.asmx then find the page that allows you to
invoke the web service using HTTP and run it. You should get the actual
stack trace in your browser.

-Gonzalo




More information about the Mono-list mailing list