You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Steve Loughran <st...@apache.org> on 2004/09/14 17:24:39 UTC

marshalling AxisFaults into xsd:any

I want to turn an AxisFault into a messageElement graph, so I can paste 
it into the xsd:any part of a status message.

Is this what I Really have to do

1, serialize to a string

         if(fault!=null) {
             MessageContext msgContext=MessageContext.getCurrentContext();
             StringWriter sw=new StringWriter();
             SerializationContext context=new 
SerializationContext(sw,msgContext);
             try {
                 fault.output(context);
             } catch (Exception e) {
                 throw AxisFault.makeFault(e);
             }
         }
	

2. parse into a DOM

3. attach the DOM?