axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Harder" <>
Subject Sending faults from server
Date Thu, 05 May 2005 20:35:21 GMT
Linux Mandrake 10.0
I've got a web service that needs to send a fault back under some
It appears that the sample files for version 1.5 don't work, and neither
does my app (undeclared namespace prefix in the fault message).  I suspect
this may be a bug, since the sample doclitfault fails in the same way as my
webserver.  The server send back an invalid fault message and the client
segfaults on it.
I asked this question on the dev list, but don't know if it got through... I
don't see a record of it, and haven't had a response.
Assuming this is a bug, is there a workaround?  I'd like to be able to send
a message back to the client with some informative text, plus an error code
if possible.
Ian Harder
P.S.  For reference, here are the doclitfault request and fault messages.
Note the undeclared prefix ns1 in the fault detail.

POST /axis/doclitfault HTTP/1.1
Host: localhost:80
Content-Type: text/xml; charset=UTF-8
SOAPAction: "doclitfault#div"
Content-Length: 387

<?xml version='1.0' encoding='utf-8' ?>
<ns1:div xmlns:ns1="">

HTTP/1.1 200 OK
Date: Thu, 05 May 2005 20:31:26 GMT
Server: Apache-AdvancedExtranetServer/2.0.48 (Mandrake Linux/6.8.100mdk)
mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.4
Content-Length: 633
Content-Type: text/xml

<?xml version='1.0' encoding='utf-8' ?>
<faultcode>AxisC++ Faultcode</faultcode>
<faultstring>Custom Out of bound exception</faultstring>
<faultactor>server name:listen port</faultactor>
<detail><DivByZeroStruct><ns1:varString>Division by zero

View raw message