Sorry for the reply, but anyone has any idea about solving this issue? Are we doing something wrong? I need this solution for my work project so it's important to me to solve this.
Thanks. From: Zvi, Raanan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 9:50 To: [email protected] Subject: SOAP parsing issues Hello, I'm writing a web service server which uses axis2 1.4.1 and tomcat 6 and I noticed some disturbing issues in the way axis2 parse the SOAP xml. For some reason axis2 SOAP parser ignores the names of the XML elements and decides the values of the arguments according to their order in the XML. I have this simple method: - <xs:element name="enumerateEntities"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="entityId" type="xs:int" /> <xs:element minOccurs="0" name="entityType" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> I can even send this XML and it will work: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdl="http://wsdl.intf.dcm.intel.com"> <soap:Header/> <soap:Body> <wsdl:enumerateEntities> <wsdl:XXX>-1</wsdl:XXX> <wsdl:entityType>NODE</wsdl:entityType> </wsdl:enumerateEntities> </soap:Body> </soap:Envelope> If I send this: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdl="http://wsdl.intf.dcm.intel.com"> <soap:Header/> <soap:Body> <wsdl:enumerateEntities> <wsdl:entityType>NODE</wsdl:entityType> <wsdl: entityId >-1</wsdl: entityId > </wsdl:enumerateEntities> </soap:Body> </soap:Envelope> Then axis2 tries to put the string "NODE" into the integer argument entityId. This issue causes a lot of very strange behaviors like if I have a method which gets two arrays, and I send an empty array as the first argument and a full array as the second argument, then in code I get the value of the second array as the first argument and the second argument is empty. Is there any fix for this? Raanan. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
