Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2687

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • WSDL processing
    • 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"));

      Attachments

        Activity

          People

            Unassigned Unassigned
            aambikapathi arunachalam ambikapathi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: