[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313459 ]
Yves Langisch commented on AXIS-2049: ------------------------------------- Hmm, there seem to be a misbehaviuor anyway: When you freshly deploy the service after starting the server everything is fine. But if you start the server without newly redeploying the service afterwards (the service takes the already created server-config.wsdd) the error occurs. Can you reproduce this too? > 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
