Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
The Stub generated by WSDL2Java.
Description
The following code is generated by the WSDL2Java tool.
***********************************************************************
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("", "selectTNs"));
***********************************************************************
Eventhough the SEND_TYPE_ATTR is set as 'FALSE' which should set 'sendXsiTypes' should be set as 'FALSE'
This does not work on the custom defined objects dealing with arrays.
***********************************************************************
SOLUTION:The attribute should be set before the setOperation. The tool should move the setOperation(SEND immediatelly after creating call and before setOperation.
Ex:
org.apache.axis.client.Call _call = createCall();
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("", "selectTNs"));