You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Yves Langisch (JIRA)" <ax...@ws.apache.org> on 2005/06/13 12:05:49 UTC
[jira] Updated: (AXIS-2049) Wrong xsi:type handling with complex types
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Yves Langisch updated AXIS-2049:
--------------------------------
Attachment: helloworld.zip
Main targets:
run-server, run-client
configure tcpmon as a listener on port 8000 (forward to port) 9000
> 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: Critical
> Attachments: 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