[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313448 ]
Davanum Srinivas commented on AXIS-2049: ---------------------------------------- Request: POST /axis/services/HelloWorld HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/axis-1_2_1 Host: localhost:8080 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 716 <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <MyRequest xmlns="http://helloworld.ch/schema/types"> <HelloWorld>Solutions for open systems!</HelloWorld> <BestRegards>adam</BestRegards> <BestRegards>eva</BestRegards> <BestRegards>abel</BestRegards> <BestRegards>kain</BestRegards> <Job> <Addressees> <Abc> <BranchNumber>branch</BranchNumber> <Controls> <SalaryDeclarationIsComplete>true</SalaryDeclarationIsComplete> <ProcessByDistributor>true</ProcessByDistributor> </Controls> </Abc> </Addressees> </Job> </MyRequest> </soapenv:Body> </soapenv:Envelope> > Wrong xsi:type handling with complex types > ------------------------------------------ > > Key: AXIS-2049 > URL: http://issues.apache.org/jira/browse/AXIS-2049 > Project: Apache Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.2.1 > Environment: Windows XP SP2, JDK 1.4.2 > Reporter: Yves Langisch > Priority: Blocker > Attachments: AXIS-2049.zip, helloworld.zip > > Given a response type in the WSDL as follows: > ... > <xs:complexType name="WellKnownAddresseeType"> > <xs:sequence> > <xs:element name="Abc" minOccurs="0"> > <xs:complexType> > <xs:sequence> > <xs:element name="BranchNumber" type="xs:string"/> > <xs:element name="Controls" type="tns:ControlsType"/> > </xs:sequence> > </xs:complexType> > </xs:element> > <xs:element name="Def" minOccurs="0"> > <xs:complexType> > <xs:sequence> > <xs:element name="Controls" type="tns:ControlsType"/> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:sequence> > </xs:complexType> > ... > I have following response on the wire: > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <soapenv:Body> > <MyResponse xmlns="http://helloworld.ch/schema/types"> > <HelloWorld>Solutions for open systems!</HelloWorld> > <Job> > <Addressees> > <Abc xsi:type="ns1:Abc" > xmlns:ns1="http://helloworld.ch/schema/types"> > <BranchNumber>branch</BranchNumber> > <Controls> > > <SalaryDeclarationIsComplete>true</SalaryDeclarationIsComplete> > <ProcessByDistributor>true</ProcessByDistributor> > </Controls> > </Abc> > </Addressees> > </Job> > <ShortTest>123</ShortTest> > </MyResponse> > </soapenv:Body> > </soapenv:Envelope> > Note the xsi:type="ns1:Abc" in the Abc element which is wrong (response > doesn't validate). > I'll upload a complete project that shows the wrong behaviour. -- 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
