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 "Thilo Frotscher (JIRA)" <ax...@ws.apache.org> on 2005/07/07 16:42:33 UTC

[jira] Created: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

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


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


[jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2103?page=comments#action_12315242 ] 

Davanum Srinivas commented on AXIS-2103:
----------------------------------------

*PLEASE* upload the wsdl/xsd.

thanks,
dims

> 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

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


[jira] Updated: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]

Thilo Frotscher updated AXIS-2103:
----------------------------------

    Attachment: NStoPkg.properties

> 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


[jira] Updated: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]

Thilo Frotscher updated AXIS-2103:
----------------------------------

    Attachment: TestClient.java

> 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


[jira] Resolved: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]
     
Davanum Srinivas resolved AXIS-2103:
------------------------------------

    Resolution: Fixed

Jongjin,

Applied patch and added test case.

thanks,
dims

> 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
>     Assignee: Davanum Srinivas
>     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


[jira] Updated: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]

Thilo Frotscher updated AXIS-2103:
----------------------------------

    Attachment: GenericAvailabilityService.wsdl

This WSDL imports a lot of XSDs, which in turn import further XSDs themselves.
WSDL2Java handles these  chained imports very well!

BTW: I recently found another bug in WSDL2Java. Usually, when generating a proxy for doc/lit services, WSDL2Java generates
one class for every message that was defined in the WSDL. However, this seems to depend on the value of some of the "name" 
attributes in the WSDL. Sometimes, only by modifying the values of these "name" attributes, WSDL2Java generates less classes.
Sounds weird, but it's true. I can't send an example at the moment, will send one later.


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


[jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2103?page=comments#action_12315252 ] 

Davanum Srinivas commented on AXIS-2103:
----------------------------------------

Thilo,

i need a stripped down wsdl with schema that i can use to repro the problem!!!

-- dims

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


[jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
    [ 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


[jira] Assigned: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]

Davanum Srinivas reassigned AXIS-2103:
--------------------------------------

    Assign To: Davanum Srinivas

> 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
>     Assignee: Davanum Srinivas
>     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


[jira] Updated: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2103?page=all ]

Thilo Frotscher updated AXIS-2103:
----------------------------------

    Attachment: generateClient.sh

> 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


[jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2103?page=comments#action_12315239 ] 

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


Axis 1.2 contains this bug as well as Axis 1.2.1.
As stated above, Axis 1.2 RC3 works fine.

> 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

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


[jira] Commented: (AXIS-2103) WSDL2Java: Generated doc/lit proxy sends "xsi:type" attributes

Posted by "Thilo Frotscher (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2103?page=comments#action_12315259 ] 

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


Sorry! There's a bug in  generateClient.sh. Of course you have to pass a file:// URL to WSDL2Java pointing to your local copy of the WSDL file.
generateClient.sh contains a http URL, which doesn't work of course. I was in a hurry when I wrote the last comment, sorry.


> 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