xml.wsdl.extensions/test/unit/src/org/netbeans/modules/xml/wsdl/model/extensions/resources/TravelReservationService_1.wsdl
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 99 9adc3d861bc9
permissions -rw-r--r--
Added Missing copyright information in source files
     1 <!--
     2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3 
     4 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
     5 
     6 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
     7 Other names may be trademarks of their respective owners.
     8 
     9 The contents of this file are subject to the terms of either the GNU
    10 General Public License Version 2 only ("GPL") or the Common
    11 Development and Distribution License("CDDL") (collectively, the
    12 "License"). You may not use this file except in compliance with the
    13 License. You can obtain a copy of the License at
    14 http://www.netbeans.org/cddl-gplv2.html
    15 or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    16 specific language governing permissions and limitations under the
    17 License.  When distributing the software, include this License Header
    18 Notice in each file and include the License file at
    19 nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
    20 particular file as subject to the "Classpath" exception as provided
    21 by Oracle in the GPL Version 2 section of the License file that
    22 accompanied this code. If applicable, add the following below the
    23 License Header, with the fields enclosed by brackets [] replaced by
    24 your own identifying information:
    25 "Portions Copyrighted [year] [name of copyright owner]"
    26 
    27 Contributor(s):
    28 
    29 The Original Software is NetBeans. The Initial Developer of the Original
    30 Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
    31 Microsystems, Inc. All Rights Reserved.
    32 
    33 If you wish your version of this file to be governed by only the CDDL
    34 or only the GPL Version 2, indicate your decision by adding
    35 "[Contributor] elects to include this software in this distribution
    36 under the [CDDL or GPL Version 2] license." If you do not indicate a
    37 single choice of license, a recipient has the option to distribute
    38 your version of this file under either the CDDL, the GPL Version 2 or
    39 to extend the choice of license to its licensees as provided above.
    40 However, if you add GPL Version 2 code and therefore, elected the GPL
    41 Version 2 license, then the option applies only if the new code is
    42 made subject to such option by the copyright holder.
    43 -->
    44 <definitions  xmlns="http://schemas.xmlsoap.org/wsdl/" 
    45     xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
    46     xmlns:xs="http://www.w3.org/2001/XMLSchema"  
    47     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    48     xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" 
    49     xmlns:tns="http://www.sun.com/javaone/06/TravelReservationService"
    50     xmlns:ares="http://www.sun.com/javaone/05/AirlineReservationService" 
    51     xmlns:hres="http://www.sun.com/javaone/05/HotelReservationService" 
    52     xmlns:vres="http://www.sun.com/javaone/05/VehicleReservationService" 
    53     xmlns:ota="http://www.opentravel.org/OTA/2003/05"  
    54     xmlns:tres="http://www.sun.com/javaone/05/TravelReservationService"  
    55     targetNamespace="http://www.sun.com/javaone/05/TravelReservationService"
    56     xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" >
    57 
    58 	
    59     <import namespace="http://www.sun.com/javaone/05/HotelReservationService" location="HotelReservationService.wsdl"/>
    60     <import namespace="http://www.sun.com/javaone/05/AirlineReservationService" location="AirlineReservationService.wsdl"/>
    61     <import namespace="http://www.sun.com/javaone/05/VehicleReservationService" location="VehicleReservationService.wsdl"/>	
    62 	
    63     <types>
    64         <xs:schema xmlns="http://www.opentravel.org/OTA/2003/05"
    65             targetNamespace="http://www.sun.com/javaone/06/TravelReservationService" xmlns:xs="http://www.w3.org/2001/XMLSchema"  >
    66             <xs:import namespace="http://www.opentravel.org/OTA/2003/05" schemaLocation="OTA_TravelItinerary.xsd"/>
    67             <xs:element name="itineraryFault" type="xs:string" />
    68         </xs:schema>
    69     </types>
    70 
    71 
    72     <message name="ItineraryIn">
    73         <part name="itinerary" element="ota:TravelItinerary"/>
    74     </message>
    75     <message name="ItineraryOut">
    76         <part name="itinerary" element="ota:TravelItinerary"/>
    77     </message>
    78     <message name="ItineraryFault">
    79         <part name="faultMessage" element="tns:itineraryFault"/>
    80     </message>	
    81 	
    82 
    83 
    84     <portType name="TravelReservationPortType">
    85         <operation name="buildItinerary">
    86             <input message="tns:ItineraryIn"/>
    87             <output message="tns:ItineraryOut"/>
    88             <fault name="itineraryProblem" message="tns:ItineraryFault"/>
    89         </operation>
    90     </portType>
    91 		
    92 	
    93     <binding name="TravelReservationSoapBinding" type="tns:TravelReservationPortType">
    94         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    95         <operation name="buildItinerary">
    96             <soap:operation/>
    97             <input>
    98                 <soap:body use="literal"/>
    99             </input>
   100             <output>
   101                 <soap:body use="literal"/>
   102             </output>
   103             <fault name="itineraryProblem">
   104                 <soap:body use="literal"/>
   105             </fault>			
   106         </operation>		
   107     </binding>
   108 	
   109 	
   110     <service name="TravelReservationSoapService">
   111         <port name="TravelReservationSoapHttpPort" binding="tns:TravelReservationSoapBinding">
   112             <soap:address location="http://localhost:22080/pxe/soap/TravelReservation/buildItinerary"/>
   113         </port>		
   114         <port name="AirlineReservationCallbackSoapHttpPort" binding="ares:AirlineReservationCallbackSoapBinding">
   115             <soap:address location="http://localhost:22080/pxe/soap/TravelReservation/airlineReserved"/>
   116         </port>		
   117         <port name="HotelReservationCallbackSoapHttpPort" binding="hres:HotelReservationCallbackSoapBinding">
   118             <soap:address location="http://localhost:22080/pxe/soap/TravelReservation/hotelReserved"/>
   119         </port>			
   120         <port name="VehicleReservationCallbackSoapHttpPort" binding="vres:VehicleReservationCallbackSoapBinding">
   121             <soap:address location="http://localhost:22080/pxe/soap/TravelReservation/vehicleReserved"/>
   122         </port>					
   123     </service>
   124 	
   125 
   126 
   127 	   
   128     <vprop:property name="ItineraryRefId" type="xs:string" /> 
   129 
   130 
   131     <vprop:propertyAlias 
   132     propertyName="tres:ItineraryRefId"
   133     messageType="tres:ItineraryIn"
   134     part="itinerary"
   135     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   136 
   137     <vprop:propertyAlias 
   138     propertyName="tres:ItineraryRefId"
   139     messageType="ares:AirlineReservedIn"
   140     part="itinerary"
   141     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   142 
   143 
   144     <vprop:propertyAlias 
   145     propertyName="tres:ItineraryRefId"
   146     messageType="ares:ReserveAirlineIn"
   147     part="itinerary"
   148     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   149 
   150     <vprop:propertyAlias 
   151     propertyName="tres:ItineraryRefId"
   152     messageType="vres:VehicleReservedIn"
   153     part="itinerary"
   154     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   155 
   156 
   157     <vprop:propertyAlias 
   158     propertyName="tres:ItineraryRefId"
   159     messageType="vres:ReserveVehicleIn"
   160     part="itinerary"
   161     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   162       
   163     <vprop:propertyAlias 
   164     propertyName="tres:ItineraryRefId"
   165     messageType="hres:HotelReservedIn"
   166     part="itinerary"
   167     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>
   168 
   169 
   170     <vprop:propertyAlias 
   171     propertyName="tres:ItineraryRefId"
   172     messageType="hres:ReserveHotelIn"
   173     part="itinerary"
   174     query="/ota:TravelItinerary/ota:ItineraryRef/ota:UniqueID"/>      
   175 	
   176 	
   177     <plnk:partnerLinkType name="TravelReservationPartnerLinkType">
   178         <plnk:role name="TravelReservationServiceRole">
   179             <plnk:portType name="tres:TravelReservationPortType"/>
   180         </plnk:role>			
   181     </plnk:partnerLinkType>	
   182 	
   183 
   184 </definitions>