Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
1.4
-
None
-
None
-
unix , java 1.4.2, Axis 1.4,
Description
Used axis 1.4 to generate the java classes from wsdl.
An exception is thrown when the xsi:type is sent as part of the XML
Tried to set all the below property values to false
msgContext.getAxisEngine().setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
call.getMessageContext().setProperty(call.SEND_TYPE_ATTR, Boolean.FALSE);
call.setOption(call.SEND_TYPE_ATTR,Boolean.FALSE);
call.setProperty(call.SEND_TYPE_ATTR,Boolean.FALSE);
call.setOption(AxisEngine.PROP_SEND_XSI,Boolean.FALSE);
call.setProperty(AxisEngine.PROP_SEND_XSI,Boolean.FALSE);
Sample XML:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<Data>
<phone xsi:type="xsd:string">111111</phone>
<zip>5000</zip>
<lastName xsi:type="xsd:string"> TEST </lastName>
</Data>
</soapenv:Body>
Thanks