axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Ranabahu" <ajith.ranab...@gmail.com>
Subject Re: [axis2] AXIOM question
Date Sat, 15 Apr 2006 03:24:09 GMT
ooops - this damn gmail thing did not refresh the thread until I've
sent the answer - Sorry for the late reply and I guess I've answered
the right question ;)

On 4/15/06, Ajith Ranabahu <ajith.ranabahu@gmail.com> wrote:
> Hi Glen,
> I hope you referring to the SOAPFault implementation in the soap part
> of Axiom. Well in that case you can use the SOAPFactory (either 1.1 or
> 1.2) to make a SOAPFault object (the use of factory is important here
> since there are two different implementations of the SOAP fault with
> two different serializations) and set the code and the reason. You'll
> need to create two other objects for the code and the reason as well
> (through the factory ofcourse)
>
> Ajith
>
> 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
> >
>
>
> --
> Ajith Ranabahu
>


--
Ajith Ranabahu

Mime
View raw message