axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Fremantle" <pzf...@gmail.com>
Subject Re: [axis2] AXIOM question
Date Thu, 13 Apr 2006 07:12:08 GMT
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 <glen@thoughtcraft.com> 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
paul@wso2.com

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

Mime
View raw message