You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "arunachalam ambikapathi (JIRA)" <ax...@ws.apache.org> on 2007/08/15 22:17:31 UTC

[jira] Created: (AXIS-2687) The stub generated by WSDL2Java tool is ignoring the SEND_TYPE_ATTR set as false for user parameters.

The stub generated by WSDL2Java tool is ignoring the SEND_TYPE_ATTR set as false for user parameters.
-----------------------------------------------------------------------------------------------------

                 Key: AXIS-2687
                 URL: https://issues.apache.org/jira/browse/AXIS-2687
             Project: Axis
          Issue Type: Bug
          Components: WSDL processing
         Environment:  The Stub generated by WSDL2Java.
            Reporter: arunachalam ambikapathi


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"));





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org