axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject marshalling AxisFaults into xsd:any
Date Tue, 14 Sep 2004 15:24:39 GMT

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?



Mime
View raw message