ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r191534 [25/29] - in /incubator/muse/trunk/src/site/content/example: ./ epr/ images/ lib/ logic/ logic/src/ logic/src/java/ logic/src/java/org/ logic/src/java/org/apache/ logic/src/java/org/apache/ws/ logic/src/java/org/apache/ws/muse/ logi...
Date Mon, 20 Jun 2005 18:51:29 GMT
Added: incubator/muse/trunk/src/site/content/example/services/host/src/wsdl/host.wsdl
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/host/src/wsdl/host.wsdl?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/host/src/wsdl/host.wsdl (added)
+++ incubator/muse/trunk/src/site/content/example/services/host/src/wsdl/host.wsdl Mon Jun 20 11:51:17 2005
@@ -0,0 +1,500 @@
+<?xml version="1.0"?>
+
+<definitions name="Host"
+             targetNamespace="http://ws.apache.org/muse/example/host"
+             xmlns="http://schemas.xmlsoap.org/wsdl/"
+             xmlns:tns="http://ws.apache.org/muse/example/host"
+             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:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
+             
+   <!-- Created by Kinga Dziembowski -->
+   
+   <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"/>
+   <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex" 
+   	   location="../spec/wsx/WS-MetadataExchange-2004_09.wsdl" />        
+
+   <types>
+      <schema elementFormDefault="qualified"
+              targetNamespace="http://ws.apache.org/muse/example/host"
+              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"
+              xmlns:ws-ext="http://ws.apache.org/namespaces/muse/muws-ext-1.xsd"
+              xmlns:host-prop="http://ws.apache.org/muse/example/host/properties" >
+
+         <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-Draft_01.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"/>
+         <xsd:import namespace="http://ws.apache.org/namespaces/muse/muws-ext-1.xsd" 
+                     schemaLocation="../wsdl/muws-ext-1.xsd"/>
+         <xsd:import namespace="http://ws.apache.org/muse/example/host/properties" 
+                     schemaLocation="../wsdl/host.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="HostProperties">
+            <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" minOccurs="1" maxOccurs="1" /> 
+                  <element ref="wsnt:FixedTopicSet" /> 
+                  <element ref="wsnt:TopicExpressionDialects" minOccurs="1" maxOccurs="1" /> 
+             
+                  <!-- *** 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="1" maxOccurs="1"/>
+                  <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="1" maxOccurs="unbounded"/>
+                  -->
+                  
+                  <!--   SHARED PROPERTIES DEFINED muws-ext-1.xsd  
+			Resource exposing this properties should add to the list returned by GetProperty
+			for muws-p1-xs:ManageabilityCapability property,
+			the string "http://ws.apache.org/namespaces/muse/capabilities/muws-ext-1".
+			This signals that the resource support extended management capability.
+
+                  -->
+                  
+                  
+                  <element ref="ws-ext:ResourceType" minOccurs="1" maxOccurs="1" /> 
+                  <element ref="ws-ext:ResourceHostname" minOccurs="1" maxOccurs="1" /> 
+                  
+                  <!--   SPECIFIC PROPERTIES DEFINED IN HOST.XSD -->
+                  
+                  <element ref="host-prop:NumberOfProcesses" minOccurs="1" maxOccurs="1" />
+                  <element ref="host-prop:AvailableMemory" minOccurs="1" maxOccurs="1" />
+                  <element ref="host-prop:CpuUsage" minOccurs="1" maxOccurs="1" /> 
+                  
+                  
+                  
+                  <!-- *** 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="HostPortType" wsrp:ResourceProperties="tns:HostProperties">
+         
+      <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>      
+      -->
+      
+      <!-- *** Add an operation block here for each of your custom operations *** -->
+      
+      <!-- GetMetadata operation for retrieving WSDL -->
+                  
+	<operation name="GetMetadata">
+	    <input message="wsx:GetMetadataMsg"/>
+	    <output message="wsx:GetMetadataResponseMsg"/>         
+	</operation>      
+      
+
+   </portType>
+
+   <binding name="HostSoapHttpBinding" type="tns:HostPortType">
+
+      <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>            
+      -->
+      
+      <!-- *** Add an operation block here for each of your custom operations *** --> 
+      
+      <!-- GetMetadata operation for retrieving WSDL -->
+      
+      <operation name="GetMetadata">
+         <soap:operation style="document"/>
+         <input>
+	    <soap:body use="literal"/>
+         </input>
+         <output>
+	    <soap:body use="literal"/>
+         </output>
+      </operation>            
+      
+      
+   </binding>
+
+   <service name="HostService">
+      <!-- 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="host" binding="tns:HostSoapHttpBinding">
+         <soap:address location="http://localhost:8080/muse/services/host" />
+      </port>
+   </service>
+
+</definitions>

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/build.properties?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/build.properties (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/build.properties Mon Jun 20 11:51:17 2005
@@ -0,0 +1,13 @@
+
+endpoint.url=http://localhost:8080/muse/services/integrationserver
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# 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.xyz.com
+#http.proxyPort=8088
+#http.nonProxyHosts=localhost 

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/build.xml?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/build.xml (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/build.xml Mon Jun 20 11:51:17 2005
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+
+<project name="Integrationserver_buildfile" default="usage" basedir=".">
+
+   <property environment="env" />   
+   <property file="build.properties" />
+   <property file="../../build.properties" />
+   <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}/../.xmlbeans/lib" />
+   <property name="src.dir"      location="${basedir}/src/java" />
+   <property name="wsdl.file"    location="${basedir}/src/wsdl/integrationserver.wsdl" />   
+  
+   <target name="init" unless="Integrationserver.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="Integrationserver.classpath.id">
+       <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+       <pathelement location="${basedir}/../../logic/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="Integrationserver.classpath" refid="Integrationserver.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="Integrationserver.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 integrationserver service to the ${muse.webapp.dir} webapp">
+          
+       <copy file="${wsdl.file}" todir="${muse.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />       
+       <echo>Deploying integrationserver classes to ${muse.webapp.dir}/WEB-INF/classes/...</echo>
+       <copy todir="${muse.webapp.dir}/WEB-INF/classes">
+         <fileset dir="${classes.dir}" />        
+       </copy>
+
+       <copy file="${jar.dir}/integrationserver-xbeans.jar" todir="${muse.webapp.dir}/WEB-INF/lib" />
+       <!--  update server-config.wsdd using WsddUpdater -->
+       <taskdef name="wsddUpdater" classname="org.apache.ws.util.platform.axis.tool.WsddUpdater" classpathref="Integrationserver.classpath.id" />
+       <property name="config.wsdd" location="${muse.webapp.dir}/WEB-INF/server-config.wsdd" />  <!-- normalize path -->       
+       <wsddUpdater configWsdd="${config.wsdd}">   
+          <wsddPaths dir="${src.dir}" includes="**/Integrationserver_deploy.wsdd" />          
+       </wsddUpdater>   
+       
+       <!-- update jndi-config.wsdd using JndiConfigUpdater -->
+       <taskdef name="jndiUpdater" classname="org.apache.ws.util.jndi.tools.JndiConfigUpdater" classpathref="Integrationserver.classpath.id" />
+       <property name="jndi.config" location="${muse.webapp.dir}/WEB-INF/classes/jndi-config.xml" />  <!-- normalize path -->       
+       <jndiUpdater jndiConfig="${jndi.config}">   
+           <jndiConfigPaths dir="${src.dir}" includes="**/Integrationserver_jndi-config.xml" />          
+       </jndiUpdater>
+       
+   </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the integrationserver 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/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,143 @@
+
+package org.apache.ws.muse.example.integrationserver;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * An abstract Integrationserver WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified. 
+ */
+public abstract class AbstractIntegrationserverResource  implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
+    
+    /**
+     * The resource ID of the instance.
+     */
+    protected String m_id;
+    
+    /** The EndpointReference for this resource **/
+    protected EndpointReference m_endpointReference;
+
+        /**
+     * The set of properties associated with this resource.
+     */
+    protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+            
+    
+    /**
+     * A list of termination listeners to be notified when the resource is terminated.
+     */
+    private java.util.List m_terminationListeners = new java.util.ArrayList(); 
+     
+     
+    /**
+     * DOCUMENT_ME
+     *
+     * @param id DOCUMENT_ME
+     */
+    public void setID( Object id )
+    {
+        if ( m_id != null )
+        {
+            throw new IllegalStateException( "This resource's ID has already been set." );
+        }
+
+        try
+        {
+            m_id = (String) id;
+        }
+        catch ( ClassCastException cce )
+        {
+            throw new IllegalArgumentException( "Specified ID is not a String." );
+        }
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param listener DOCUMENT_ME
+     */
+    public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+    {         
+         m_terminationListeners.add(listener);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public Object getID()
+    {
+        return m_id;
+    }
+
+    public void destroy()
+    {
+	org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
+	for (int i = 0; i < m_terminationListeners.size(); i++)
+	{
+	    org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+	    resourceTerminationEventListener.terminationOccurred(rte);
+	}     
+        return;
+    }
+
+    public void init()
+    {
+                
+        org.apache.ws.muse.example.integrationserver.IntegrationServerPropertiesDocument propsDoc = org.apache.ws.muse.example.integrationserver.IntegrationServerPropertiesDocument.Factory.newInstance();
+        m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+        org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet, this);
+                
+              
+    }
+    
+   /**
+    * Returns the EndpointReference associated with this Resource.
+    *
+    * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+    * 
+    * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+    */
+    public EndpointReference getEndpointReference()
+    {
+            return m_endpointReference;        
+    }
+    
+   /**
+    * Sets the EndpointReference associated with this Resource.
+    *
+    * @param epr The Resource's EndpointReference.
+    * 
+    * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+    */
+    public void setEndpointReference(EndpointReference epr)
+    {
+            m_endpointReference = epr;        
+    }
+    
+
+    /**
+     * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+     */
+    public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+    {
+        m_propSet = propSet;
+    }
+
+    /**
+     * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+     */
+    public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
+    {
+        return m_propSet;
+    }	
+	org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+	
+	public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet() 
+	{
+		return m_topicSpaceSet;
+	}
+      
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverService.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverService.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverService.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,152 @@
+
+package org.apache.ws.muse.example.integrationserver;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
+import org.apache.ws.resource.handler.WsrfService;
+import org.apache.ws.resource.AbstractPortType;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import javax.xml.namespace.QName;
+
+/**
+ * This class should be generated on every "generation" against the WSDL.
+ * This will ensure it is always up-to-date with the WSDL.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractIntegrationserverService extends AbstractPortType
+    implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType {
+
+   public static final String TARGET_NSURI = "http://ws.apache.org/muse/example/integrationserver";
+   public static final String TARGET_NSPREFIX = "integrationserver";
+
+   /**
+    * DOCUMENT_ME
+    */
+   private ServiceSoapMethodNameMap m_methodNameMap;
+
+   /**
+    * DOCUMENT_ME
+    */
+   private boolean m_isInitialized;
+
+   public AbstractIntegrationserverService( ResourceContext resourceContext )
+   {
+      super(resourceContext);
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestQname DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getMethodName( QName requestQname )
+   {
+      if ( !m_isInitialized )
+      {
+         init(  );
+      }
+
+      return m_methodNameMap.getMethodName( requestQname );
+   }
+
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public final SoapMethodNameMap getMethodNameMap(  )
+   {
+      return m_methodNameMap;
+   }
+
+      /**
+       * DOCUMENT_ME
+       */
+   public void init(  )
+   {
+      m_methodNameMap    = new ServiceSoapMethodNameMap( getResourceContext(  ) );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://schemas.xmlsoap.org/ws/2004/09/mex}GetMetadata") , "GetMetadata" );
+      m_isInitialized      = true;
+   }
+
+
+      /**
+       * DOCUMENT_ME
+       *
+       * @return DOCUMENT_ME
+       */
+   protected final boolean isInitialized(  )
+   {
+         return m_isInitialized;
+   }
+	/**
+	* DOCUMENT_ME
+	*
+	* @param requestDoc DOCUMENT_ME
+	*
+	* @return DOCUMENT_ME
+	*/
+	public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesResponseDocument queryResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.QueryResourcePropertiesDocument requestDoc )
+	{
+		return new org.apache.ws.resource.properties.v2004_06.porttype.impl.QueryResourcePropertiesPortTypeImpl( getResourceContext(  ) ).queryResourceProperties( requestDoc );
+	}
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext(  ) ).getMultipleResourceProperties( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext(  ) ).getResourceProperty( requestDoc );
+   }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
+   {
+       return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext(  ) ).subscribe( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
+   {
+       return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext(  ) ).getCurrentMessage( requestDoc );
+   }
+
+
+   org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument queryRelationshipsByType( org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument requestDoc )
+   {
+      return new org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl( getResourceContext(  ) ).queryRelationshipsByType( requestDoc );
+   }
+
+
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverCustomOperationsPortType.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverCustomOperationsPortType.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverCustomOperationsPortType.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,15 @@
+
+package org.apache.ws.muse.example.integrationserver;
+
+/**
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface IntegrationserverCustomOperationsPortType
+{
+   
+      public org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument GetMetadata( org.xmlsoap.schemas.ws.x2004.x09.mex.GetMetadataDocument requestDoc ) ;       
+   
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,121 @@
+
+package org.apache.ws.muse.example.integrationserver;
+
+import org.apache.ws.muse.example.ExampleConstants;
+import org.apache.ws.muse.example.resourceadmin.properties.CreateParamsType;
+import org.apache.ws.muse.example.utils.ResourceKeyFactory;
+import org.apache.ws.resource.Resource;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.ResourceContextException;
+import org.apache.ws.resource.ResourceException;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.resource.impl.SimpleTypeResourceKey;
+import org.apache.ws.addressing.EndpointReference;
+
+import javax.xml.namespace.QName;
+
+import java.io.Serializable;
+
+/**
+ * Home for Integrationserver WS-Resources.
+ */
+public class IntegrationserverHome
+        extends AbstractResourceHome
+        implements Serializable
+{
+
+    /**  The service endpoint name as registered with the SOAP Platform.  This is useful for building EPR's. **/
+    public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/muse/example/integrationserver}integrationserver");
+        
+    /** The management PortType associated with this resource. This is useful for building EPR's.**/ 
+    public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/muse/example/integrationserver}IntegrationServerPortType");    
+        
+    /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+    public static final String PORT_NAME = "integrationserver";
+        
+    /** The name of the resource key for this resource. **/
+    public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}");
+    
+    public static final QName RESOURCE_ID = javax.xml.namespace.QName.valueOf("{http://ws.apache.org/muse/example/integrationserver}ResourceID");
+        /**
+     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     */
+     public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+        /** A constant for the JNDI Lookup name for this home. **/
+    public static final String  HOME_LOCATION =
+     org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+    
+    /** A variable to hold the factory resource object */
+    
+    private IntegrationserverResource m_serverResource = null;
+    /**
+     *
+     * @param resourceContext
+     *
+     * @return A Resource
+     *
+     * @throws ResourceException        
+     * @throws ResourceContextException 
+     * @throws ResourceUnknownException 
+     */
+    public Resource getInstance( ResourceContext resourceContext )
+            throws ResourceException,
+            ResourceContextException,
+            ResourceUnknownException
+    {
+        if(m_serverResource == null)
+        	throw new ResourceUnknownException("IntegrationserverResource", resourceContext.getServiceName());
+        else
+        	return m_serverResource;
+
+    }
+    
+    public Resource create(ResourceContext resourceContext, CreateParamsType createParams) throws ResourceException,
+    ResourceContextException,
+    ResourceUnknownException
+	{
+    	if (m_serverResource == null)
+    	{
+    		SimpleTypeResourceKey aKey = ResourceKeyFactory.createKey(RESOURCE_ID, SERVICE_NAME.toString() );
+	       	try
+	        {
+	       		//m_serverResource = (IntegrationserverResource)createInstance(aKey);
+	       		m_serverResource = new IntegrationserverResource(aKey, createParams );
+	       		//The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
+			 	//To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
+	       		//EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , aKey, SPEC_NAMESPACE_SET.getAddressingNamespace());
+	       		EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , aKey, ExampleConstants.getAddressingNamespace());
+	       		
+	            ((IntegrationserverResource)m_serverResource).setEndpointReference( epr );
+	            m_serverResource.init();
+				add(aKey, m_serverResource);
+	        }
+	        catch (Exception e)
+	        {
+	            throw new ResourceException(e);
+	        }
+    	}
+      	return m_serverResource;
+	}
+    
+    public QName getServiceName()
+    {
+        return SERVICE_NAME;
+    }
+    
+    public QName getPortType()
+    {
+        return PORT_TYPE;
+    }
+    
+    public String getServicePortName()
+    {
+        return PORT_NAME;
+    }
+    
+    public QName getResourceKeyNameQName()
+    {
+        return RESOURCE_KEY_NAME;
+    }
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,47 @@
+package org.apache.ws.muse.example.integrationserver;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Integrationserver WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface IntegrationserverPropertyQNames
+{
+    
+            QName LISTENPORT =
+            new QName( "http://ws.apache.org/muse/example/integrationserver/properties", "ListenPort", "ins-prop");        
+            QName TOPICEXPRESSIONDIALECTS =
+            new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");        
+            QName RESOURCEID =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");        
+            QName RESOURCEHOSTNAME =
+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd", "ResourceHostname", "ws-ext");        
+            QName VERSION =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Version", "muws-p2-xs");        
+            QName MANAGEABILITYCAPABILITY =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");        
+            QName CAPTION =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Caption", "muws-p2-xs");        
+            QName DESCRIPTION =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Description", "muws-p2-xs");        
+            QName OPERATIONALSTATUS =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");        
+            QName FIXEDTOPICSET =
+            new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");        
+            QName CURRENTTIME =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");        
+            QName RESOURCETYPE =
+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd", "ResourceType", "ws-ext");        
+            QName SERVERNAME =
+            new QName( "http://ws.apache.org/muse/example/integrationserver/properties", "ServerName", "ins-prop");        
+            QName RELATIONSHIP =
+            new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-p2-xs");        
+            QName TOPIC =
+            new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");        
+    
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,373 @@
+
+package org.apache.ws.muse.example.integrationserver;
+
+import java.util.Calendar;
+
+import javax.xml.namespace.QName;
+import org.apache.ws.mows.v1_0.MowsConstants;
+import org.apache.ws.mows.v1_0.capability.MetricsCapability;
+import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
+import org.apache.ws.muse.example.ExampleConstants;
+import org.apache.ws.muse.example.ExampleUtils;
+import org.apache.ws.muse.example.integrationserver.IntegrationserverPropertyQNames;
+import org.apache.ws.muse.example.resourceadmin.properties.CreateParamsType;
+import org.apache.ws.muws.MuwsUtils;
+import org.apache.ws.muws.v1_0.MuwsConstants;
+import org.apache.ws.notification.topics.TopicSpaceSet;
+import org.apache.ws.notification.topics.TopicSpace;
+import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
+import org.apache.ws.resource.ResourceKey;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CurrentTimeDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument;
+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.apache.ws.muws.v1_0.capability.DescriptionCapability;
+import org.apache.ws.muws.v1_0.capability.IdentityCapability;
+import org.apache.ws.muws.v1_0.capability.ManageabilityCharacteristicsCapability;
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
+import org.apache.ws.muws.v1_0.topics.ManagementEventTopic;
+import org.apache.ws.muws.v1_0.topics.impl.XmlBeansManagementEventTopicImpl;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * A Integrationserver WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class IntegrationserverResource extends AbstractIntegrationserverResource
+
+{
+
+     /**
+     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     */
+    public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+
+   
+     /**  The value for the ImplementationProfile property **/
+
+    public static final String RESOURCE_TYPE = "IntegrationServer";
+
+    /**  The value for the Caption property **/
+
+    public static final String CAPTION = "Integration Server";
+
+    /**  The value for the Version property **/
+
+    public static final String VERSION = "1.0";
+
+    /** The value for the Description property */
+
+    public static final String DESCRIPTION = "Integration Server root for the WSDM Application management";
+
+    public static final String RESOURCE_ID = "Integration_Server";
+    
+    private static final Log LOG = LogFactory.getLog( IntegrationserverResource.class.getName() );
+    
+    public IntegrationserverResource( ResourceKey key, CreateParamsType params)
+    {
+    	setID( key != null ? key.getValue() : null );
+    	// params can have any important information for the creation of Resource
+    	// in this example it is not used
+    	
+    }
+
+    /**
+     * Initializes this resource's state (properties, etc.).
+     */
+    public void init()
+    {
+        super.init();
+
+        /**
+		 * The ResourcePropertySet which contains all the defined ResourceProperties
+		 */
+		org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+		org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+
+
+	try{
+
+		// Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
+		// Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic is implemented by the framework.
+		// Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects is implemented by the framework.
+
+
+	     /**
+	     * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+		 * </br>
+		 * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+		 * </br>
+		 * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set to
+		 * Concrete dialect.
+		 * </br>
+		 *
+     	 * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+     	 *
+     	 * If this is not the behavior you would like, you will need to remove the following line of code and initialize the properties
+     	 * individually.
+         */
+	    TopicSpaceSet aSet = getTopicSpaceSet();
+	    MuwsUtils.addRelationshipTopics(aSet);
+
+        //MUWS TopicSpace
+        TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
+        aSet.addTopicSpace( muwsTopicSpace );
+
+        ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );
+        muwsTopicSpace.addTopic( identityCapability );
+        
+        ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl( ManageabilityCharacteristicsCapability.TOPIC_NAME );
+        muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );
+        
+        ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl(OperationalStatusCapability.TOPIC_NAME );
+        muwsTopicSpace.addTopic( operationalStatusCapability );
+        
+        ManagementEventTopic muwsDescriptionCapability = new XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );
+        muwsTopicSpace.addTopic( muwsDescriptionCapability );
+        
+        ManagementEventTopic metricCapability = new XmlBeansManagementEventTopicImpl(MetricsCapability.TOPIC_NAME );
+        muwsTopicSpace.addTopic( metricCapability );
+
+
+        //MOWS TopicSpace
+        TopicSpace mowsTopicSpace = new TopicSpaceImpl( MowsConstants.NSURI_MOWS_TOPICS );
+        getTopicSpaceSet().addTopicSpace( mowsTopicSpace );
+
+        ManagementEventTopic mowsMetricsCapability = new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
+        mowsTopicSpace.addTopic( mowsMetricsCapability );
+     
+
+		// init the {http://ws.apache.org/muse/example/integrationserver/properties}ListenPort Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.LISTENPORT);
+		org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument prop_listenport = org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument.Factory.newInstance();
+		prop_listenport.setListenPort(getPort());
+		resourceProperty.add(prop_listenport);
+
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCEID);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
+		prop_resourceid.setResourceId(getID().toString());
+		resourceProperty.add(prop_resourceid);
+		resourceProperty.addChangeListener( identityCapability );
+
+
+		// init the {http://org.apache.ws.namespaces.muse.muwsExt1}ResourceHostname Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCEHOSTNAME);
+		org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument prop_resourcehostname = org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument.Factory.newInstance();
+		prop_resourcehostname.setResourceHostname(getHostName());
+		resourceProperty.add(prop_resourcehostname);
+
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Version Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.VERSION);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument prop_version = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument.Factory.newInstance();
+		prop_version.setVersion(VERSION);
+		resourceProperty.add(prop_version);
+		resourceProperty.addChangeListener(muwsDescriptionCapability);
+
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Caption Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.CAPTION);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument prop_caption = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument.Factory.newInstance();
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString lStringC = LangString.Factory.newInstance();
+		lStringC.setStringValue(CAPTION);
+		lStringC.setLang("en");
+		prop_caption.setCaption(lStringC);
+		resourceProperty.add(prop_caption);
+		resourceProperty.addChangeListener(muwsDescriptionCapability);
+
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.MANAGEABILITYCAPABILITY);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+		prop_manageabilitycapability.setManageabilityCapability( IdentityCapability.URI );
+		resourceProperty.add(prop_manageabilitycapability);
+		
+		resourceProperty.addChangeListener( manageabilityCharacteristicsCapability );
+		prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+		prop_manageabilitycapability.setManageabilityCapability( org.apache.ws.muws.v1_0.capability.MetricsCapability.URI );
+        resourceProperty.add( prop_manageabilitycapability );
+        
+        prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+        prop_manageabilitycapability.setManageabilityCapability( RelationshipsCapability.URI );
+        resourceProperty.add( prop_manageabilitycapability );
+        
+        prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+        prop_manageabilitycapability.setManageabilityCapability( DescriptionCapability.URI );
+        resourceProperty.add( prop_manageabilitycapability );
+        
+        prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+        prop_manageabilitycapability.setManageabilityCapability(  OperationalStatusCapability.URI);
+        resourceProperty.add( prop_manageabilitycapability );
+        
+        prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+		prop_manageabilitycapability.setManageabilityCapability( MetricsCapability.URI );
+		resourceProperty.add(prop_manageabilitycapability);
+        
+        prop_manageabilitycapability = ManageabilityCapabilityDocument.Factory.newInstance();
+        prop_manageabilitycapability.setManageabilityCapability(  ExampleConstants.MUWS_EXT_CAPABILITY_URI);
+        resourceProperty.add( prop_manageabilitycapability );
+        
+        resourceProperty.addChangeListener( manageabilityCharacteristicsCapability );
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Description Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.DESCRIPTION);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument prop_description = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument.Factory.newInstance();
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString lString = LangString.Factory.newInstance();
+		lString.setStringValue(DESCRIPTION);
+		lString.setLang("en");
+		prop_description.setDescription(lString);
+		resourceProperty.add(prop_description);
+		resourceProperty.addChangeListener(muwsDescriptionCapability);
+
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.OPERATIONALSTATUS);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();
+		prop_operationalstatus.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+		resourceProperty.add(prop_operationalstatus);
+		resourceProperty.addChangeListener(operationalStatusCapability);
+
+
+
+		// init the {http://org.apache.ws.namespaces.muse.muwsExt1}ResourceType Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCETYPE);
+		org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument prop_resourcetype = org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument.Factory.newInstance();
+		prop_resourcetype.setResourceType(RESOURCE_TYPE);
+		resourceProperty.add(prop_resourcetype);
+
+		// this is to satisfy the init
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
+		RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();
+        //add new type
+        RelationshipType relationshipType = relationshipDocument.addNewRelationship();
+        RelationshipTypeType relationshipTypeType = relationshipType.addNewType();
+        XmlObject relationType = XmlObject.Factory.parse("<"+ExampleConstants.RELATIONSHIP_RELATION.getPrefix()+":"+ExampleConstants.RELATIONSHIP_RELATION.getLocalPart()+" xmlns:"+ExampleConstants.RELATIONSHIP_RELATION.getPrefix()+"=" + "\"" + ExampleConstants.RELATIONSHIP_RELATION.getNamespaceURI() + "\" />");
+        XmlBeanUtils.addChildElement(relationshipTypeType, relationType);
+   		prop_relationship.setRelationship(relationshipType);
+		resourceProperty.add(prop_relationship);
+
+	
+		// init the {http://ws.apache.org/muse/example/integrationserver/properties}ServerName Resource Property
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.SERVERNAME);
+		org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument prop_servername = org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument.Factory.newInstance();
+		prop_servername.setServerName(CAPTION + " - " + getHostName());
+		resourceProperty.add(prop_servername);
+
+		// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
+        resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.CURRENTTIME);
+        CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
+        currentTimeDocument.setCurrentTime(Calendar.getInstance());
+        resourceProperty.add(currentTimeDocument);
+        resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
+        resourceProperty.addChangeListener(metricCapability);
+	
+	
+		
+		
+		}
+	catch (Exception e)
+	{
+	   throw new javax.xml.rpc.JAXRPCException("There was a problem in initializing your resource properties.  Please check your init() method. Cause: " + e.getLocalizedMessage());
+	}
+
+         org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet() , getResourcePropertySet());
+
+    }
+
+    protected String getHostName()
+	{
+		String name = null;
+		try
+		{
+			java.net.InetAddress localMachine =	java.net.InetAddress.getLocalHost();
+			name = localMachine.getHostName();
+		}
+		catch(java.net.UnknownHostException uhe)
+		{
+			LOG.error("Error getting HostName");
+		}
+
+		return name;
+	}
+
+    protected long getPort() throws  Exception
+    {
+    	long portNum = 8080L;
+    	return portNum;
+    }
+    
+    
+    public void setRelationship(org.apache.ws.muse.example.resourceadmin.properties.SetRelationshipDocument requestDoc )throws Exception
+    {
+    	org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+		org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);
+		org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
+		RelationshipType relationshipType = prop_relationship.addNewRelationship();
+		relationshipType.setType(requestDoc.getSetRelationship().getType());
+
+		RelationshipParticipantType [] partTo = requestDoc.getSetRelationship().getRelationshipTo().getParticipantArray();
+		int numOfToParticipants = partTo.length;
+		if(numOfToParticipants > 0)
+		{
+			//There is the from participant - will be in the first position in the array,
+			// there needs to be at least one participant to, can be more.
+			RelationshipParticipantType [] participants = new RelationshipParticipantType[numOfToParticipants + 1];
+			participants[0] = requestDoc.getSetRelationship().getRelationshipFrom().getParticipant();
+			for( int i=0; i<numOfToParticipants; i++)
+				participants[i+1 ] = partTo[i];
+		    relationshipType.setParticipantArray( participants);
+			resourceProperty.add(prop_relationship);
+		}
+		else
+			throw new Exception ("Missing Relationship Participant");
+
+    }
+    
+    public void removeRelationship(org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipDocument requestDoc )throws Exception
+    {
+    	// get participants of relationship to be removed
+    	RelationshipType relationshipRemove = requestDoc.getRemoveRelationship().getRelationship();
+			
+		// get the relationship property from properties set
+		// then walk all relationships and compare them with the relationship which needs to be removed.
+		// when the match exist the relationship will be removed from the relationship properties list 
+		// this will genarate realtionshipremoved notification
+    	org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+		org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+		resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);
+		
+				
+		if (resourceProperty.isEmpty())
+			return;
+		for ( int i=0; i < resourceProperty.size(); i++)
+		{
+			Object relationObj = resourceProperty.get(i);
+			if ( relationObj instanceof RelationshipType)
+			{
+				RelationshipType relationship = (RelationshipType)relationObj;
+				if( ExampleUtils.CompareRelationships(relationshipRemove, relationship ))
+				{
+					resourceProperty.remove(relationObj);
+					//continue to walk - you can have more then one this same relationship
+					//the notification will be sent to wsdm:RelationshipsCapability/RelationshipDeleted topic 
+				}
+				
+			}
+		}
+ }
+    
+    
+   
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java Mon Jun 20 11:51:17 2005
@@ -0,0 +1,63 @@
+package org.apache.ws.muse.example.integrationserver;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+
+import javax.xml.rpc.JAXRPCException;
+
+/**
+ * This class should be generated ONCE (and not overwritten) to maintain user-added code.
+ * If there is a change to the WSDL, then the generated implemented interfaces
+ * (representing the "base" portTypes) will change, thus showing a compile error to the
+ * user.
+ *
+ * NOTE: This class is generated. However, it will not be overwritten by subsequent
+ *       calls to the code generator.
+ *
+ */
+public class IntegrationserverService
+   extends AbstractIntegrationserverService 
+   implements IntegrationserverCustomOperationsPortType
+{
+   
+      
+   /**
+    * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+    */
+   public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+    
+   /**
+    * Creates a new {@link IntegrationserverService } object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public IntegrationserverService( ResourceContext resourceContext )
+   {
+      super(resourceContext);
+      init();
+   }
+   
+      /**
+    * Returns a collection of Spec Namespaces associated with this Service
+    *
+    * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces 
+    *         associated with this service.
+    */
+   protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
+   {
+      return SPEC_NAMESPACE_SET;
+   }
+   
+      
+   public org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument GetMetadata( org.xmlsoap.schemas.ws.x2004.x09.mex.GetMetadataDocument requestDoc )
+   {              
+     	org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument responseDocument = org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument.Factory.newInstance();	
+     	org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument.Metadata  response = responseDocument.addNewMetadata();
+     	//TODO implement method and populate the response object 
+     	return responseDocument;
+   }
+   
+   
+      
+}

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_deploy.wsdd?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_deploy.wsdd (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_deploy.wsdd Mon Jun 20 11:51:17 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
+            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+   <service name="integrationserver" provider="java:WSRF" style="document" use="literal">
+      
+      <wsdlFile>/wsdl/integrationserver.wsdl</wsdlFile>      
+      
+      <requestFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </requestFlow>      
+      
+      <responseFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </responseFlow>            
+      
+   </service>
+
+</deployment>

Added: incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_jndi-config.xml?rev=191534&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_jndi-config.xml (added)
+++ incubator/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/Integrationserver_jndi-config.xml Mon Jun 20 11:51:17 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+   <service name="integrationserver">
+      <resource name="home" type="org.apache.ws.muse.example.integrationserver.IntegrationserverHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.apache.ws.muse.example.integrationserver.IntegrationserverService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.apache.ws.muse.example.integrationserver.IntegrationserverResource</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://ws.apache.org/muse/example/integrationserver</value>
+            </parameter>
+            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://ws.apache.org/muse/example/integrationserver}ResourceID</value>
+            </parameter>
+            
+         </resourceParams>
+      </resource>
+   </service>
+
+</jndiConfig>
+



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


Mime
View raw message