Hi all,
I've written my own provider. If there is some error, it throws an AxisFault with a 
fault code, a fault string and a fault detail (that is specified in the wsdl). This 
Axis Fault is then translated in a SOAPFault correctly. Now, is there a way to send an 
header entry with the Axis Fault?

I've tried this, but it doesn't work. It seems that Axis engine ignores the header:

...
resEnv.addHeader(new RPCHeaderParam(headerParam));
...
AxisFault axisFault = new AxisFault(faultCode, faultString, null, details);
throw axisFault;

In response SOAP Message there is only fault element, header doesn't appear.

If provider returns a response body instead of throws an Axis Fault, the header is 
present.

any help?

thanks in advance,

A.T.

Reply via email to