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 "Dan Zadik (JIRA)" <ax...@ws.apache.org> on 2007/12/11 17:37:43 UTC

[jira] Created: (AXIS-2713) Problem with double dimensional array.

Problem with double dimensional array. 
---------------------------------------

                 Key: AXIS-2713
                 URL: https://issues.apache.org/jira/browse/AXIS-2713
             Project: Axis
          Issue Type: Improvement
          Components: WSDL processing
    Affects Versions: 1.4
         Environment: Client Machine: Windows XP, Eclipse 3.3.1 
Server Machine: Windows ??, .NET Web Service
            Reporter: Dan Zadik
            Priority: Blocker


I am trying to communicate with the web service but I have been getting an error from the server side. After some testing we found the request from the client machine, my box, is generating a request that is not formed correctly.  

The server is expecting this:
      <keyValuePairs>
        <ArrayOfString>
          <string>string</string>
          <string>string</string>
        </ArrayOfString>
        <ArrayOfString>
          <string>string</string>
          <string>string</string>
        </ArrayOfString>
      </keyValuePairs>

We are sending this:
      <keyValuePairs>
           <ArrayOfString>
                   <ArrayOfString>id=e091213f-3f77-4f1b-84b1-16e96728b83</ArrayOfString>
                   <ArrayOfString>Title=updatedtitle</ArrayOfString>
                   <ArrayOfString>Test=updatedtest</ArrayOfString>
                   <ArrayOfString>Test2=updatedtest2</ArrayOfString>
            </ArrayOfString>
         </keyValuePairs>

Here is the code generated by the WSDL2Java tool. I have been trying to fix it but have not had luck. Please HELP!!!!

 oper = new org.apache.axis.description.OperationDesc();
        oper.setName("UpdateApplicationItem");
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "callContextXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "applicationID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
        param.setOmittable(true);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "keyValuePairs"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "ArrayOfArrayOfString"), java.lang.String[][].class,false, false);
        param.setItemQName(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "ArrayOfString"));
        param.setOmittable(true);
        oper.addParameter(param);
        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        oper.setReturnClass(java.lang.String.class);
        oper.setReturnQName(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "UpdateApplicationItemResult"));
        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
        oper.setUse(org.apache.axis.constants.Use.LITERAL);
        _operations[35] = oper;


-- 
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


[jira] Commented: (AXIS-2713) Problem with double dimensional array.

Posted by "Dan Zadik (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550559 ] 

Dan Zadik commented on AXIS-2713:
---------------------------------

As you can probably see the following part 

             <ArrayOfString> 
                   <ArrayOfString>id=e091213f-3f77-4f1b-84b1-16e96728b83</ArrayOfString> 
                   <ArrayOfString>Title=updatedtitle</ArrayOfString> 
                   <ArrayOfString>Test=updatedtest</ArrayOfString> 
                   <ArrayOfString>Test2=updatedtest2</ArrayOfString> 
            </ArrayOfString> 

It should have "string" in the the child part for example:

            <ArrayOfString> 
                   <string>id=e091213f-3f77-4f1b-84b1-16e96728b83</string> 
                   <string>Title=updatedtitle</string> 
                   <string>Test=updatedtest</string> 
                   <string>Test2=updatedtest2</string> 
            </ArrayOfString> 


> Problem with double dimensional array. 
> ---------------------------------------
>
>                 Key: AXIS-2713
>                 URL: https://issues.apache.org/jira/browse/AXIS-2713
>             Project: Axis
>          Issue Type: Improvement
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Client Machine: Windows XP, Eclipse 3.3.1 
> Server Machine: Windows ??, .NET Web Service
>            Reporter: Dan Zadik
>            Priority: Blocker
>
> I am trying to communicate with the web service but I have been getting an error from the server side. After some testing we found the request from the client machine, my box, is generating a request that is not formed correctly.  
> The server is expecting this:
>       <keyValuePairs>
>         <ArrayOfString>
>           <string>string</string>
>           <string>string</string>
>         </ArrayOfString>
>         <ArrayOfString>
>           <string>string</string>
>           <string>string</string>
>         </ArrayOfString>
>       </keyValuePairs>
> We are sending this:
>       <keyValuePairs>
>            <ArrayOfString>
>                    <ArrayOfString>id=e091213f-3f77-4f1b-84b1-16e96728b83</ArrayOfString>
>                    <ArrayOfString>Title=updatedtitle</ArrayOfString>
>                    <ArrayOfString>Test=updatedtest</ArrayOfString>
>                    <ArrayOfString>Test2=updatedtest2</ArrayOfString>
>             </ArrayOfString>
>          </keyValuePairs>
> Here is the code generated by the WSDL2Java tool. I have been trying to fix it but have not had luck. Please HELP!!!!
>  oper = new org.apache.axis.description.OperationDesc();
>         oper.setName("UpdateApplicationItem");
>         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "callContextXml"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
>         param.setOmittable(true);
>         oper.addParameter(param);
>         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "applicationID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
>         param.setOmittable(true);
>         oper.addParameter(param);
>         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "keyValuePairs"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "ArrayOfArrayOfString"), java.lang.String[][].class,false, false);
>         param.setItemQName(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "ArrayOfString"));
>         param.setOmittable(true);
>         oper.addParameter(param);
>         oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
>         oper.setReturnClass(java.lang.String.class);
>         oper.setReturnQName(new javax.xml.namespace.QName("http://www.eproject.com/webservice/BusinessServices", "UpdateApplicationItemResult"));
>         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
>         oper.setUse(org.apache.axis.constants.Use.LITERAL);
>         _operations[35] = oper;

-- 
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