adding the xsi namespace to a response
Hi,
Is it possible to somehow add the following namespace attribute to the root element of the response :
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
I want to do this as a workaround of a issue I have with axis (1.4) generated client code for my bpel process. This causes the appearance of the xsi namespace to appear. I can see that this namespace is declared for the messge "part" of my SOAP Message which contains my doc/lit wrapped style root response elementbut not on this root element itself. This I think is causing the parsing of this response to fail with the following exception :
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "messageName" is not bound.
faultActor:
faultNode:
faultDetail:
This is becuase the response looks something like this
<soap:body>
<part xmlns:xsi="...">
<rootElement>
<messageName xsi:nil="true">
<rootElement>
...
So the rootElement parsing fails as it contains no namespace declaration when it is parsed at client end.
So does anyone know any way for me to add the xsi namespace on the root element somehow in the response.
Regards,