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:48 UTC
[jira] Created: (AXIS-2049) Wrong xsi:type handling with complex types
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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313455 ]
Yves Langisch commented on AXIS-2049:
-------------------------------------
Yep, my fault. The problem just occur when you change axis.jar from 1.2 to 1.2.1 or vice versa without redeploying the web service.
Thanks
Yves
> 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313450 ]
Davanum Srinivas commented on AXIS-2049:
----------------------------------------
I ran wsdl2java -s -t on the helloworld.wsdl and rewrote the server impl and client. works fine for me.
-- dims
> 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313466 ]
Davanum Srinivas commented on AXIS-2049:
----------------------------------------
Yep. i see it.
> 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
[jira] Reopened: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Davanum Srinivas reopened AXIS-2049:
------------------------------------
hmmm. let me try that.
> 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313479 ]
Yves Langisch commented on AXIS-2049:
-------------------------------------
Seems to be fine now...
Thanks
Yves
> 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
[jira] Updated: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Updated: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Davanum Srinivas updated AXIS-2049:
-----------------------------------
Attachment: AXIS-2049.zip
here's the zip.
> 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313449 ]
Davanum Srinivas commented on AXIS-2049:
----------------------------------------
Response:
HTTP/1.0 200 OK
Set-Cookie: 2
Set-Cookie2: 2
Content-Type: text/xml; charset=utf-8
<?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>
<MyResponse xmlns="http://helloworld.ch/schema/types">
<HelloWorld>Solutions for open systems!</HelloWorld>
<Job>
<Addressees>
<Abc>
<BranchNumber>branch</BranchNumber>
<Controls>
<SalaryDeclarationIsComplete>true</SalaryDeclarationIsComplete>
<ProcessByDistributor>true</ProcessByDistributor>
</Controls>
</Abc>
</Addressees>
</Job>
<ShortTest>123</ShortTest>
</MyResponse>
</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
[jira] Updated: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Davanum Srinivas updated AXIS-2049:
-----------------------------------
Priority: Blocker (was: Critical)
Blocker?
> 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: 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=comments#action_12313444 ]
Yves Langisch commented on AXIS-2049:
-------------------------------------
As it's not valid XML on the wire I would also classify it as blocker
> 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: 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
[jira] Resolved: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Davanum Srinivas resolved AXIS-2049:
------------------------------------
Resolution: Fixed
checked in a fix to ws-axis/java/src/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java. Please try latest CVS.
thanks,
dims
> 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
[jira] Resolved: (AXIS-2049) Wrong xsi:type handling with complex types
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2049?page=all ]
Davanum Srinivas resolved AXIS-2049:
------------------------------------
Resolution: Cannot Reproduce
can't repro the problem.
> 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