You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by ip...@apache.org on 2005/04/26 22:30:20 UTC

svn commit: r164871 - /incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl

Author: ips
Date: Tue Apr 26 13:30:20 2005
New Revision: 164871

URL: http://svn.apache.org/viewcvs?rev=164871&view=rev
Log:
a couple minor tweaks

Modified:
    incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl

Modified: incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl?rev=164871&r1=164870&r2=164871&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/_TEMPLATE_.wsdl Tue Apr 26 13:30:20 2005
@@ -1,53 +1,75 @@
 <?xml version="1.0"?>
 
 <definitions name="MyDefinition"
-             targetNamespace="http://ws.apache.org/resource/example/filesystem"
+             targetNamespace="http://abc.com/my/wsdl/namespace"
              xmlns="http://schemas.xmlsoap.org/wsdl/"
-             xmlns:tns="http://ws.apache.org/resource/example/filesystem"
+             xmlns:tns="http://abc.com/my/wsdl/namespace"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
              xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
              xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
-             xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl">
+             xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
+             xmlns:wsntw="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl">
 
    <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
-           location="../spec/wsrf/WS-ResourceProperties-1_2.wsdl"/>
+           location="../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl"/>
 
    <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
-           location="../spec/wsrf/WS-ResourceLifetime-1_2.wsdl"/>
+           location="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl"/>
+
+   <import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl" 
+           location="../spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl"/>
 
    <types>
       <schema elementFormDefault="qualified"
-              targetNamespace="http://ws.apache.org/resource/example/filesystem"
+              targetNamespace="http://abc.com/my/wsdl/namespace"
               xmlns="http://www.w3.org/2001/XMLSchema"
+              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
-              xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">
+              xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
+              xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd">
 
-         <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
-                 schemaLocation="../spec/wsrf/WS-BaseFaults-1_2.xsd"/>
+         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
+                     schemaLocation="../spec/wsrf/WS-BaseFaults-1_2.xsd"/>
 
-         <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
-                 schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_2.xsd"/>
+         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
+                     schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_2.xsd"/>
+ 
+         <xsd:import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd" 
+                     schemaLocation="../spec/wsn/WS-BaseNotification-1_2-Draft_01.xsd"/>
 
-         <!-- *** Add your custom resource property element definitions here *** -->
-      
+         <!-- *** Add an element definition here for each of your custom resource properties *** -->
+         <!-- *** e.g.: <element name="MyProperty" type="xsd:string" /> *** -->
+         
          <!-- Resource Properties Document Schema -->        
          <element name="ResourceProperties">
             <complexType>
                <sequence>
                
                   <!-- *** If you wish to implement the wsrl:ScheduledResourceTermination portType,
-                            uncomment the below two lines *** -->
+                           uncomment the below two lines *** -->
                   <!--
-                  <element ref="wsrl:CurrentTime"/>
-                  <element ref="wsrl:TerminationTime"/>
+                  <element ref="wsrl:CurrentTime" />
+                  <element ref="wsrl:TerminationTime" />
                   -->
 
-                  <!-- *** Add element refs for each of your custom resource property elements here *** -->
+                  <!-- *** If you wish to implement the wsnt:NotificationProducer portType,
+                           uncomment the below three lines *** -->
+                  <!--
+                  <element ref="wsnt:Topic" maxOccurs="unbounded" /> 
+                  <element ref="wsnt:FixedTopicSet" /> 
+                  <element ref="wsnt:TopicExpressionDialects" maxOccurs="unbounded" />     
+                  -->
+                  
+                  <!-- *** Add an element ref here for each of the custom resource property elements you defined above *** -->
+                  <!-- *** e.g.: <element ref="tns:MyProperty" /> (NOTE: default is minOccurs="1" and maxOccurs="1") *** -->
+                  <!-- ***   or: <element ref="tns:MyOtherProperty" minOccurs="0" maxOccurs="unbounded" /> *** -->
                   
                   <!-- *** Uncomment the below any element if you want to permit resource property elements 
                            with arbitrary names (not generally recommended) *** -->
+                  <!--
                   <any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
+                  -->
                   
                </sequence>
             </complexType>
@@ -130,8 +152,29 @@
          <fault name="TerminationTimeChangeRejectedFault" message="wsrlw:TerminationTimeChangeRejectedFault"/>
       </operation>
       -->
+      
+      <!-- *** If you wish to implement the WSNT NotificationProducer portType,
+               uncomment the below two operation blocks *** -->
+      <!--      
+      <operation name="Subscribe">
+         <input message="wsntw:SubscribeRequest" /> 
+         <output message="wsntw:SubscribeResponse" /> 
+         <fault name="ResourceUnknownFault" message="wsntw:ResourceUnknownFault" /> 
+         <fault name="SubscribeCreationFailedFault" message="wsntw:SubscribeCreationFailedFault" /> 
+         <fault name="TopicPathDialectUnknownFault" message="wsntw:TopicPathDialectUnknownFault" /> 
+      </operation>
+      
+      <operation name="GetCurrentMessage">
+         <input message="wsntw:GetCurrentMessageRequest" /> 
+         <output message="wsntw:GetCurrentMessageResponse" /> 
+         <fault name="ResourceUnknownFault" message="wsntw:ResourceUnknownFault" /> 
+         <fault name="InvalidTopicExpressionFault" message="wsntw:InvalidTopicExpressionFault" /> 
+         <fault name="TopicNotSupportedFault" message="wsntw:TopicNotSupportedFault" /> 
+         <fault name="NoCurrentMessageOnTopicFault" message="wsntw:NoCurrentMessageOnTopicFault" /> 
+      </operation>       
+      -->
        
-      <!-- *** Add operation blocks for custom operations here *** -->         
+      <!-- *** Add an operation block here for each of your custom operations *** -->         
 
    </portType>
 
@@ -276,15 +319,59 @@
       </operation>
       -->
 
-      <!-- *** Add operation blocks for custom operations here *** -->         
+      <!-- *** If you wish to implement the WSNT NotificationProducer portType,
+               uncomment the below two operation blocks *** -->
+      <!--                
+      <operation name="Subscribe">
+         <soap:operation style="document"/>
+         <input>
+            <soap:body use="literal"/>
+         </input>
+         <output>
+            <soap:body use="literal"/>
+         </output>
+         <fault name="ResourceUnknownFault">
+            <soap:fault name="ResourceUnknownFault" use="literal"/>
+         </fault>
+         <fault name="SubscribeCreationFailedFault">
+            <soap:fault name="SubscribeCreationFailedFault" use="literal"/>
+         </fault>
+         <fault name="TopicPathDialectUnknownFault">
+            <soap:fault name="TopicPathDialectUnknownFault" use="literal"/>
+         </fault>         
+      </operation>            
+      <operation name="GetCurrentMessage">
+         <soap:operation style="document"/>
+         <input>
+            <soap:body use="literal"/>
+         </input>
+         <output>
+            <soap:body use="literal"/>
+         </output>
+         <fault name="ResourceUnknownFault">
+            <soap:fault name="ResourceUnknownFault" use="literal"/>
+         </fault>
+         <fault name="InvalidTopicExpressionFault">
+            <soap:fault name="InvalidTopicExpressionFault" use="literal"/>
+         </fault>
+         <fault name="TopicNotSupportedFault">
+            <soap:fault name="TopicPathDialectUnknownFault" use="literal"/>
+         </fault>         
+         <fault name="NoCurrentMessageOnTopicFault">
+            <soap:fault name="NoCurrentMessageOnTopicFault" use="literal"/>
+         </fault>         
+      </operation>            
+      -->
+      
+      <!-- *** Add an operation block here for each of your custom operations *** -->         
       
    </binding>
 
    <service name="MyService">
       <!-- Note: the port name becomes the service name in the wsdd generated by Wsdl2Java -->
       <!-- *** Change the port name and the soap:address location below to reflect the desired endpoint URL *** -->
-      <port name="template" binding="tns:MySoapHttpBinding">
-         <soap:address location="http://localhost:8080/wsrf/services/template" />
+      <port name="MyPort" binding="tns:MySoapHttpBinding">
+         <soap:address location="http://localhost:8080/wsrf/services/MyPort" />
       </port>
    </service>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org