Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

adding the xsi namespace to a response

Ahsan-OracleJan 8 2009 — edited May 20 2009
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,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2009
Added on Jan 8 2009
1 comment
1,212 views