[ https://issues.apache.org/jira/browse/AXISCPP-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wayne Johnson updated AXISCPP-1026: ----------------------------------- Description: (this is a weeks worth of changes from memory, so I might have missed something). 1) does not generate xsi:nil when needed. 2) Missing enc:arrayType= 3) Generates xmlns:nsX="". This causes Xerces to barf with org.xml.sax.SAXParseException: The value of the attribute "prefix="xm lns",localpart="ns3",rawname="xmlns:ns3"" is invalid. Prefixed namespace binding s may not be empty. 4) Generated complex object serializer uses URI of NULL, causes crash in ArrayBean.cpp was: (this is a weeks worth of changes from memory, so I might have missed something). 1) does not generate xsi:nil when needed. 2) Missing enc:arrayType= 3) Generates xmlns:nsX="". This causes Xerces to barf. 4) Generated complex object serializer uses URI of NULL, causes crash in ArrayBean.cpp The soap packet sent looks like this. Note that this is captured from the debugger. Since Xerces is rejecting the packet, it never appears in the SoapMonitor. <?xml version='1.0' encoding='utf-8' ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ns1:saveModifiedGroup xmlns:ns1="urn:SWS"> <SWSToken xsi:type="ns1:SWSToken"><token xsi:type="xsd:string">69C2E16015BDD425C67542C6030FF058AD23E99B</token> </SWSToken><SWSGroup xsi:type="ns1:SWSGroup"><DN xsi:nil="true"></DN> <description xsi:type="xsd:string">TestGroup1</description> <gid xsi:type="xsd:int">999</gid> <members xmlns:enc="http://www.w3.org/2001/06/soap-encoding" enc:arrayType="xsd:string[2]"> <members>xxx</members> <members>yyy</members> </members> <name xsi:type="xsd:string">TestGroup1</name> <properties xmlns:enc="http://www.w3.org/2001/06/soap-encoding" xmlns:ns3="" enc:arrayType="ns3:properties[2]"> <SWSProperty><property xsi:type="xsd:string">color</property> <value xsi:type="xsd:string">red</value> </SWSProperty><SWSProperty><property xsi:type="xsd:strin std::basic_string<char,std::char_traits<char>,std::allocator<char> > In this example, my unit test program does not generate any NIL objects so point #1 in description is not shown. > Seversal issues in generating soap from complex arrays > ------------------------------------------------------ > > Key: AXISCPP-1026 > URL: https://issues.apache.org/jira/browse/AXISCPP-1026 > Project: Axis-C++ > Issue Type: Bug > Components: SOAP > Affects Versions: 1.6 Beta > Environment: Windows VC++ and Axis 1.4 (Java) server > Reporter: Wayne Johnson > Priority: Critical > Fix For: current (nightly) > > Attachments: AxisCPP-1026.patch, SWS.wsdl > > > (this is a weeks worth of changes from memory, so I might have missed > something). > 1) does not generate xsi:nil when needed. > 2) Missing enc:arrayType= > 3) Generates xmlns:nsX="". This causes Xerces to barf with > org.xml.sax.SAXParseException: The value of the attribute "prefix="xm > lns",localpart="ns3",rawname="xmlns:ns3"" is invalid. Prefixed namespace > binding s may not be empty. > 4) Generated complex object serializer uses URI of NULL, causes crash in > ArrayBean.cpp -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]