This is the code I've used - not sure if its the tightest.

factory = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope faultEnvelope = factory.getDefaultFaultEnvelope();

Paul

On 4/13/06, Glen Daniels <[EMAIL PROTECTED]> wrote:
Hi folks:

Could someone show me how to use AXIOM to create a SOAP Fault envelope
with a given faultCode and reason string?  Let's assume I have "QName
code" and "String reason" sitting around.

In Axis, I can do this:

   AxisFault fault = new AxisFault(code, reason, null, null);
   fault.getAsEnvelope();

How does AXIOM do this?

Thanks,
--Glen



--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

Reply via email to