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 [26/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/log...

Added: incubator/muse/site/example/services/integrationserver/src/wsdl/integrationserver.wsdl
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/integrationserver/src/wsdl/integrationserver.wsdl?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/integrationserver/src/wsdl/integrationserver.wsdl (added)
+++ incubator/muse/site/example/services/integrationserver/src/wsdl/integrationserver.wsdl Mon Jun 20 16:28:31 2005
@@ -0,0 +1,500 @@
+<?xml version="1.0"?>
+
+<definitions name="IntegrationServer"
+             targetNamespace="http://ws.apache.org/muse/example/integrationserver"
+             xmlns="http://schemas.xmlsoap.org/wsdl/"
+             xmlns:tns="http://ws.apache.org/muse/example/integrationserver"
+             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/integrationserver"
+              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:ins-prop="http://ws.apache.org/muse/example/integrationserver/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/integrationserver/properties" 
+                     schemaLocation="../wsdl/integrationserver.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="IntegrationServerProperties">
+            <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="unbounded" /> 
+                  
+                  <element ref="wsnt:FixedTopicSet" /> 
+                  <element ref="wsnt:TopicExpressionDialects" minOccurs="1" 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="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="0" 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 INTEGRATIONSERVER.XSD -->
+                  
+                  <element ref="ins-prop:ServerName" minOccurs="1" maxOccurs="1" />
+                  <element ref="ins-prop:ListenPort" 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="IntegrationServerPortType" wsrp:ResourceProperties="tns:IntegrationServerProperties">
+         
+      <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="IntegrationServerSoapHttpBinding" type="tns:IntegrationServerPortType">
+
+      <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="IntegrationServerService">
+      <!-- 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="integrationserver" binding="tns:IntegrationServerSoapHttpBinding">
+         <soap:address location="http://localhost:8080/muse/services/integrationserver" />
+      </port>
+   </service>
+
+</definitions>

Added: incubator/muse/site/example/services/resourceadmin/build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/build.properties?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/build.properties (added)
+++ incubator/muse/site/example/services/resourceadmin/build.properties Mon Jun 20 16:28:31 2005
@@ -0,0 +1,12 @@
+endpoint.url = http://localhost:8080/muse/services/resourceadmin
+
+# 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/site/example/services/resourceadmin/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/build.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/build.xml (added)
+++ incubator/muse/site/example/services/resourceadmin/build.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+
+<project name="Resourceadmin_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/resourceadmin.wsdl" />   
+   
+
+   <target name="init" unless="Resourceadmin.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="Resourceadmin.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="Resourceadmin.classpath" refid="Resourceadmin.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="Resourceadmin.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 resourceadmin 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 resourceadmin 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}/resourceadmin-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="Resourceadmin.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="**/Resourceadmin_deploy.wsdd" />          
+       </wsddUpdater>   
+       
+       <!-- update jndi-config.wsdd using JndiConfigUpdater -->
+       <taskdef name="jndiUpdater" classname="org.apache.ws.util.jndi.tools.JndiConfigUpdater" classpathref="Resourceadmin.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="**/Resourceadmin_jndi-config.xml" />          
+       </jndiUpdater>
+       
+   </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the resourceadmin 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/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminResource.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminResource.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminResource.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,169 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * An abstract Resourceadmin WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractResourceadminResource
+   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 */
+   org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
+      new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true );
+
+   /**
+    * 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;
+   }
+
+   /**
+    * 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;
+   }
+
+   /**
+    * 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
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object getID(  )
+   {
+      return m_id;
+   }
+
+   /**
+    * @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;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet(  )
+   {
+      return m_topicSpaceSet;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param listener DOCUMENT_ME
+    */
+   public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
+   {
+      m_terminationListeners.add( listener );
+   }
+
+   /**
+    * DOCUMENT_ME
+    */
+   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;
+   }
+
+   /**
+    * DOCUMENT_ME
+    */
+   public void init(  )
+   {
+      org.apache.ws.muse.example.resourceadmin.ResourceAdminPropertiesDocument propsDoc =
+         org.apache.ws.muse.example.resourceadmin.ResourceAdminPropertiesDocument.Factory.newInstance(  );
+      m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminService.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminService.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminService.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,183 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.ws.resource.AbstractPortType;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * 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 AbstractResourceadminService
+   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
+{
+   /** DOCUMENT_ME */
+   public static final String TARGET_NSURI    = "http://ws.apache.org/muse/example/resourceadmin";
+
+   /** DOCUMENT_ME */
+   public static final String TARGET_NSPREFIX = "resourceadmin";
+
+   /**
+    * DOCUMENT_ME
+    */
+   private ServiceSoapMethodNameMap m_methodNameMap;
+
+   /**
+    * DOCUMENT_ME
+    */
+   private boolean m_isInitialized;
+
+   /**
+    * Creates a new {@link AbstractResourceadminService} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public AbstractResourceadminService( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * 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 );
+   }
+
+   /**
+    * 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
+    *
+    * @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
+    */
+   public void init(  )
+   {
+      m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext(  ) );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://ws.apache.org/muse/example/resourceadmin/properties}RemoveRelationship" ),
+                                  "RemoveRelationship" );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://ws.apache.org/muse/example/resourceadmin/properties}SetRelationship" ),
+                                  "SetRelationship" );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://ws.apache.org/muse/example/resourceadmin/properties}DestroyResource" ),
+                                  "DestroyResource" );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://ws.apache.org/muse/example/resourceadmin/properties}Create" ),
+                                  "Create" );
+      m_isInitialized = true;
+   }
+
+   /**
+    * 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.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
+    *
+    * @return DOCUMENT_ME
+    */
+   protected final boolean isInitialized(  )
+   {
+      return m_isInitialized;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/CreateFaultException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/CreateFaultException.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/CreateFaultException.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/CreateFaultException.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,60 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+
+/**
+ * DOCUMENT_ME
+ *
+ * @author Kinga Dziembowski
+ */
+public class CreateFaultException
+   extends AbstractBaseFaultException
+{
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private static final Log      LOG = LogFactory.getLog( CreateFaultException.class );
+   private QName                 m_name;
+
+   /**
+    * Constructs a new CreateFaultException .
+    *
+    * @param namespaces
+    * @param faultString
+    */
+   public CreateFaultException( NamespaceVersionHolder namespaces,
+                                String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name = new QName( "http://ws.apache.org/muse/example/resourceadmin", "CreateFaultException" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DestroyResourceFaultException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DestroyResourceFaultException.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DestroyResourceFaultException.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DestroyResourceFaultException.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,58 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ */
+public class DestroyResourceFaultException
+   extends AbstractBaseFaultException
+{
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private static final Log      LOG = LogFactory.getLog( DestroyResourceFaultException.class );
+   private QName                 m_name;
+
+   /**
+    * Constructs a new DestroyResourceFaultException .
+    *
+    * @param namespaces
+    * @param faultString
+    */
+   public DestroyResourceFaultException( NamespaceVersionHolder namespaces,
+                                         String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name = new QName( "http://ws.apache.org/muse/example/resourceadmin", "DestroyResourceFaultException" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DiscoveryCallback.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DiscoveryCallback.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DiscoveryCallback.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/DiscoveryCallback.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,150 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.ws.addressing.EndpointReference;
+import org.apache.ws.addressing.XmlBeansEndpointReference;
+import org.apache.ws.muse.example.application.ApplicationResource;
+import org.apache.ws.muse.example.businessprocesstype.BusinessprocesstypeResource;
+import org.apache.ws.muse.example.host.HostResource;
+import org.apache.ws.muse.example.integrationserver.IntegrationserverResource;
+import org.apache.ws.muse.example.resourceadmin.properties.DiscoveryDocument;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.xmlbeans.XmlObject;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+import javax.naming.InitialContext;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class DiscoveryCallback
+   implements ResourcePropertyCallback
+{
+   private ResourceadminResource m_resource;
+
+   /**
+    * Creates a new {@link DiscoveryCallback} object.
+    *
+    * @param resource DOCUMENT_ME
+    */
+   public DiscoveryCallback( ResourceadminResource resource )
+   {
+      m_resource = resource;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.ws.resource.properties.ResourcePropertyCallback#refreshProperty(org.apache.ws.resource.properties.ResourceProperty)
+    */
+   public ResourceProperty refreshProperty( ResourceProperty prop )
+   throws CallbackFailedException
+   {
+      try
+      {
+         DiscoveryDocument disc = DiscoveryDocument.Factory.newInstance(  );
+         EndpointReference epr = null;
+         InitialContext    ctx = new InitialContext(  );
+
+         prop.clear(  );
+         ResourceadminHome aHome     = (ResourceadminHome) ( ctx.lookup( ResourceadminHome.HOME_LOCATION ) );
+         Map               resources = aHome.getResources(  );
+         Collection        values    = resources.values(  );
+         Iterator          iter      = values.iterator(  );
+         int               size      = values.size(  );
+
+         // If there are the Resources registered to ResourceAdmin build array of their EPRs
+         if ( size > 0 )
+         {
+            EndpointReferenceType[] eprs = new EndpointReferenceType[size];
+            int                     i = 0;
+            while ( iter.hasNext(  ) )
+            {
+               Object resource = iter.next(  );
+               if ( resource instanceof ApplicationResource )
+               {
+                  ApplicationResource appResource = (ApplicationResource) resource;
+                  epr = appResource.getEndpointReference(  );
+                  System.out.println( "Application " + epr.toString(  ) );
+               }
+               else if ( resource instanceof HostResource )
+               {
+                  HostResource hostResource = (HostResource) resource;
+                  epr = hostResource.getEndpointReference(  );
+                  System.out.println( "Host " + epr.toString(  ) );
+               }
+               else if ( resource instanceof IntegrationserverResource )
+               {
+                  IntegrationserverResource integrationResource = (IntegrationserverResource) resource;
+                  epr = integrationResource.getEndpointReference(  );
+                  System.out.println( "Integration " + epr.toString(  ) );
+               }
+               else if ( resource instanceof BusinessprocesstypeResource )
+               {
+                  BusinessprocesstypeResource bpResource = (BusinessprocesstypeResource) resource;
+                  epr = bpResource.getEndpointReference(  );
+                  System.out.println( "BP " + epr.toString(  ) );
+               }
+               else
+               {
+                  throw new Exception( " unknown resource type" );
+               }
+
+               if ( ( epr != null ) && epr instanceof XmlBeansEndpointReference )
+               {
+                  XmlBeansEndpointReference eprType = (XmlBeansEndpointReference) epr;
+                  XmlObject                 obj = eprType.getXmlObject(  );
+                  if ( obj instanceof EndpointReferenceType )
+                  {
+                     eprs[i] = (EndpointReferenceType) obj;
+                     i++;
+                  }
+                  else
+                  {
+                     System.out.println( "Exception " + epr.toString(  ) );
+                     throw new Exception( "Expected type - EndpointReferenceType" + resource.toString(  ) );
+                  }
+               }
+               else
+               {
+                  throw new Exception( "Expected type - XmlBeansEndpointReference" );
+               }
+            }
+
+            disc.addNewDiscovery(  ).setEndpointReferenceArray( eprs );
+            prop.add( disc );
+         }
+         else
+         {
+            EndpointReferenceType[] eprs = new EndpointReferenceType[0];
+            disc.addNewDiscovery(  ).setEndpointReferenceArray( eprs );
+         }
+      }
+      catch ( Exception re )
+      {
+         re.printStackTrace(  );
+         throw new CallbackFailedException( re );
+      }
+
+      return prop;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/InvalidResourcePropertiesException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/InvalidResourcePropertiesException.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/InvalidResourcePropertiesException.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/InvalidResourcePropertiesException.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,61 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+
+/**
+ * DOCUMENT_ME
+ *
+ * @author Kinga Dziembowski
+ */
+public class InvalidResourcePropertiesException
+   extends AbstractBaseFaultException
+{
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private static final Log      LOG = LogFactory.getLog( InvalidResourcePropertiesException.class );
+   private QName                 m_name;
+
+   /**
+    * Constructs a new InvalidResourcePropertiesException .
+    *
+    * @param namespaces
+    * @param faultString
+    */
+   public InvalidResourcePropertiesException( NamespaceVersionHolder namespaces,
+                                              String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name =
+         new QName( "http://ws.apache.org/muse/example/resourceadmin", "InvalidResourcePropertiesException" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/RemoveRelationshipFaultException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/RemoveRelationshipFaultException.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/RemoveRelationshipFaultException.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/RemoveRelationshipFaultException.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,61 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+
+/**
+ * DOCUMENT_ME
+ *
+ * @version $Revision: 1.8 $
+ * @author $author$
+ */
+public class RemoveRelationshipFaultException
+   extends AbstractBaseFaultException
+{
+   private static final Messages MSG    = MessagesImpl.getInstance(  );
+   private static final Log      LOG    = LogFactory.getLog( RemoveRelationshipFaultException.class );
+   private QName                 m_name;
+
+   /**
+    * Constructs a new RemoveRelationshipFaultException .
+    *
+    * @param namespaces
+    * @param faultString
+    */
+   public RemoveRelationshipFaultException( NamespaceVersionHolder namespaces,
+                                            String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name = new QName( "http://ws.apache.org/muse/example/resourceadmin", "RemoveRelationshipFaultException" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceUnknownFaultException.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceUnknownFaultException.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceUnknownFaultException.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceUnknownFaultException.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,60 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.util.i18n.Messages;
+import javax.xml.namespace.QName;
+
+/**
+ * DOCUMENT_ME
+ *
+ * @author Kinga Dziembowski
+ */
+public class ResourceUnknownFaultException
+   extends AbstractBaseFaultException
+{
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private static final Log      LOG = LogFactory.getLog( ResourceUnknownFaultException.class );
+   private QName                 m_name;
+
+   /**
+    * Constructs a new ResourceUnknownFaultException .
+    *
+    * @param namespaces
+    * @param faultString
+    */
+   public ResourceUnknownFaultException( NamespaceVersionHolder namespaces,
+                                         String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name = new QName( "http://ws.apache.org/muse/example/resourceadmin", "ResourceUnknownFaultException" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminCustomOperationsPortType.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminCustomOperationsPortType.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminCustomOperationsPortType.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,88 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface ResourceadminCustomOperationsPortType
+{
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    *
+    * @throws org.apache.ws.muse.example.resourceadmin.InvalidResourcePropertiesException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.CreateFaultException DOCUMENT_ME
+    */
+   public org.apache.ws.muse.example.resourceadmin.properties.CreateResponseDocument Create( org.apache.ws.muse.example.resourceadmin.properties.CreateDocument requestDoc )
+   throws org.apache.ws.muse.example.resourceadmin.InvalidResourcePropertiesException, 
+          org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException, 
+          org.apache.ws.muse.example.resourceadmin.CreateFaultException;
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    *
+    * @throws org.apache.ws.muse.example.resourceadmin.InvalidResourcePropertiesException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.DestroyResourceFaultException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException DOCUMENT_ME
+    */
+   public org.apache.ws.muse.example.resourceadmin.properties.DestroyResourceResponseDocument DestroyResource( org.apache.ws.muse.example.resourceadmin.properties.DestroyResourceDocument requestDoc )
+   throws org.apache.ws.muse.example.resourceadmin.InvalidResourcePropertiesException, 
+          org.apache.ws.muse.example.resourceadmin.DestroyResourceFaultException, 
+          org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException;
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    *
+    * @throws org.apache.ws.muse.example.resourceadmin.RemoveRelationshipFaultException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException DOCUMENT_ME
+    */
+   public org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipResponseDocument RemoveRelationship( org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipDocument requestDoc )
+   throws org.apache.ws.muse.example.resourceadmin.RemoveRelationshipFaultException, 
+          org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException;
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    *
+    * @throws org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException DOCUMENT_ME
+    * @throws org.apache.ws.muse.example.resourceadmin.SetRelationshipFaultException DOCUMENT_ME
+    */
+   public org.apache.ws.muse.example.resourceadmin.properties.SetRelationshipResponseDocument SetRelationship( org.apache.ws.muse.example.resourceadmin.properties.SetRelationshipDocument requestDoc )
+   throws org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException, 
+          org.apache.ws.muse.example.resourceadmin.SetRelationshipFaultException;
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminHome.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminHome.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminHome.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,195 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import org.apache.ws.addressing.EndpointReference;
+import org.apache.ws.muse.example.ExampleConstants;
+import org.apache.ws.muse.example.application.ApplicationHome;
+import org.apache.ws.muse.example.businessprocesstype.BusinessprocesstypeHome;
+import org.apache.ws.muse.example.host.HostHome;
+import org.apache.ws.muse.example.integrationserver.IntegrationserverHome;
+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.ResourceKey;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import javax.xml.namespace.QName;
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author Kinga Dziembowski
+ * 
+ * Home for Resourceadmin WS-Resources.
+ */
+public class ResourceadminHome
+   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/resourceadmin}resourceadmin" );
+
+   /** 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/resourceadmin}ResourceAdminPortType" );
+
+   /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+   public static final String PORT_NAME = "resourceadmin";
+
+   /** 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}" );
+
+   /**
+    * 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;
+
+   /** DOCUMENT_ME */
+   protected static final String[] m_homesNames =
+      {
+         IntegrationserverHome.HOME_LOCATION,
+         BusinessprocesstypeHome.HOME_LOCATION,
+         ApplicationHome.HOME_LOCATION,
+         HostHome.HOME_LOCATION
+      };
+
+   /** DOCUMENT_ME */
+   protected static final QName[] m_resourceIDQNames =
+      new QName[]
+      {
+         HostHome.RESOURCE_ID,
+         BusinessprocesstypeHome.RESOURCE_ID,
+         IntegrationserverHome.RESOURCE_ID,
+         ApplicationHome.RESOURCE_ID
+      };
+   private ResourceadminResource  m_adminResource = null;
+
+   /** DOCUMENT_ME */
+   protected Map m_allResources = new HashMap(  );
+
+   /**
+    *
+    * @param resourceContext
+    *
+    * @return A Resource
+    *
+    * @throws ResourceException
+    * @throws ResourceContextException
+    * @throws ResourceUnknownException
+    */
+   public Resource getInstance( ResourceContext resourceContext )
+   throws ResourceException, 
+          ResourceContextException, 
+          ResourceUnknownException
+   {
+      ResourceKey key      = resourceContext.getResourceKey(  );
+      Resource    resource = null;
+
+      try
+      {
+         if ( m_adminResource == null )
+         {
+            m_adminResource = (ResourceadminResource) createInstance( null );
+
+            //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() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
+            EndpointReference epr =
+               getEndpointReference( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
+                                     null,
+                                     ExampleConstants.getAddressingNamespace(  ) );
+            m_adminResource.setEndpointReference( epr );
+            add( null, m_adminResource );
+         }
+      }
+      catch ( ResourceException e )
+      {
+         throw new ResourceUnknownException( "ResourceadminResource",
+                                             resourceContext.getServiceName(  ) );
+      }
+
+      return m_adminResource;
+   }
+
+   // The list of jndi locations for resource homes
+   public String[] getKnownHomes(  )
+   {
+      return m_homesNames;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public QName getPortType(  )
+   {
+      return PORT_TYPE;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public QName getResourceKeyNameQName(  )
+   {
+      return RESOURCE_KEY_NAME;
+   }
+
+   // the list of all running resource created and resistered with resourceadmin
+   public Map getResources(  )
+   {
+      return m_allResources;
+   }
+
+   // The list of QNames identifying the resource key
+   public QName[] getResourcesKeyNameQnames(  )
+   {
+      return m_resourceIDQNames;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public QName getServiceName(  )
+   {
+      return SERVICE_NAME;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getServicePortName(  )
+   {
+      return PORT_NAME;
+   }
+}
\ No newline at end of file

Added: incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminPropertyQNames.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminPropertyQNames.java (added)
+++ incubator/muse/site/example/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminPropertyQNames.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,89 @@
+/*=============================================================================*
+ *  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.resourceadmin;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Resourceadmin WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface ResourceadminPropertyQNames
+{
+   /** DOCUMENT_ME */
+   QName SUPPORTEDRESOURCES =
+      new QName( "http://ws.apache.org/muse/example/resourceadmin/properties", "SupportedResources", "resAdm-prop" );
+
+   /** DOCUMENT_ME */
+   QName TOPICEXPRESSIONDIALECTS =
+      new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
+                 "TopicExpressionDialects", "wsnt" );
+
+   /** DOCUMENT_ME */
+   QName RESOURCEID =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs" );
+
+   /** DOCUMENT_ME */
+   QName RESOURCEHOSTNAME =
+      new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd", "ResourceHostname", "ws-ext" );
+
+   /** DOCUMENT_ME */
+   QName VERSION =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Version", "muws-p2-xs" );
+
+   /** DOCUMENT_ME */
+   QName MANAGEABILITYCAPABILITY =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability",
+                 "muws-p1-xs" );
+
+   /** DOCUMENT_ME */
+   QName CAPTION =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Caption", "muws-p2-xs" );
+
+   /** DOCUMENT_ME */
+   QName DISCOVERY =
+      new QName( "http://ws.apache.org/muse/example/resourceadmin/properties", "Discovery", "resAdm-prop" );
+
+   /** DOCUMENT_ME */
+   QName DESCRIPTION =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Description", "muws-p2-xs" );
+
+   /** DOCUMENT_ME */
+   QName OPERATIONALSTATUS =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus",
+                 "muws-p2-xs" );
+
+   /** DOCUMENT_ME */
+   QName FIXEDTOPICSET =
+      new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
+                 "FixedTopicSet", "wsnt" );
+
+   /** DOCUMENT_ME */
+   QName CURRENTTIME =
+      new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs" );
+
+   /** DOCUMENT_ME */
+   QName RESOURCETYPE =
+      new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd", "ResourceType", "ws-ext" );
+
+   /** DOCUMENT_ME */
+   QName TOPIC =
+      new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt" );
+}
\ 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