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 <[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 > -- Ajith Ranabahu
