axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r126355 - webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl
Date Tue, 25 Jan 2005 09:08:54 GMT
Author: chathura
Date: Tue Jan 25 01:08:53 2005
New Revision: 126355

URL: http://svn.apache.org/viewcvs?view=rev&rev=126355
Log:
Sample WSDL files for the WOMBuilderTest and the InterfaceTest
Added:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/LoggingFacility.wsdl
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/SeismicService.wsdl

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/LoggingFacility.wsdl
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/LoggingFacility.wsdl?view=auto&rev=126355
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/LoggingFacility.wsdl
Tue Jan 25 01:08:53 2005
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions 
+		xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+		xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+		xmlns:log="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd"

+		xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl"

+		targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.wsdl"

+		xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+		xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/">
+   <wsdl:documentation>
+      This WSDL document describes the LoggingFacility service for the WS-I Basic Sample
Application. This
+      service is part of a supply chain management system. It is used to demonstrate a web
service that is
+      conformant with the Basic Profile and to show how different web service platforms can
interoperate.
+  </wsdl:documentation>
+
+	<wsdl:types>
+	  <xs:schema>
+  	    <xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd"
+              schemaLocation="LoggingFacility.xsd"/>
+	  </xs:schema>
+	</wsdl:types>
+
+	<wsdl:message name="logEventRequest">
+		<wsdl:part name="Document" element="log:logEventRequestElement"/>
+	</wsdl:message>
+
+	<wsdl:message name="getEventsRequest">
+		<wsdl:part name="Document" element="log:getEventsRequestElement"/>
+	</wsdl:message>
+
+	<wsdl:message name="getEventsResponse">
+		<wsdl:part name="Document" element="log:getEventsResponseElement"/>
+	</wsdl:message>
+
+	<wsdl:message name="getEventsRepositoryMissingFault">
+		<wsdl:part name="Document" element="log:getEventsFaultElement"/>
+	</wsdl:message>
+
+	<wsdl:portType name="LoggingFacilityLogPortType">
+		<wsdl:operation name="logEvent">
+			<wsdl:documentation>Append an entry to the system log.</wsdl:documentation>
+			<wsdl:input message="tns:logEventRequest"/>
+		</wsdl:operation>
+		<wsdl:operation name="getEvents">
+			<wsdl:documentation>Retrieve entries from the system log with the specified userId.</wsdl:documentation>
+			<wsdl:input message="tns:getEventsRequest"/>
+			<wsdl:output message="tns:getEventsResponse"/>
+			<wsdl:fault name="RepositoryMissingFault" message="tns:getEventsRepositoryMissingFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="LoggingFacilitySoapBinding" type="tns:LoggingFacilityLogPortType">
+		<wsdl:documentation>
+		        <wsi:Claim conformsTo="http://ws-i.org/profiles/basic1.0/" />
+	        </wsdl:documentation>
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+		<wsdl:operation name="logEvent">
+			<soap:operation soapAction=""/>
+			<wsdl:input>
+				<soap:body use="literal"/>
+			</wsdl:input>
+		</wsdl:operation>
+		<wsdl:operation name="getEvents">
+			<soap:operation soapAction=""/>
+			<wsdl:input>
+				<soap:body use="literal"/>
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"/>
+			</wsdl:output>
+			<wsdl:fault name="RepositoryMissingFault">
+				<soap:fault name="RepositoryMissingFault" use="literal"/>
+			</wsdl:fault>
+		</wsdl:operation>
+	</wsdl:binding>
+</wsdl:definitions>
+
+<!--
+The following is an example of a SOAP message compliant with the above WSDL for the logEvent
request:
+
+<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
+  <s:Body>
+    <m:logEventRequestElement xmlns:m="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd">
+      <m:DemoUserID>My Id is 72+1111,AF37C.sdsdsd</m:DemoUserID>
+      <m:ServiceID>WarehouseA:http://www.ws-i.org/SA/Warehouse.asmx</m:ServiceID>
+      <m:EventID>3</m:EventID>
+      <m:EventDescription>Initiating operation ShipGoods.</m:EventDescription>
+      <d:Detail xmlns:d="http://my/namespace/">
+        <d:Customer>D22845-W8N349Y-tky</d:Customer>
+        <d:ProductId>123123123</d:ProductId>
+        <d:Quantity>12</d:Quantity>
+      </d:Detail>
+    </m:logEventRequestElement>
+  </s:Body>
+</s:Envelope>
+
+
+The following is an example of a SOAP message compliant with the above WSDL for the getEvents
request:
+
+<s:Envelope xmlns:s="http://schemas.xmlsoap.org/envelope/">
+  <s:Body>
+    <m:getEventsRequestElement xmlns:m="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd">
+      <m:DemoUserID>My Id is 72+1111,AF37C.sdsdsd</m:DemoUserID>
+    </m:getEventsRequestElement>
+  </s:Body>
+</s:Envelope>
+
+
+The following is an example of a SOAP message compliant with the above WSDL for the getEvents
response:
+
+<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
+  <s:Body>
+    <m:getEventsResponseElement xmlns:m="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd">
+      <m:LogEntry>
+        <m:Timestamp>2002-08-09T13:45:51</m:Timestamp>
+        <m:ServiceID>WarehouseA:http://www.ws-i.org/SA/Warehouse.asmx</m:ServiceID>
+        <m:EventID>3</m:EventID>
+        <m:EventDescription>Initiating operation ShipGoods.</m:EventDescription>
+        <d:Detail xmlns:d="http://my/namespace/">
+          <d:Customer>D22845-W8N349Y-tky</d:Customer>
+          <d:ProductId>123123123</d:ProductId>
+          <d:Quantity>12</d:Quantity>
+        </d:Detail>
+      </m:LogEntry>
+      <m:LogEntry>
+        <m:Timestamp>2002-08-09T13:47:04</m:Timestamp>
+        <m:ServiceID>WarehouseA:http://www.ws-i.org/SA/Warehouse.asmx</m:ServiceID>
+        <m:EventID>4</m:EventID>
+        <m:EventDescription>Completing operation ShipGoods.</m:EventDescription>
+      </m:LogEntry>
+    </m:getEventsResponseElement>
+  </s:Body>
+</s:Envelope>
+
+-->

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/SeismicService.wsdl
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/SeismicService.wsdl?view=auto&rev=126355
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test-resources/wsdl/SeismicService.wsdl
Tue Jan 25 01:08:53 2005
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Note: Had to substitute "xsd:string" for token, ID, and IDREF types to
+  avoid funky (and useless) special classes from Axis. This was true using both
+  1.1 and 1.2 alpha. -->
+<wsdl:definitions targetNamespace="http://seismic.sosnoski.com/wsdl"
+   xmlns:wns="http://seismic.sosnoski.com/wsdl"
+   xmlns:tns="http://seismic.sosnoski.com/types"
+   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+   
+ <wsdl:types>
+  <schema xmlns="http://www.w3.org/2001/XMLSchema"
+     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+     targetNamespace="http://seismic.sosnoski.com/types"
+     elementFormDefault="qualified">
+     
+   <element name="query">
+    <complexType>
+     <sequence>
+      <element name="min-date" minOccurs="0" type="xsd:dateTime"/>
+      <element name="max-date" minOccurs="0" type="xsd:dateTime"/>
+      <element name="min-long" minOccurs="0" type="xsd:float"/>
+      <element name="max-long" minOccurs="0" type="xsd:float"/>
+      <element name="min-lat" minOccurs="0" type="xsd:float"/>
+      <element name="max-lat" minOccurs="0" type="xsd:float"/>
+      <element name="min-mag" minOccurs="0" type="xsd:float"/>
+      <element name="max-mag" minOccurs="0" type="xsd:float"/>
+      <element name="min-depth" minOccurs="0" type="xsd:float"/>
+      <element name="max-depth" minOccurs="0" type="xsd:float"/>
+     </sequence>
+    </complexType>
+   </element>
+   
+   <complexType name="Region">
+    <simpleContent>
+     <extension base="xsd:string">
+      <attribute name="ident" type="xsd:string"/>
+      <attribute name="index" type="xsd:int"/>
+     </extension>
+    </simpleContent>
+   </complexType>
+   
+   <complexType name="Quake">
+    <attribute name="time" type="xsd:dateTime"/>
+    <attribute name="millis" type="xsd:int"/>
+    <attribute name="latitude" type="xsd:float"/>
+    <attribute name="longitude" type="xsd:float"/>
+    <attribute name="depth" type="xsd:float"/>
+    <attribute name="magnitude" type="xsd:float"/>
+    <attribute name="method" type="xsd:string"/>
+    <attribute name="region" type="xsd:string"/>
+   </complexType>
+   
+   <complexType name="QuakeSet">
+    <sequence>
+     <element name="area-name" type="xsd:string"/>
+     <element name="regions">
+      <complexType>
+       <sequence>
+        <element name="region" minOccurs="0" maxOccurs="unbounded" type="tns:Region"/>
+       </sequence>
+       <attribute name="count" type="xsd:int"/>
+      </complexType>
+     </element>
+     <element name="quakes">
+      <complexType>
+       <sequence>
+        <element name="quake" minOccurs="0" maxOccurs="unbounded" type="tns:Quake"/>
+       </sequence>
+       <attribute name="count" type="xsd:int"/>
+      </complexType>
+     </element>
+    </sequence>
+   </complexType>
+   
+   <element name="results">
+    <complexType>
+     <sequence>
+      <element name="result-set" minOccurs="0" maxOccurs="unbounded" type="tns:QuakeSet"/>
+     </sequence>
+     <attribute name="count" type="xsd:int"/>
+    </complexType>
+   </element>
+   
+  </schema>
+ </wsdl:types>
+ 
+ <wsdl:message name="quakeQuery">
+  <wsdl:part name="parameters" element="tns:query"/>
+ </wsdl:message>
+
+ <wsdl:message name="quakeResponse">
+  <wsdl:part name="result" element="tns:results"/>
+ </wsdl:message>
+ 
+ <wsdl:portType name="SeismicInterface">
+  <wsdl:operation name="matchQuakes">
+   <wsdl:input message="wns:quakeQuery"/>
+   <wsdl:output message="wns:quakeResponse"/>
+  </wsdl:operation>
+ </wsdl:portType>
+ 
+ <wsdl:binding name="SeismicBinding" type="wns:SeismicInterface">
+  <wsdl:operation name="matchQuakes">
+   <wsdl:input>
+    <soap:body use="literal"/>
+   </wsdl:input>
+   <wsdl:output>
+    <soap:body use="literal"/>
+   </wsdl:output>
+   <soap:operation soapAction=""/>
+  </wsdl:operation>
+  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ </wsdl:binding>
+
+ <wsdl:service name="SeismicService">
+  <wsdl:port name="seisdoclit" binding="wns:SeismicBinding">
+   <soap:address location="http://localhost:8080/axis/seisdoclit"/>
+  </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>

Mime
View raw message