axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilo Frotscher (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes
Date Thu, 07 Jul 2005 16:10:13 GMT
    [ http://issues.apache.org/jira/browse/AXIS-2103?page=comments#action_12315254 ] 

Thilo Frotscher commented on AXIS-2103:
---------------------------------------

Dims,

I uploaded a bunch of files for this issue. To reproduce the problem

- save WSDL file and NStoPkg.properties in an arbitrary folder on your hard disk
- invoke generateClient.sh to start WSDL2Java
- copy TestClient.java to newly created subfolder "test"
- javac test/TestClient.java

- start TCPMonitor and listen to port 7001 (that's where TestClient will send the SOAP messages
to)
- java test.TestClient

Do this once with classpath pointing to Axis 1.2 RC3 and once with classpath pointing to Axis
1.2.1
and you'll see the above mentioned differences in the messages.

Thanks.




> WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes
> --------------------------------------------------------------
>
>          Key: AXIS-2103
>          URL: http://issues.apache.org/jira/browse/AXIS-2103
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>     Reporter: Thilo Frotscher
>     Priority: Blocker
>  Attachments: GenericAvailabilityService.wsdl, NStoPkg.properties, TestClient.java, generateClient.sh
>
> I am using WSDL2Java to generate client proxies from WSDL for a doc/lit service.
> However, the generated proxy code sends SOAP requests that contain "xsi:type" attributes,
like so:
> ================
> <soapenv:Body>
>   <UploadRoomAvailabilityRequest EchoToken="My Echo Token" timeStamp="2005-07-07T14:20:55.209Z"
xmlns="http://www.foobar.com/xml/genRoomAvail/2005/5">
>     <TRUST_GenericRoomAvail>
>       <hotelCode xsi:type="xsd:string">XXXXXX</hotelCode>
>       <RoomAllotment>
>         <startDate xsi:type="xsd:dateTime">2005-07-07T14:20:55.209Z</startDate>
>         <numberOfDaysAffected xsi:type="xsd:int">1</numberOfDaysAffected>
>         <Inventory>
>           <roomTypeCode xsi:type="xsd:string">A1K</roomTypeCode>
>           <numberAlloted xsi:type="xsd:int">65</numberAlloted>
>           <status>open</status>
>           <minimumLengthOfStay xsi:type="xsd:int">1</minimumLengthOfStay>
>         </Inventory>
>       </RoomAllotment>
>     </TRUST_GenericRoomAvail>
>   </UploadRoomAvailabilityRequest>
> </soapenv:Body>
> ================
> However, this worked fine with Axis 1.2 RC3!!!
> Here's what a proxy sends that was generated with WSDL2Java from Axis 1.2 RC3, using
exactly the same WSDL file:
> ================
> <soapenv:Body>
>   <UploadRoomAvailabilityRequest EchoToken="My Echo Token" timeStamp="2005-07-07T14:18:25.712Z"
xmlns="http://www.foobar.com/xml/genRoomAvail/2005/5">
>     <TRUST_GenericRoomAvail>
>       <hotelCode>XXXXXX</hotelCode>
>       <RoomAllotment>
>         <startDate>2005-07-07</startDate>
>         <numberOfDaysAffected>1</numberOfDaysAffected>
>         <Inventory>
>           <roomTypeCode>A1K</roomTypeCode>
>           <numberAlloted>65</numberAlloted>
>           <status>open</status>
>           <minimumLengthOfStay>1</minimumLengthOfStay>
>         </Inventory>
>       </RoomAllotment>
>     </TRUST_GenericRoomAvail>
>   </UploadRoomAvailabilityRequest>
> </soapenv:Body>
> ================
> Obviously, the SOAP message sent by the Axis 1.2.1 proxy does not validate anymore against
the schema.
> Best Regards,
> Thilo

-- 
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


Mime
View raw message