You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by ip...@apache.org on 2005/06/21 01:28:44 UTC

svn commit: r191585 [2/30] - in /incubator/muse/site: ./ dev_guide/ example/ example/epr/ example/images/ example/lib/ example/logic/ example/logic/src/ example/logic/src/java/ example/logic/src/java/org/ example/logic/src/java/org/apache/ example/logi...

Added: incubator/muse/site/example/_TEMPLATE_.wsdl
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/_TEMPLATE_.wsdl?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/_TEMPLATE_.wsdl (added)
+++ incubator/muse/site/example/_TEMPLATE_.wsdl Mon Jun 20 16:28:31 2005
@@ -0,0 +1,496 @@
+<?xml version="1.0"?>
+
+<definitions name="MyDefinition"
+             targetNamespace="http://abc.com/my/wsdl/namespace"
+             xmlns="http://schemas.xmlsoap.org/wsdl/"
+             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:wsntw="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl"
+             xmlns:muws-p2-wsdl="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.wsdl"
+             xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"
+             xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+
+   <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-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-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"/>
+
+   <import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.wsdl" 
+           location="../spec/wsdm/MUWS-Part2-1_0.wsdl"/>
+
+   <types>
+      <schema elementFormDefault="qualified"
+              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:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd"
+              xmlns:muws-p1-xs="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd"
+              xmlns:muws-p2-xs="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.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-Draft_01.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"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd" 
+                     schemaLocation="../spec/wsdm/MUWS-Part1-1_0.xsd"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd" 
+                     schemaLocation="../spec/wsdm/MUWS-Part2-1_0.xsd"/>
+
+         <!-- *** 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 *** -->
+                  <!--
+                  <element ref="wsrl:CurrentTime" />
+                  <element ref="wsrl:TerminationTime" />
+                  -->
+
+                  <!-- *** 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" />     
+                  -->
+                  
+                  <!-- *** The ResourceId property is _required_ by the MUWS spec *** -->
+		  <element ref="muws-p1-xs:ResourceId"/>
+		  
+		  <!-- *** If you wish to implement the MUWS ManageabilityCharacteristics capability,
+                           uncomment the below line *** -->
+	          <!--
+	          <element ref="muws-p1-xs:ManageabilityCapability" minOccurs="0" maxOccurs="unbounded"/>
+		  -->
+		  
+		  <!-- *** If you wish to implement the MUWS CorrelatableProperties capability,
+                           uncomment the below line *** -->
+                  <!--
+		  <element ref="muws-p1-xs:CorrelatableProperties" minOccurs="0" maxOccurs="unbounded"/>
+                  -->
+                  
+		  <!-- *** If you wish to implement the MUWS Description capability,
+                           uncomment the below three lines *** -->		  
+                  <!--
+                  <element ref="muws-p2-xs:Caption" minOccurs="0" maxOccurs="unbounded"/>
+                  <element ref="muws-p2-xs:Description" minOccurs="0" maxOccurs="unbounded"/>
+                  <element ref="muws-p2-xs:Version" minOccurs="0"/>		  
+                  -->
+                  
+		  <!-- *** If you wish to implement the MUWS OperationalStatus capability,
+                           uncomment the below line *** -->		  
+		  <!--
+		  <element ref="muws-p2-xs:OperationalStatus"/>
+                  -->
+
+		  <!-- *** If you wish to implement the MUWS Metrics capability,
+                           uncomment the below line *** -->		                    					          
+                  <!--
+	          <element ref="muws-p2-xs:CurrentTime"/>
+                  -->
+                  
+		  <!-- *** If you wish to implement the MUWS Relationships capability,
+                           uncomment the below line *** -->		                    				
+	          <!--
+	          <element ref="muws-p2-xs:Relationship" minOccurs="0" 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>
+         </element>
+
+         <!-- *** Add element definitions for custom request/response/fault types here *** -->         
+         
+      </schema>
+   </types>
+
+   <!-- *** Add message definitions for custom request/response/fault types here *** -->         
+   
+   <portType name="MyPortType" wsrp:ResourceProperties="tns:ResourceProperties">
+         
+      <operation name="GetResourceProperty">
+         <input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+         <output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+      </operation>
+
+      <!-- *** If you wish to implement the WSRP GetMultipleResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="GetMultipleResourceProperties">
+         <input name="GetMultipleResourcePropertiesRequest" message="wsrpw:GetMultipleResourcePropertiesRequest"/>
+         <output name="GetMultipleResourcePropertiesResponse" message="wsrpw:GetMultipleResourcePropertiesResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRP SetResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="SetResourceProperties">
+         <input name="SetResourcePropertiesRequest" message="wsrpw:SetResourcePropertiesRequest"/>
+         <output name="SetResourcePropertiesResponse" message="wsrpw:SetResourcePropertiesResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+         <fault name="InvalidSetResourcePropertiesRequestContentFault" message="wsrpw:InvalidSetResourcePropertiesRequestContentFault"/>
+         <fault name="UnableToModifyResourcePropertyFault" message="wsrpw:UnableToModifyResourcePropertyFault"/>
+         <fault name="SetResourcePropertyRequestFailedFault" message="wsrpw:SetResourcePropertyRequestFailedFault"/>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRP QueryResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="QueryResourceProperties">
+         <input name="QueryResourcePropertiesRequest" message="wsrpw:QueryResourcePropertiesRequest"/>
+         <output name="QueryResourcePropertiesResponse" message="wsrpw:QueryResourcePropertiesResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+         <fault name="UnknownQueryExpressionDialectFault" message="wsrpw:UnknownQueryExpressionDialectFault"/>
+         <fault name="InvalidQueryExpressionFault" message="wsrpw:InvalidQueryExpressionFault"/>
+         <fault name="QueryEvaluationErrorFault" message="wsrpw:QueryEvaluationErrorFault"/>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRL ImmediateResourceTermination portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="Destroy">
+         <input message="wsrlw:DestroyRequest"/>
+         <output message="wsrlw:DestroyResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrlw:ResourceUnknownFault"/>
+         <fault name="ResourceNotDestroyedFault" message="wsrlw:ResourceNotDestroyedFault"/>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRL ScheduledResourceTermination portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="SetTerminationTime">
+         <input message="wsrlw:SetTerminationTimeRequest"/>
+         <output message="wsrlw:SetTerminationTimeResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrlw:ResourceUnknownFault"/>
+         <fault name="UnableToSetTerminationTimeFault" message="wsrlw:UnableToSetTerminationTimeFault"/>
+         <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>       
+      -->
+
+      <!-- *** If you wish to implement the MUWS QueryRelationshipsByType operation,
+               uncomment the below operation block *** -->
+      <!--            
+      <operation name="QueryRelationshipsByType">
+         <input message="muws-p2-wsdl:QueryRelationshipsByTypeRequest"/>
+         <output message="muws-p2-wsdl:QueryRelationshipsByTypeResponse"/>         
+      </operation>      
+      -->
+
+      <!-- *** If you wish to implement the WS-MetadataExchange MetadataExchange portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="GetMetadata" >
+         <input message="mex:GetMetadataMsg"
+                wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Request" />
+         <output message="mex:GetMetadataResponseMsg"
+                wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Response" />
+      </operation>
+      <operation name="Get" >
+         <input message="mex:GetMsg"
+                wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Request" />
+         <output message="mex:GetResponseMsg"
+                wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Response" />
+      </operation>
+      -->
+      
+      <!-- *** Add an operation block here for each of your custom operations *** -->         
+
+   </portType>
+
+   <binding name="MySoapHttpBinding" type="tns:MyPortType">
+
+      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+   
+      <operation name="GetResourceProperty">
+         <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="InvalidResourcePropertyQNameFault">
+            <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
+         </fault>
+      </operation>
+
+      <!-- *** If you wish to implement the WSRP GetMultipleResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="GetMultipleResourceProperties">
+         <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="InvalidResourcePropertyQNameFault">
+            <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
+         </fault>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRP SetResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="SetResourceProperties">
+         <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="InvalidResourcePropertyQNameFault">
+            <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
+         </fault>
+         <fault name="UnableToModifyResourcePropertyFault">
+            <soap:fault name="UnableToModifyResourcePropertyFault" use="literal"/>
+         </fault>
+         <fault name="InvalidSetResourcePropertiesRequestContentFault">
+            <soap:fault name="InvalidSetResourcePropertiesRequestContentFault" use="literal"/>
+         </fault>
+         <fault name="SetResourcePropertyRequestFailedFault">
+            <soap:fault name="SetResourcePropertyRequestFailedFault" use="literal"/>
+         </fault>
+      </operation>
+      -->
+
+      <!-- *** If you wish to implement the WSRP QueryResourceProperties portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="QueryResourceProperties">
+         <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="InvalidResourcePropertyQNameFault">
+            <soap:fault name="InvalidResourcePropertyQNameFault" use="literal"/>
+         </fault>
+         <fault name="UnknownQueryExpressionDialectFault">
+            <soap:fault name="UnknownQueryExpressionDialectFault" use="literal"/>
+         </fault>
+         <fault name="InvalidQueryExpressionFault">
+            <soap:fault name="InvalidQueryExpressionFault" use="literal"/>
+         </fault>
+         <fault name="QueryEvaluationErrorFault">
+            <soap:fault name="QueryEvaluationErrorFault" use="literal"/>
+         </fault>
+      </operation>
+      -->
+      
+      <!-- *** If you wish to implement the WSRL ImmediateResourceTermination portType,
+               uncomment the below operation block *** -->
+      <!--      
+      <operation name="Destroy">
+         <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="ResourceNotDestroyedFault">
+            <soap:fault name="ResourceNotDestroyedFault" use="literal"/>
+         </fault>
+      </operation>            
+      -->
+    
+      <!-- *** If you wish to implement the WSRL ScheduledResourceTermination portType,
+               uncomment the below operation block *** -->
+      <!--          
+      <operation name="SetTerminationTime">
+         <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="UnableToSetTerminationTimeFault">
+            <soap:fault name="UnableToSetTerminationTimeFault" use="literal"/>
+         </fault>
+         <fault name="TerminationTimeChangeRejectedFault">
+            <soap:fault name="TerminationTimeChangeRejectedFault" use="literal"/>
+         </fault>
+      </operation>
+      -->
+
+      <!-- *** 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>            
+      -->
+
+      <!-- *** If you wish to implement the MUWS QueryRelationshipsByType operation,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="QueryRelationshipsByType">
+         <soap:operation style="document"/>
+         <input>
+            <soap:body use="literal"/>
+         </input>
+         <output>
+            <soap:body use="literal"/>
+         </output>
+      </operation>            
+      -->
+      
+      <!-- *** If you wish to implement the WS-MetadataExchange MetadataExchange portType,
+               uncomment the below operation block *** -->
+      <!--
+      <operation name="GetMetadata" >
+      	 <soap:operation style="document"/>
+         <input>
+            <soap:body use="literal"/>
+         </input>
+         <output>
+            <soap:body use="literal"/>
+         </output>
+      </operation>
+      <operation name="Get" >
+      	 <soap:operation style="document"/>
+         <input>
+            <soap:body use="literal"/>
+         </input>
+         <output>
+            <soap:body use="literal"/>
+         </output>
+      </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="MyPort" binding="tns:MySoapHttpBinding">
+         <soap:address location="http://localhost:8080/muse/services/MyPort" />
+      </port>
+   </service>
+
+</definitions>

Added: incubator/muse/site/example/build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/build.properties?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/build.properties (added)
+++ incubator/muse/site/example/build.properties Mon Jun 20 16:28:31 2005
@@ -0,0 +1,14 @@
+base.url=http://localhost:8080/muse/services/
+
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# muse webapp located somewhere other than the default location of
+# ../webapps/muse (e.g. ${env.CATALINA_HOME}/webapps/muse)
+muse.webapp.dir=${env.CATALINA_HOME}/webapps/muse
+
+#muse.webapp.dir=C:/eclipse/wsdm_workspace/muse/target/muse
+
+# Uncomment and modify the below lines if you require a proxy to connect to external web sites
+#http.proxyHost=proxy.xyz.com
+#http.proxyPort=8088
+#http.nonProxyHosts=localhost 

Added: incubator/muse/site/example/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/build.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/build.xml (added)
+++ incubator/muse/site/example/build.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,216 @@
+<?xml version="1.0"?>
+
+<project name="interop_buildfile" default="usage" basedir=".">
+
+   <property environment="env" />   
+   <property file="build.properties" />
+   
+   <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+   <property name="ant.home" value="env.ANT_HOME"/>
+
+   <property name="out.dir"               location="services"/>
+   <property name="classes.dir"  location="${basedir}\classes" />
+   <property name="jar.dir"      location="${basedir}\lib" />
+   <property name="src.dir"      location="${basedir}\src\java" /> 
+   <property name="wsdl.dir"     location="${basedir}\src\wsdl" />
+   
+   <target name="init" unless="muse.classpath">
+             
+     <fail message="Please set the location of the muse.webapp.dir in build.properties" unless="muse.webapp.dir" />
+     <echo>Using webapp dir: ${muse.webapp.dir}</echo>
+     <path id="muse.classpath.id">
+       <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+       <fileset dir="${muse.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+       <fileset dir="${jar.dir}" />
+       <pathelement location="${activation.jar}" />
+       <pathelement location="${mail.jar}" />
+     </path>
+     <property name="muse.classpath" refid="muse.classpath.id" />
+   
+   </target> 
+   
+   <!-- =======================================================================	-->
+   <!-- Do not use generate target - it will override the muse example classes	-->
+   <!-- It is there for muse example developers to facilitate the modifications -->
+   <!-- You will be using this target in the tutorial to generate classes	--> 
+   <!-- for resource(s) defined in wsdl						-->
+   <!-- If you absolutely want to use this target - change the value		-->
+   <!-- for out.dir to point to some other dir that services.			-->
+   <!-- This way you will not loose the code for muse example.			-->
+   <!-- =======================================================================	-->
+
+      
+   <!--target name="generate"
+              depends="init"
+              description="generate service classes and XMLBeans types for the source WSDLs...Note this has already been done and claases have been implemented.">      
+              
+        < the wsdls imports xsd located at schemaLocation="../wsdl/ to accomodate this temp dir name is wsdl >
+        
+        <property name="tmp.dir" location="${muse.webapp.dir}/wsdl" />
+        <mkdir dir="${tmp.dir}" />
+        <copy todir="${tmp.dir}" overwrite="true">
+        <fileset dir="${wsdl.dir}">
+           <include name="**/*"/>
+        </fileset>
+        </copy>
+        <mkdir dir="${muse.webapp.dir}/wsdl" />
+                
+        <taskdef name="wsdl2Java" classname="org.apache.ws.muws.tool.MuwsWsdl2JavaTask" classpath="${muse.classpath}" />              
+        
+        <wsdl2Java outputDir="${out.dir}"
+                   classpath="${muse.classpath}"
+                   debug="off"
+                   proxyHost="${http.proxyHost}"
+                   proxyPort="${http.proxyPort}"
+                   nonProxyHosts="${http.nonProxyHosts}">
+          <wsdls dir="${tmp.dir}">
+            <include name="**/*.wsdl" />	  
+          </wsdls>
+        </wsdl2Java>
+             
+        <delete dir="${tmp.dir}" />
+                  
+   </target--> 
+   
+   <!-- =======================================================================	-->
+   <!-- use "all" target to compile and deploy all resources in the example app	-->
+   <!-- this target will execute cascade build, deploy - will call 		-->
+   <!-- "ant build.xml compile build"  for each child project			-->
+   <!-- NOTE:	do not change the order of dependencies				-->
+   <!--		logic needs to be compiled and deployed first - dependencies	-->
+   <!-- ======================================================================= -->
+  
+	<target name="all"  depends="deploy_logic, deploy_application, deploy_host,
+		deploy_businessprocesstype, deploy_integrationserver, deploy_resourceadmin" >
+	<mkdir dir="${muse.webapp.dir}/wsdl" />
+	       <copy todir="${muse.webapp.dir}/wsdl" overwrite="true" verbose="true">
+		  <fileset dir="${wsdl.dir}" includes="**/*.xsd"/>
+	</copy>
+	</target>
+   
+      
+   <!-- =======================================================================	-->
+   <!-- use "compile_all" target to compile all resources in the example app	-->
+   <!-- this target will execute cascade build, deploy - will call 		-->
+   <!-- "ant build.xml compile"  for each child project				-->
+   <!-- ======================================================================= -->
+   
+   <target name="compile_all"  depends="compile_logic, compile_application, compile_host,
+   	compile_businessprocesstype, compile_integrationserver, compile_resourceadmin" />
+
+   
+   <!-- ====================================================================	-->
+   <!-- Below are dependency tasks for compilation and deployment for		--> 
+   <!-- specific resources							-->
+   <!-- ==================================================================== 	-->
+
+      
+	<target name="compile_logic"
+	   depends="init"
+	   description="compile logic classes">  
+	<ant inheritAll="false" dir="logic" target="compile"/>
+	</target>
+
+
+	<target name="compile_application"
+	      depends="init"
+	      description="compile application project">  
+	 <ant inheritAll="false" dir="${out.dir}\Application" target="compile"/>
+	</target>
+
+	<target name="compile_host"
+		 depends="init"
+		 description="compile host project">  
+	    <ant inheritAll="false" dir="${out.dir}\Host" target="compile"/>
+	</target>
+
+	<target name="compile_businessprocesstype"
+		 depends="init"
+		 description="compile businessprocesstype project">  
+	    <ant inheritAll="false" dir="${out.dir}\Businessprocesstype" target="compile"/>
+	</target>
+
+	<target name="compile_integrationserver"
+		 depends="init"
+		 description="compile integrationserver project">  
+	    <ant inheritAll="false" dir="${out.dir}\Integrationserver" target="compile"/>
+	</target>
+
+
+	<target name="compile_resourceadmin"
+		    depends="init"
+		    description="compile resourceadmin project">  
+	       <ant inheritAll="false" dir="${out.dir}\Resourceadmin" target="compile"/>
+	</target>
+
+   <!-- =======================================================================	-->
+   <!-- Deployment tasks                                           		-->
+   <!-- =======================================================================	-->
+
+  
+         
+	<target name="deploy_logic"
+	      depends="init,compile_logic"
+	      description="deploy logic classes">  
+	 <ant inheritAll="false" dir="logic" target="deploy"/>
+	</target>
+
+
+	<target name="deploy_application"
+		 depends="init, compile_application"
+		 description="deploy application project">  
+	    <ant inheritAll="false" dir="${out.dir}\Application" target="deploy"/>
+	</target>
+
+	<target name="deploy_host"
+		    depends="init, compile_host"
+		    description="deploy host project">  
+	    <ant inheritAll="false" dir="${out.dir}\Host" target="deploy"/>
+	</target>
+
+	<target name="deploy_businessprocesstype"
+		    depends="init, compile_businessprocesstype"
+		    description="deploy businessprocesstype project">  
+	    <ant inheritAll="false" dir="${out.dir}\Businessprocesstype" target="deploy"/>
+	</target>
+
+	<target name="deploy_integrationserver"
+		    depends="init, compile_integrationserver"
+		    description="deploy integrationserver project">  
+	    <ant inheritAll="false" dir="${out.dir}\Integrationserver" target="deploy"/>
+	</target>
+
+
+	<target name="deploy_resourceadmin"
+		       depends="init, compile_resourceadmin"
+		       description="deploy resourceadmin project">  
+	    <ant inheritAll="false" dir="${out.dir}\Resourceadmin" target="deploy"/>
+   	</target>
+         
+         
+   
+           
+  <!-- ==================================================================== 	-->
+  <!-- Test task - send predefined requests to the muse example wsb app 	-->
+  <!-- The web server is assumed to be up and running with deployed muse and muse example -->
+  <!-- ==================================================================== 	-->
+   
+   <target name="test" description="sends tests requests to resources">
+   	<ant antfile="test.xml">
+   </ant>
+	   
+   </target>
+   
+   <target name="clean" description="delete the class files">
+       <delete dir="${classes.dir}" />
+   </target>
+   
+   <target name="usage">      
+      <java classname="org.apache.tools.ant.Main">
+         <arg value="-buildfile" />
+         <arg value="${ant.file}" />
+         <arg value="-projecthelp" />
+      </java>
+   </target>   
+
+</project>

Added: incubator/muse/site/example/epr/resourceadmin_epr.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/epr/resourceadmin_epr.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/epr/resourceadmin_epr.xml (added)
+++ incubator/muse/site/example/epr/resourceadmin_epr.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,5 @@
+<?xml version="1.0" ?> 
+<EndpointReference xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+  <wsa:Address>http://localhost:8080/muse/services/resourceadmin</wsa:Address> 
+  <wsa:ReferenceProperties/>
+</EndpointReference>

Added: incubator/muse/site/example/images/Picture2.jpg
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/Picture2.jpg?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/Picture2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/images/Picture3.jpg
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/Picture3.jpg?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/Picture3.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/images/asf_logo_wide.gif
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/asf_logo_wide.gif?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/asf_logo_wide.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/images/model.jpg
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/model.jpg?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/model.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/images/model1.jpg
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/model1.jpg?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/model1.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/images/relnotes.css
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/relnotes.css?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/images/relnotes.css (added)
+++ incubator/muse/site/example/images/relnotes.css Mon Jun 20 16:28:31 2005
@@ -0,0 +1,39 @@
+H1 {
+	FONT-SIZE: 2em; COLOR: #999999; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+H1 {
+	
+}
+H2 {
+	FONT-SIZE: 1.3em; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+H2 {
+	FONT-WEIGHT: normal
+}
+H2 {
+	
+}
+H2 {
+	
+}
+P {
+	FONT-SIZE: 0.8em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+H3 {
+	FONT-SIZE: 0.9em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+UL {
+	MARGIN-TOP: 0.4em; LIST-STYLE-POSITION: outside; FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0.4em; PADDING-BOTTOM: 0.4em; PADDING-TOP: 0.4em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; LIST-STYLE-TYPE: square
+}
+TH {
+	FONT-WEIGHT: bold; FONT-SIZE: 0.8em; COLOR: #ffffff; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #333333
+}
+TD {
+	FONT-SIZE: 0.8em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+OL {
+	MARGIN-TOP: 0.4em; FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0.4em; PADDING-BOTTOM: 0.4em; PADDING-TOP: 0.4em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; LIST-STYLE-TYPE: decimal
+}
+.small {
+	FONT-SIZE: 0.6em; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}

Added: incubator/muse/site/example/images/top.gif
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/images/top.gif?rev=191585&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/muse/site/example/images/top.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/muse/site/example/logic/build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/build.properties?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/build.properties (added)
+++ incubator/muse/site/example/logic/build.properties Mon Jun 20 16:28:31 2005
@@ -0,0 +1,13 @@
+
+endpoint.url=http://localhost:8080/muse/services/
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# muse webapp located somewhere other than the default location of
+# ../webapps/muse (e.g. ${env.CATALINA_HOME}/webapps/muse)
+muse.webapp.dir=${env.CATALINA_HOME}/webapps/muse
+
+
+# Uncomment and modify the below lines if you require a proxy to connect to external web sites
+http.proxyHost=proxy.corp.hp.com
+http.proxyPort=8088
+http.nonProxyHosts=localhost 

Added: incubator/muse/site/example/logic/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/build.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/build.xml (added)
+++ incubator/muse/site/example/logic/build.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,82 @@
+<?xml version="1.0"?>
+
+<project name="example_logic_buildfile" default="usage" basedir=".">
+
+   <property environment="env" />   
+   <property file="build.properties" />
+   
+   <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+   <property name="ant.home" value="env.ANT_HOME"/>
+   
+   <property name="classes.dir"  location="${basedir}/classes" />
+   <property name="jar.dir"      location="${basedir}/../services/.xmlbeans/lib" />
+   <property name="src.dir"      location="${basedir}/src/java" />
+
+   <target name="init" unless="muse.classpath">
+             
+    <echo> Jar dir: ${jar.dir}</echo>
+     <fail message="Please set the location of the muse.webapp.dir in build.properties" unless="muse.webapp.dir" />
+     <echo>Using webapp dir: ${muse.webapp.dir}</echo>
+     <path id="muse.classpath.id">
+       <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+       <fileset dir="${muse.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+       <fileset dir="${jar.dir}" />
+       <pathelement location="${jar.dir}" />
+       <pathelement location="${activation.jar}" />
+       <pathelement location="${mail.jar}" />
+     </path>
+     <property name="muse.classpath" refid="muse.classpath.id" />
+   
+   </target>   
+
+   <target name="compile"
+           depends="init"
+           description="compile all classes below classes directory">  
+      <mkdir dir="${classes.dir}" />
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"           
+             classpathref="muse.classpath.id"
+             debug="on" 
+             excludes="xmlbeans/**"/>         
+      <copy todir="${classes.dir}">
+         <fileset dir="${src.dir}" excludes="**/*.java,**/package.html" />
+      </copy>
+   </target>
+           
+   <target name="deploy"
+           depends="init"
+           description="deploys the muse example backend classes to the wsrf webapp">
+       <echo>Deploying muse example backend classes to ${muse.webapp.dir}/WEB-INF/classes/...</echo>
+       <copy todir="${muse.webapp.dir}/WEB-INF/classes">
+         <fileset dir="${classes.dir}" />        
+       </copy>
+    </target>
+    
+    <target name="compile_deploy"
+               depends="compile, deploy"
+               description="deploys the muse example backend classes to the wsrf webapp">
+           <echo>Kinga..</echo>
+    </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the muse example service">      
+        
+     <ant antfile="soapclient.xml">
+       <property name="url" value="${endpoint.url}" />
+     </ant>
+   
+   </target>
+   
+   <target name="clean" description="delete the generated source and class files">
+       <delete dir="${classes.dir}" />
+   </target>
+   
+   <target name="usage">      
+      <java classname="org.apache.tools.ant.Main">
+         <arg value="-buildfile" />
+         <arg value="${ant.file}" />
+         <arg value="-projecthelp" />
+      </java>
+   </target>   
+
+</project>

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleConstants.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleConstants.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleConstants.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleConstants.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,92 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.ws.muse.example;
+
+import javax.xml.namespace.QName;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class ExampleConstants
+{
+   /** DOCUMENT_ME */
+   public static String         SERVICES_URL = null;
+
+   /** DOCUMENT_ME */
+   public static final String   ADDRESSING_2004_NAMESPACE = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
+
+   /** DOCUMENT_ME */
+   public static final String[] KNOWN_RESOURCE_TYPES =
+      {
+         "HostMachine",
+         "BusinessProcess",
+         "EnterpriseApplication",
+         "IntegrationServer"
+      };
+
+   /** DOCUMENT_ME */
+   public static final String MUWS_EXT_CAPABILITY_URI =
+      "http://ws.apache.org/namespaces/muse/capabilities/muws-ext-1";
+
+   /** DOCUMENT_ME */
+   public static final QName RELATIONSHIP_RELATION = new QName( "org.apache.ws.muse.example", "Test", "r" );
+
+   static
+   {
+      init(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public static String getAddressingNamespace(  )
+   {
+      return ADDRESSING_2004_NAMESPACE;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public static String[] getKnownResourceTypes(  )
+   {
+      return KNOWN_RESOURCE_TYPES;
+   }
+
+   private static void init(  )
+   {
+      if ( SERVICES_URL == null )
+      {
+         try
+         { //determine the real ip address
+            SERVICES_URL = "http://" + InetAddress.getLocalHost(  ).getHostAddress(  ) + ":8080/muse/services";
+         }
+         catch ( UnknownHostException uhe )
+         {
+            uhe.printStackTrace(  );
+         }
+      }
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleUtils.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleUtils.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleUtils.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/ExampleUtils.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,185 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example;
+
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipParticipantType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipTypeType;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class ExampleUtils
+{
+   /**
+    * DOCUMENT_ME
+    *
+    * @param relationshipRemove DOCUMENT_ME
+    * @param relationshipFromProp DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public static boolean CompareRelationships( RelationshipType relationshipRemove,
+                                               RelationshipType relationshipFromProp )
+   {
+      // get type of relationship to be removed
+      RelationshipTypeType typeRemove = relationshipRemove.getType(  );
+      RelationshipTypeType type = relationshipFromProp.getType(  );
+
+      if ( !compareType( typeRemove, type ) )
+      {
+         return false;
+      }
+
+      if ( !compareParticipants( relationshipRemove, relationshipFromProp ) )
+      {
+         return false;
+      }
+
+      return true;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param firstParticipant DOCUMENT_ME
+    * @param secondParticipant DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public static boolean compare( RelationshipParticipantType firstParticipant,
+                                  RelationshipParticipantType secondParticipant )
+   {
+      EndpointReferenceType firstEpr  = firstParticipant.getManageabilityEndpointReferenceArray( 0 );
+      EndpointReferenceType secondEpr = secondParticipant.getManageabilityEndpointReferenceArray( 0 );
+      if ( firstEpr.getAddress(  ).getStringValue(  ).compareTo( secondEpr.getAddress(  ).getStringValue(  ) ) != 0 )
+      {
+         return false;
+      }
+
+      XmlObject[] firstchildElems  = XmlBeanUtils.getChildElements( firstEpr.getReferenceProperties(  ) );
+      XmlObject[] secondchildElems = XmlBeanUtils.getChildElements( secondEpr.getReferenceProperties(  ) );
+      if ( firstchildElems.length != secondchildElems.length )
+      {
+         return false;
+      }
+
+      if ( firstchildElems.length > 0 )
+      {
+         for ( int i = 0; i < firstchildElems.length; i++ )
+         {
+            XmlObject obj1   = firstchildElems[i];
+            QName     tag1   = XmlBeanUtils.getName( obj1 );
+            String    value1 = XmlBeanUtils.getValue( obj1 );
+
+            XmlObject obj2   = secondchildElems[i];
+            QName     tag2   = XmlBeanUtils.getName( obj2 );
+            String    value2 = XmlBeanUtils.getValue( obj2 );
+            if ( tag1.toString(  ).compareTo( tag2.toString(  ) ) != 0 )
+            {
+               return false;
+            }
+
+            if ( value1.compareTo( value2 ) != 0 )
+            {
+               return false;
+            }
+         }
+      }
+
+      if ( firstParticipant.getRole(  ).compareTo( secondParticipant.getRole(  ) ) != 0 )
+      {
+         return false;
+      }
+
+      if ( firstParticipant.getResourceId(  ).compareTo( secondParticipant.getResourceId(  ) ) != 0 )
+      {
+         return false;
+      }
+
+      return true;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param relationshipRemove DOCUMENT_ME
+    * @param relationshipFromProp DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public static boolean compareParticipants( RelationshipType relationshipRemove,
+                                              RelationshipType relationshipFromProp )
+   {
+      //get participants arrays
+      RelationshipParticipantType[] participantsRemove = relationshipRemove.getParticipantArray(  );
+      RelationshipParticipantType[] participants = relationshipFromProp.getParticipantArray(  );
+
+      //The correct relationship needs to have 2 Participants
+      // The relationship match require this same number of participants
+      if ( ( ( participantsRemove.length < 2 ) || ( participants.length < 2 ) )
+           || ( participantsRemove.length != participants.length ) )
+      {
+         return false;
+      }
+
+      for ( int i = 0; i < participants.length; i++ )
+      {
+         if ( !compare( participantsRemove[i], participants[i] ) )
+         {
+            return false;
+         }
+      }
+
+      return true;
+   }
+
+   /**
+    * Compares the Relationship Type
+    * @param RelationshipTypeType typeRemove
+    * @param RelationshipTypeType typeFromProp
+    * @return true if the Types are this same, false if the Types are different
+    */
+   public static boolean compareType( RelationshipTypeType typeRemove,
+                                      RelationshipTypeType typeFromProp )
+   {
+      XmlObject[] childRemove = XmlBeanUtils.getChildElements( typeRemove );
+      XmlObject[] childElems = XmlBeanUtils.getChildElements( typeFromProp );
+
+      if ( ( childElems.length > 0 ) && ( childRemove.length > 0 ) )
+      {
+         XmlObject obj       = childElems[0];
+         XmlObject objRemove = childRemove[0];
+         QName     tag       = XmlBeanUtils.getName( obj );
+         QName     tagRemove = XmlBeanUtils.getName( objRemove );
+
+         // if the relationship Types are not qual - the relationships are not equal 
+         if ( tagRemove.toString(  ).compareTo( tag.toString(  ) ) != 0 )
+         {
+            return false;
+         }
+      }
+
+      return true;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/backend/ApplicationInstance.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/backend/ApplicationInstance.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/backend/ApplicationInstance.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/backend/ApplicationInstance.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,86 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+
+package org.apache.ws.muse.example.application.backend;
+
+import java.util.Random;
+
+/**
+ * DOCUMENT_ME
+ *
+ * @author Kinga Dziembowski
+ */
+public class ApplicationInstance
+{
+   private String m_Id;
+   private long   m_totNumProc     = 0L;
+   private Random m_random         = new Random(  );
+   private Random m_time           = new Random(  );
+   private long   m_cumulativeTime = 0L;
+   private int    m_outstRequests  = 0;
+
+   /**
+    * Creates a new {@link ApplicationInstance} object.
+    *
+    * @param id DOCUMENT_ME
+    */
+   public ApplicationInstance( String id )
+   {
+      m_Id = id;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getCumulativeExecutionTime(  )
+   {
+      m_cumulativeTime += m_time.nextInt( 30 );
+      return m_cumulativeTime;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public int getNumberOfOutstandingRequests(  )
+   {
+      m_outstRequests += m_time.nextInt( 5 );
+      return m_outstRequests;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getTotalNumberOfRequests(  )
+   {
+      m_totNumProc += 1;
+      return m_totNumProc;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param args DOCUMENT_ME
+    */
+   public static void main( String[] args )
+   {
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/CumulativeExecutionTimeCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/CumulativeExecutionTimeCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/CumulativeExecutionTimeCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/CumulativeExecutionTimeCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.application.callback;
+
+import org.apache.ws.muse.example.application.backend.ApplicationInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.LongMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class CumulativeExecutionTimeCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   ApplicationInstance m_instance;
+
+   /**
+    * Creates a new {@link CumulativeExecutionTimeCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public CumulativeExecutionTimeCallback( ApplicationInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         LongMetricImpl metric       = (LongMetricImpl) prop.get( 0 );
+         Calendar       calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setLongValue( m_instance.getCumulativeExecutionTime(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/TotalNumberOfRequestsCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/TotalNumberOfRequestsCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/TotalNumberOfRequestsCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/application/callback/TotalNumberOfRequestsCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.application.callback;
+
+import org.apache.ws.muse.example.application.backend.ApplicationInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.LongMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class TotalNumberOfRequestsCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   ApplicationInstance m_instance;
+
+   /**
+    * Creates a new {@link TotalNumberOfRequestsCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public TotalNumberOfRequestsCallback( ApplicationInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         LongMetricImpl metric       = (LongMetricImpl) prop.get( 0 );
+         Calendar       calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setLongValue( m_instance.getTotalNumberOfRequests(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/backend/BusinessProcessInstance.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/backend/BusinessProcessInstance.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/backend/BusinessProcessInstance.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/backend/BusinessProcessInstance.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,196 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.backend;
+
+import java.util.ArrayList;
+import java.util.Random;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class BusinessProcessInstance
+{
+   private String    m_Id;
+   private Random    m_random             = new Random(  );
+   private Random    m_time               = new Random(  );
+   private long      m_cumulativeTime     = 0L;
+   private long      m_totProcesses       = 0L;
+   private long      m_totCompProcesses   = 0L;
+   private long      m_totAbortProcesses  = 0L;
+   private int       m_runningProcesses   = 0;
+   private int       m_suspendProcesses   = 0;
+   private ArrayList m_allprocessesIds    = new ArrayList(  );
+   private ArrayList m_runProcesses       = new ArrayList(  );
+   private ArrayList m_suspProcesses      = new ArrayList(  );
+   private ArrayList m_termProcesses      = new ArrayList(  );
+   private ArrayList m_abortedProcesses   = new ArrayList(  );
+   private ArrayList m_completedProcesses = new ArrayList(  );
+
+   /**
+    * Creates a new {@link BusinessProcessInstance} object.
+    *
+    * @param id DOCUMENT_ME
+    */
+   public BusinessProcessInstance( String id )
+   {
+      m_Id = id;
+      int size = 10 + m_random.nextInt( 20 );
+      for ( int i = 0; i <= size; i++ )
+      {
+         String processId = Integer.toString( i );
+         m_allprocessesIds.add( processId );
+         m_runProcesses.add( processId );
+      }
+
+      m_totProcesses = m_runningProcesses = m_allprocessesIds.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getCumulativeExecutionTime(  )
+   {
+      m_cumulativeTime += m_time.nextInt( 30 );
+      return m_cumulativeTime;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public int getNumberOfRunningProcesses(  )
+   {
+      return m_runProcesses.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public int getNumberOfSuspendedProcesses(  )
+   {
+      return m_suspProcesses.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getTotalNumberOfAbortedProcesses(  )
+   {
+      return m_abortedProcesses.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getTotalNumberOfCompletedProcesses(  )
+   {
+      return m_completedProcesses.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public long getTotalNumberOfTerminatedProcesses(  )
+   {
+      return m_termProcesses.size(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param processId DOCUMENT_ME
+    */
+   public void resume( String processId )
+   {
+      //		 Check if the id is a valid Id
+      boolean exists = m_allprocessesIds.contains( processId );
+      if ( exists )
+      {
+         // Check if the process is not already suspended
+         if ( m_suspProcesses.contains( processId ) )
+         {
+            //Remove the process to suspended list
+            m_suspProcesses.remove( processId );
+
+            // Move the process from running list
+            m_runProcesses.add( processId );
+         }
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param processId DOCUMENT_ME
+    */
+   public void suspend( String processId )
+   {
+      // Check if the id is a valid Id
+      boolean exists = m_allprocessesIds.contains( processId );
+      if ( exists )
+      {
+         // Check if the process is not already suspended
+         if ( !m_suspProcesses.contains( processId ) )
+         {
+            //Move the process to suspended list
+            m_suspProcesses.add( processId );
+
+            // remove the process from running list
+            m_runProcesses.remove( processId );
+         }
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param processId DOCUMENT_ME
+    */
+   public void terminate( String processId )
+   {
+      // Check if the id is a valid Id
+      boolean exists = m_allprocessesIds.contains( processId );
+      if ( exists )
+      {
+         // Check if the process is not already suspended
+         if ( m_suspProcesses.contains( processId ) )
+         {
+            //Remove the process to suspended list
+            m_suspProcesses.remove( processId );
+         }
+
+         if ( m_runProcesses.contains( processId ) )
+         {
+            // Move the process from running list
+            m_runProcesses.remove( processId );
+         }
+      }
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/CumulativeExecutionTimeCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/CumulativeExecutionTimeCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/CumulativeExecutionTimeCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/CumulativeExecutionTimeCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.callback;
+
+import org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.LongMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class CumulativeExecutionTimeCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   BusinessProcessInstance m_instance;
+
+   /**
+    * Creates a new {@link CumulativeExecutionTimeCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public CumulativeExecutionTimeCallback( BusinessProcessInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         LongMetricImpl metric       = (LongMetricImpl) prop.get( 0 );
+         Calendar       calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setLongValue( m_instance.getCumulativeExecutionTime(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfRunningProcessesCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfRunningProcessesCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfRunningProcessesCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfRunningProcessesCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.callback;
+
+import org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.IntMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class NumberOfRunningProcessesCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   BusinessProcessInstance m_instance;
+
+   /**
+    * Creates a new {@link NumberOfRunningProcessesCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public NumberOfRunningProcessesCallback( BusinessProcessInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         IntMetricImpl metric       = (IntMetricImpl) prop.get( 0 );
+         Calendar      calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setIntValue( m_instance.getNumberOfRunningProcesses(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfSuspendedProcessesCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfSuspendedProcessesCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfSuspendedProcessesCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/NumberOfSuspendedProcessesCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.callback;
+
+import org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.IntMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class NumberOfSuspendedProcessesCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   BusinessProcessInstance m_instance;
+
+   /**
+    * Creates a new {@link NumberOfSuspendedProcessesCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public NumberOfSuspendedProcessesCallback( BusinessProcessInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         IntMetricImpl metric       = (IntMetricImpl) prop.get( 0 );
+         Calendar      calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setIntValue( m_instance.getNumberOfSuspendedProcesses(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfAbortedProcessesCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfAbortedProcessesCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfAbortedProcessesCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfAbortedProcessesCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.callback;
+
+import org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.LongMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class TotalNumberOfAbortedProcessesCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   BusinessProcessInstance m_instance;
+
+   /**
+    * Creates a new {@link TotalNumberOfAbortedProcessesCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public TotalNumberOfAbortedProcessesCallback( BusinessProcessInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         LongMetricImpl metric       = (LongMetricImpl) prop.get( 0 );
+         Calendar       calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setLongValue( m_instance.getTotalNumberOfAbortedProcesses(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfCompletedProcessesCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfCompletedProcessesCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfCompletedProcessesCallback.java (added)
+++ incubator/muse/site/example/logic/src/java/org/apache/ws/muse/example/businessprocesstype/callback/TotalNumberOfCompletedProcessesCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,65 @@
+/*=============================================================================*
+ *  Copyright 2005 The Apache Software Foundation
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.businessprocesstype.callback;
+
+import org.apache.ws.muse.example.businessprocesstype.backend.BusinessProcessInstance;
+import org.apache.ws.namespaces.muse.muwsExt1.impl.LongMetricImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class TotalNumberOfCompletedProcessesCallback
+   implements ResourcePropertyCallback
+{
+   /** DOCUMENT_ME */
+   BusinessProcessInstance m_instance;
+
+   /**
+    * Creates a new {@link TotalNumberOfCompletedProcessesCallback} object.
+    *
+    * @param instance DOCUMENT_ME
+    */
+   public TotalNumberOfCompletedProcessesCallback( BusinessProcessInstance instance )
+   {
+      m_instance = instance;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   {
+      try
+      {
+         LongMetricImpl metric       = (LongMetricImpl) prop.get( 0 );
+         Calendar       calendarInst = Calendar.getInstance(  );
+         metric.setLastUpdated( calendarInst );
+         metric.setLongValue( m_instance.getTotalNumberOfCompletedProcesses(  ) );
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file



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