[Mono-list] Exception and strange result from web service

Andrus kobruleht2 at hot.ee
Mon Apr 20 10:53:38 EDT 2009


I tried to host my asmx web service in Apache 2 / FreeBsd with mod_mono/2.4 
in ISP.

One Web service call  returns 500 error code with strange packet:

<?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><GetArtpiltResponse xmlns="http://mycom.com/Myapp">
<GetArtpiltResult><Artpilt><Id>200</Id><Toode>005</Toode>
<Pilt>/9j/4AAQSkZJ... 9DcIGX6j0PuKadhPU/HW88
<?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>The requested feature is not implemented.</faultstring>
</soap:Fault></soap:Body></soap:Envelope>

Tag <Pilt> contains picture ( a lot of bytes which are not shown) and it is 
*not terminated*.
After that *new* <?xml ... content starts in same response containing soap 
exception text.
I have try {} catch in my whole web method call which catces all exceptions. 
So reported exception occurs outside web method execution.

How to fix this ?
How to get stack trace of the exception ?

Andrus. 



More information about the Mono-list mailing list