[jira] Created: (AXISCPP-952) AxisCPP server cannot parse Java client arrays
AxisCPP server cannot parse Java client arrays -- Key: AXISCPP-952 URL: http://issues.apache.org/jira/browse/AXISCPP-952 Project: Axis-C++ Type: Bug Components: Server - Deserialization Versions: 1.6 Beta Environment: Windows 2000, Apache 1.3 Reporter: Jonathan Beakley I have noticed an inconsistency in the encoding of arrays by Axis Java clients (created using WSDL2Java) and AxisCPP clients (created using WSDL2Ws). In short, I have the following RPC/encoded WSDL snippet that defines the array: types schema xmlns=http://www.w3.org/2001/XMLSchema; targetNamespace=http://localhost/axis/csaapi/xsd; import namespace = http://schemas.xmlsoap.org/soap/encoding// complexType name=ArrayOfInt complexContent restriction base=soapenc:Array attribute ref=soapenc:arrayType wsdl:arrayType=int[]/ /restriction /complexContent /complexType /schema /types When I create and run the AxisCPP client, it generates XML that uses item to denote the elements in the array: SOAP-ENV:Body ns1:GetNamesByIds xmlns:ns1=http://localhost/axis/csaapi; objType xsi:type=xsd:int0/objType idsArray xmlns:enc=http://www.w3.org/2001/06/soap-encoding; enc:arrayType=xsd:int[9] item1/item item2/item item3/item /idsArray /ns1:GetNamesByIds /SOAP-ENV:Body My AxisCPP service handles this just fine. BUT, my Java client generates XML that doesn't use the item construct, and it causes my CPP service to fail to parse the data. Here's the Java XML: soapenv:Body ns1:GetNamesByIds soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://localhost/axis/csaapi; objType xsi:type=xsd:int0/objType ids soapenc:arrayType=xsd:int[9] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; ids xsi:type=xsd:int1/ids ids xsi:type=xsd:int2/ids ids xsi:type=xsd:int3/ids /ids /ns1:GetNamesByIds /soapenv:Body Could someone give me advice on the best way to handle this? Note that I've already turned the MULTIREF option off to fix a different set of problems. I'd prefer to keep the RPC/Encoded style if at all possible. Thank you very much in advance! -Jonathan Beakley [EMAIL PROTECTED] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (AXISCPP-951) AxisCPP Server cannot parse Java arrays
AxisCPP Server cannot parse Java arrays --- Key: AXISCPP-951 URL: http://issues.apache.org/jira/browse/AXISCPP-951 Project: Axis-C++ Type: Bug Components: Server - Deserialization Versions: 1.6 Beta Environment: Windows 2000, Apache 1.3 Reporter: Jonathan Beakley I have noticed an inconsistency in the encoding of arrays by Axis Java clients (created using WSDL2Java) and AxisCPP clients (created using WSDL2Ws). In short, I have the following RPC/encoded WSDL snippet that defines the array: types schema xmlns=http://www.w3.org/2001/XMLSchema; targetNamespace=http://localhost/axis/csaapi/xsd; import namespace = http://schemas.xmlsoap.org/soap/encoding// complexType name=ArrayOfInt complexContent restriction base=soapenc:Array attribute ref=soapenc:arrayType wsdl:arrayType=int[]/ /restriction /complexContent /complexType /schema /types When I create and run the AxisCPP client, it generates XML that uses item to denote the elements in the array: SOAP-ENV:Body ns1:GetNamesByIds xmlns:ns1=http://localhost/axis/csaapi; objType xsi:type=xsd:int0/objType idsArray xmlns:enc=http://www.w3.org/2001/06/soap-encoding; enc:arrayType=xsd:int[9] item1/item item2/item item3/item /idsArray /ns1:GetNamesByIds /SOAP-ENV:Body My AxisCPP service handles this just fine. BUT, my Java client generates XML that doesn't use the item construct, and it causes my CPP service to fail to parse the data. Here's the Java XML: soapenv:Body ns1:GetNamesByIds soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=http://localhost/axis/csaapi; objType xsi:type=xsd:int0/objType ids soapenc:arrayType=xsd:int[9] xsi:type=soapenc:Array xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; ids xsi:type=xsd:int1/ids ids xsi:type=xsd:int2/ids ids xsi:type=xsd:int3/ids /ids /ns1:GetNamesByIds /soapenv:Body Could someone give me advice on the best way to handle this? Note that I've already turned the MULTIREF option off to fix a different set of problems. I'd prefer to keep the RPC/Encoded style if at all possible. Thank you very much in advance! -Jonathan Beakley [EMAIL PROTECTED] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira