Hi
I have some problem when I marshall my SOAP envelope.
I'm writing a Message Service and do the following code:

Envelope respEnv = new Envelope();
Body respBody = new Body();
Vector bodyVector = new Vector();
bodyVector.addElement(jbdb.getDocumentElement()); //this is the document I
want to return 
respBody.setBodyEntries(bodyVector);
respEnv.setBody(respBody);

XMLJavaMappingRegistry xjmr = new XMLJavaMappingRegistry();
StringWriter sw = new StringWriter();
respEnv.marshall(sw, xjmr);
String env = sw.toString();
responseContext.setRootPart(sw.toString(), "text/xml"); 


The problem is that the namespace declaration are replicated in the
following method call:
respEnv.marshall(sw, xjmr)

Axis client don't like double namespace declaration. 

Thanks
Jakob

Reply via email to