xml.wsdl.refactoring/test/unit/src/org/netbeans/modules/xml/wsdl/refactoring/resources/TravelReservationService.wsdl
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 61 fa682b5ee7cc
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://schemas.xmlsoap.org/ws/2004/03/partner-link/" 
    49 xmlns:tns="http://www.sun.com/javaone/05/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:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" >
    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/05/TravelReservationService" xmlns:s="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:fault name="itineraryProblem" 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:18181/TravelReservation/buildItinerary"/>
   113 		</port>		
   114 		<port name="AirlineReservationCallbackSoapHttpPort" binding="ares:AirlineReservationCallbackSoapBinding">
   115 			<soap:address location="http://localhost:18181/TravelReservation/airlineReserved"/>
   116 		</port>		
   117 		<port name="HotelReservationCallbackSoapHttpPort" binding="hres:HotelReservationCallbackSoapBinding">
   118 			<soap:address location="http://localhost:18181/TravelReservation/hotelReserved"/>
   119 		</port>			
   120 		<port name="VehicleReservationCallbackSoapHttpPort" binding="vres:VehicleReservationCallbackSoapBinding">
   121 			<soap:address location="http://localhost:18181/TravelReservation/vehicleReserved"/>
   122 		</port>					
   123 	</service>
   124 	
   125 
   126 
   127 	   
   128    <bpws:property name="ItineraryRefId" type="xs:string" /> 
   129 
   130 
   131     <bpws:propertyAlias 
   132       propertyName="tres:ItineraryRefId"
   133       messageType="tres:ItineraryIn"
   134       part="itinerary">
   135       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   136     </bpws:propertyAlias>
   137 
   138    <bpws:propertyAlias 
   139       propertyName="tres:ItineraryRefId"
   140       messageType="ares:AirlineReservedIn"
   141       part="itinerary">
   142       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   143     </bpws:propertyAlias>
   144      
   145 
   146 
   147    <bpws:propertyAlias 
   148       propertyName="tres:ItineraryRefId"
   149       messageType="ares:ReserveAirlineIn"
   150       part="itinerary">
   151       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   152     </bpws:propertyAlias>
   153 
   154    <bpws:propertyAlias 
   155       propertyName="tres:ItineraryRefId"
   156       messageType="vres:VehicleReservedIn"
   157       part="itinerary">
   158       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   159     </bpws:propertyAlias>
   160 
   161 
   162    <bpws:propertyAlias 
   163       propertyName="tres:ItineraryRefId"
   164       messageType="vres:ReserveVehicleIn"
   165       part="itinerary">
   166       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   167     </bpws:propertyAlias>
   168       
   169    <bpws:propertyAlias 
   170       propertyName="tres:ItineraryRefId"
   171       messageType="hres:HotelReservedIn"
   172       part="itinerary">
   173       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   174     </bpws:propertyAlias>
   175 
   176 
   177    <bpws:propertyAlias 
   178       propertyName="tres:ItineraryRefId"
   179       messageType="hres:ReserveHotelIn"
   180       part="itinerary">
   181       <bpws:query>/TravelItinerary/ItineraryRef/UniqueID</bpws:query>    
   182     </bpws:propertyAlias>   
   183 	
   184 	
   185     <plnk:partnerLinkType name="TravelReservationPartnerLinkType">
   186             <plnk:role name="TravelReservationServiceRole" 
   187                 portType="tres:TravelReservationPortType">
   188             </plnk:role>			
   189     </plnk:partnerLinkType>	
   190 	
   191 
   192 </definitions>