Details
-
Improvement
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
1.4
-
None
-
None
-
Client Machine: Windows XP, Eclipse 3.3.1
Server Machine: Windows ??, .NET Web Service
Description
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;