Have you tried throwing an org.apache.soap.SOAPException from your service? This has a constructor to set a fault code as well as mesage: public SOAPException (String faultCode, String msg).
Scott Nichol ----- Original Message ----- From: "Omprakash Bachu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 5:00 PM Subject: how to override code in <faultcode>SOAP-ENV:Server</faultcode> tag > Hi, from RPC serivce I'm trying to set custom fault code and hence will be > available to retrieve by using fault.getFaultCode() API, but it seems that > Apache by default sets this as SOAP-ENV:Server, can anyone help me how to > override this code? > > Sample: > > <faultcode>SOAP-ENV:Server</faultcode> > <faultstring>I can set custom string, this is ok</faultstring> > > Cheers!!! > Om > > > -- > To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> > For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org> > > -- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>