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 [24/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/businessprocesstype/src/wsdl/businessprocesstype.wsdl
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl (added)
+++ incubator/muse/site/example/services/businessprocesstype/src/wsdl/businessprocesstype.wsdl Mon Jun 20 16:28:31 2005
@@ -0,0 +1,580 @@
+<?xml version="1.0"?>
+
+<definitions name="BusinessProcessType"
+ targetNamespace="http://ws.apache.org/muse/example/businessprocesstype"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ws.apache.org/muse/example/businessprocesstype"
+ 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:bpt-prop="http://ws.apache.org/muse/example/businessprocesstype/properties"
+ 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/businessprocesstype"
+ 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:example-wsf="http://ws.apache.org/muse/example/shared"
+ xmlns:bpt-prop="http://ws.apache.org/muse/example/businessprocesstype/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/shared"
+ schemaLocation="../wsdl/shared.xsd"/>
+
+ <xsd:import namespace="http://ws.apache.org/muse/example/businessprocesstype/properties"
+ schemaLocation="../wsdl/businessprocesstype.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="BusinessProcessTypeProperties">
+ <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 BUSINESSPROCESSTYPE.XSD -->
+
+ <element ref="bpt-prop:NumberOfRunningProcesses" minOccurs="1" maxOccurs="1" />
+ <element ref="bpt-prop:NumberOfSuspendedProcesses" minOccurs="1" maxOccurs="1" />
+ <element ref="bpt-prop:TotalNumberOfAbortedProcesses" minOccurs="1" maxOccurs="1" />
+ <element ref="bpt-prop:TotalNumberOfCompletedProcesses" minOccurs="1" maxOccurs="1" />
+ <element ref="bpt-prop:TotalNumberOfTerminatedProcesses" minOccurs="1" maxOccurs="1" />
+ <element ref="example-wsf:CumulativeExecutionTime" 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>
+
+ <message name="SuspendRequest">
+ <part name="SuspendRequest" element="bpt-prop:Suspend"/>
+ </message>
+ <message name="SuspendResponse">
+ <part name="SuspendResponse" element="bpt-prop:SuspendResponse"/>
+ </message>
+
+ <message name="ResumeRequest">
+ <part name="ResumeRequest" element="bpt-prop:Resume"/>
+ </message>
+ <message name="ResumeResponse">
+ <part name="ResumeResponse" element="bpt-prop:ResumeResponse"/>
+ </message>
+
+ <message name="TerminateRequest">
+ <part name="TerminateRequest" element="bpt-prop:Terminate"/>
+ </message>
+ <message name="TerminateResponse">
+ <part name="TerminateResponse" element="bpt-prop:TerminateResponse"/>
+ </message>
+
+
+
+ <!-- *** Add message definitions for custom request/response/fault types here *** -->
+
+ <portType name="BusinessProcessTypePortType" wsrp:ResourceProperties="tns:BusinessProcessTypeProperties">
+
+ <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 defined in WS-MetadataExchange-2004_09.wsdl -->
+
+ <operation name="GetMetadata">
+ <input message="wsx:GetMetadataMsg"/>
+ <output message="wsx:GetMetadataResponseMsg"/>
+ </operation>
+
+
+ <operation name="Suspend">
+ <input message="tns:SuspendRequest" />
+ <output message="tns:SuspendResponse" />
+ </operation>
+
+ <operation name="Resume">
+ <input message="tns:ResumeRequest" />
+ <output message="tns:ResumeResponse" />
+ </operation>
+
+ <operation name="Terminate">
+ <input message="tns:TerminateRequest" />
+ <output message="tns:TerminateResponse" />
+ </operation>
+
+
+ </portType>
+
+ <binding name="BusinessProcessTypeSoapHttpBinding" type="tns:BusinessProcessTypePortType">
+
+ <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>
+
+ <operation name="Suspend">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ <operation name="Resume">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ <operation name="Terminate">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+
+ </binding>
+
+ <service name="BusinessProcessTypeService">
+ <!-- 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="businessprocesstype" binding="tns:BusinessProcessTypeSoapHttpBinding">
+ <soap:address location="http://localhost:8080/muse/services/businessprocesstype" />
+ </port>
+ </service>
+
+</definitions>
Added: incubator/muse/site/example/services/host/build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/build.properties?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/build.properties (added)
+++ incubator/muse/site/example/services/host/build.properties Mon Jun 20 16:28:31 2005
@@ -0,0 +1,13 @@
+
+endpoint.url=http://localhost:8080/muse/services/host
+
+# 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/host/build.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/build.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/build.xml (added)
+++ incubator/muse/site/example/services/host/build.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+
+<project name="Host_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/host.wsdl" />
+
+ <target name="init" unless="Host.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="Host.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="Host.classpath" refid="Host.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="Host.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 host 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 host 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}/host-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="Host.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="**/Host_deploy.wsdd" />
+ </wsddUpdater>
+
+ <!-- update jndi-config.wsdd using JndiConfigUpdater -->
+ <taskdef name="jndiUpdater" classname="org.apache.ws.util.jndi.tools.JndiConfigUpdater" classpathref="Host.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="**/Host_jndi-config.xml" />
+ </jndiUpdater>
+
+ </target>
+
+ <target name="sendRequest"
+ description="sends a request to the host 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/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.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.host;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * An abstract Host WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractHostResource
+ 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.host.HostPropertiesDocument propsDoc =
+ org.apache.ws.muse.example.host.HostPropertiesDocument.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/host/src/java/org/apache/ws/muse/example/host/AbstractHostService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostService.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostService.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostService.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,175 @@
+/*=============================================================================*
+ * 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.host;
+
+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;
+
+/**
+ * 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 AbstractHostService
+ 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/host";
+
+ /** DOCUMENT_ME */
+ public static final String TARGET_NSPREFIX = "host";
+
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ /**
+ * Creates a new {@link AbstractHostService} object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public AbstractHostService( 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://schemas.xmlsoap.org/ws/2004/09/mex}GetMetadata" ),
+ "GetMetadata" );
+ 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/host/src/java/org/apache/ws/muse/example/host/HostCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostCustomOperationsPortType.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostCustomOperationsPortType.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostCustomOperationsPortType.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,35 @@
+/*=============================================================================*
+ * 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.host;
+
+
+/**
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface HostCustomOperationsPortType
+{
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument GetMetadata( org.xmlsoap.schemas.ws.x2004.x09.mex.GetMetadataDocument requestDoc );
+}
\ No newline at end of file
Added: incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostHome.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostHome.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostHome.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,196 @@
+/*=============================================================================*
+ * Copyright 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *=============================================================================*/
+package org.apache.ws.muse.example.host;
+
+import org.apache.ws.addressing.EndpointReference;
+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.ResourceKey;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.resource.impl.SimpleTypeResourceKey;
+import javax.xml.namespace.QName;
+import java.io.Serializable;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * Home for Host WS-Resources.
+ */
+public class HostHome
+ 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/host}host" );
+
+ /** DOCUMENT_ME */
+ public static final QName RESOURCE_ID =
+ javax.xml.namespace.QName.valueOf( "{http://ws.apache.org/muse/example/host}ResourceID" );
+
+ /** 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/host}HostPortType" );
+
+ /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+ public static final String PORT_NAME = "host";
+
+ /** The name of the resource key for this resource. **/
+ public static final QName RESOURCE_KEY_NAME = RESOURCE_ID;
+
+ /**
+ * 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;
+
+ // keeps track of instances ids
+ private long m_instances = 0;
+
+ /**
+ *
+ * @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
+ {
+ resource = find( key );
+ }
+ catch ( ResourceException re )
+ {
+ throw new ResourceUnknownException( key.getValue( ),
+ resourceContext.getServiceName( ) );
+
+ /**
+ * You can build an EndpointReference for a Resource you create by uncommenting the following code.
+ * Note: You can set the EndpointReference on your Resource using the setter (not in Resource interface)
+ */
+
+ //EndpointReference epr = getEndpointReference(resourceContext.getBaseURL( ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
+ }
+
+ return resource;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public QName getPortType( )
+ {
+ return PORT_TYPE;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public QName getResourceKeyNameQName( )
+ {
+ return RESOURCE_KEY_NAME;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public QName getServiceName( )
+ {
+ return SERVICE_NAME;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public String getServicePortName( )
+ {
+ return PORT_NAME;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param resourceContext DOCUMENT_ME
+ * @param createParams DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ *
+ * @throws ResourceException DOCUMENT_ME
+ * @throws ResourceContextException DOCUMENT_ME
+ * @throws ResourceUnknownException DOCUMENT_ME
+ */
+ public Resource create( ResourceContext resourceContext,
+ CreateParamsType createParams )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ Resource resource = null;
+ long currentId = ++m_instances;
+ SimpleTypeResourceKey aKey =
+ ResourceKeyFactory.createKey( RESOURCE_ID, SERVICE_NAME + Long.toString( currentId ) );
+ try
+ {
+ //resource = createInstance(aKey);
+ resource = new HostResource( 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() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
+ EndpointReference epr =
+ getEndpointReference( resourceContext.getBaseURL( ) + "/" + getServiceName( ).getLocalPart( ),
+ aKey,
+ ExampleConstants.getAddressingNamespace( ) );
+ ( (HostResource) resource ).setEndpointReference( epr );
+ resource.init( );
+ add( aKey, resource );
+ }
+ catch ( Exception e )
+ {
+ throw new ResourceException( e );
+ }
+
+ return resource;
+ }
+}
\ No newline at end of file
Added: incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostPropertyQNames.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostPropertyQNames.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostPropertyQNames.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,87 @@
+/*=============================================================================*
+ * 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.host;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Host WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface HostPropertyQNames
+{
+ /** DOCUMENT_ME */
+ QName CPUUSAGE = new QName( "http://ws.apache.org/muse/example/host/properties", "CpuUsage", "host-prop" );
+
+ /** DOCUMENT_ME */
+ QName AVAILABLEMEMORY =
+ new QName( "http://ws.apache.org/muse/example/host/properties", "AvailableMemory", "host-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 NUMBEROFPROCESSES =
+ new QName( "http://ws.apache.org/muse/example/host/properties", "NumberOfProcesses", "host-prop" );
+
+ /** 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 DESCRIPTION =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Description", "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
Added: incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,288 @@
+/*=============================================================================*
+ * 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.host;
+
+import org.apache.ws.mows.v1_0.MowsConstants;
+import org.apache.ws.mows.v1_0.capability.MetricsCapability;
+import org.apache.ws.muse.example.ExampleConstants;
+import org.apache.ws.muse.example.application.ApplicationPropertyQNames;
+import org.apache.ws.muse.example.host.backend.HostInstance;
+import org.apache.ws.muse.example.host.callback.AvailableMemoryCallback;
+import org.apache.ws.muse.example.host.callback.CpuUsageCallback;
+import org.apache.ws.muse.example.host.callback.HostNameCallback;
+import org.apache.ws.muse.example.host.callback.NumProcessesCallback;
+import org.apache.ws.muse.example.resourceadmin.properties.CreateParamsType;
+import org.apache.ws.muws.v1_0.MuwsConstants;
+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.topics.ManagementEventTopic;
+import org.apache.ws.muws.v1_0.topics.impl.XmlBeansManagementEventTopicImpl;
+import org.apache.ws.notification.topics.TopicSpace;
+import org.apache.ws.notification.topics.TopicSpaceSet;
+import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
+import org.apache.ws.resource.ResourceKey;
+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 java.util.Calendar;
+
+/**
+ * @author Kinga Dziembowski
+ *
+ * A Host WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class HostResource
+ extends AbstractHostResource
+{
+ /**
+ * 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 = "HostMachine";
+
+ /** The value for the Caption property **/
+ public static final String CAPTION = "Host";
+
+ /** The value for the Version property **/
+ public static final String VERSION = "1.0";
+
+ /** The value for the Description property */
+ public static final String DESCRIPTION = "Host Resource";
+
+ /** A resource variable to hold the reference for backend */
+ private HostInstance m_instance = null;
+
+ /**
+ * Creates a new {@link HostResource} object.
+ *
+ * @param key DOCUMENT_ME
+ * @param params DOCUMENT_ME
+ */
+ public HostResource( 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
+ {
+ // create the backend object associated with this resource
+ m_instance = new HostInstance( getID( ).toString( ) );
+ TopicSpaceSet aSet = getTopicSpaceSet( );
+
+ //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 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/host/properties}CpuUsage Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.CPUUSAGE );
+ org.apache.ws.muse.example.host.properties.CpuUsageDocument prop_cpuusage =
+ org.apache.ws.muse.example.host.properties.CpuUsageDocument.Factory.newInstance( );
+ org.apache.ws.namespaces.muse.muwsExt1.IntMetric cpuMetric =
+ org.apache.ws.namespaces.muse.muwsExt1.IntMetric.Factory.newInstance( );
+ cpuMetric.setIntValue( m_instance.getCPUUsage( ) );
+ Calendar calendarInst = Calendar.getInstance( );
+ cpuMetric.setLastUpdated( calendarInst );
+ prop_cpuusage.setCpuUsage( cpuMetric );
+ resourceProperty.add( prop_cpuusage );
+ resourceProperty.setCallback( new CpuUsageCallback( m_instance ) );
+
+ // init the {http://ws.apache.org/muse/example/host/properties}AvailableMemory Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.AVAILABLEMEMORY );
+ org.apache.ws.muse.example.host.properties.AvailableMemoryDocument prop_availablememory =
+ org.apache.ws.muse.example.host.properties.AvailableMemoryDocument.Factory.newInstance( );
+ org.apache.ws.namespaces.muse.muwsExt1.LongMetric availableMemory =
+ org.apache.ws.namespaces.muse.muwsExt1.LongMetric.Factory.newInstance( );
+ availableMemory.setLongValue( m_instance.getAvailablememory( ) );
+ availableMemory.setLastUpdated( calendarInst );
+ prop_availablememory.setAvailableMemory( availableMemory );
+ resourceProperty.add( prop_availablememory );
+ resourceProperty.setCallback( new AvailableMemoryCallback( m_instance ) );
+
+ // init the {http://ws.apache.org/muse/example/host/properties}NumberOfProcesses Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.NUMBEROFPROCESSES );
+ org.apache.ws.muse.example.host.properties.NumberOfProcessesDocument prop_numberofprocesses =
+ org.apache.ws.muse.example.host.properties.NumberOfProcessesDocument.Factory.newInstance( );
+ org.apache.ws.namespaces.muse.muwsExt1.IntMetric numberOfProcesses =
+ org.apache.ws.namespaces.muse.muwsExt1.IntMetric.Factory.newInstance( );
+ numberOfProcesses.setIntValue( m_instance.getNumberOfprocesses( ) );
+ numberOfProcesses.setLastUpdated( calendarInst );
+ prop_numberofprocesses.setNumberOfProcesses( numberOfProcesses );
+ resourceProperty.add( prop_numberofprocesses );
+ resourceProperty.setCallback( new NumProcessesCallback( m_instance ) );
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.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( HostPropertyQNames.RESOURCEHOSTNAME );
+ org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument prop_resourcehostname =
+ org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument.Factory.newInstance( );
+ prop_resourcehostname.setResourceHostname( m_instance.getHostName( ) );
+ resourceProperty.add( prop_resourcehostname );
+ resourceProperty.setCallback( new HostNameCallback( m_instance ) );
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Version Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.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( HostPropertyQNames.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 + "-" + getID( ).toString( ) );
+ 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( ApplicationPropertyQNames.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( DescriptionCapability.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( HostPropertyQNames.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://ws.apache.org/muse/example/shared}ResourceType Resource Property
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.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 );
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
+ resourceProperty = resourcePropertySet.get( HostPropertyQNames.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( ) );
+ }
+
+ // 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.
+ */
+ org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties( getTopicSpaceSet( ),
+ getResourcePropertySet( ) );
+ }
+}
\ No newline at end of file
Added: incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostService.java?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostService.java (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/HostService.java Mon Jun 20 16:28:31 2005
@@ -0,0 +1,82 @@
+/*=============================================================================*
+ * 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.host;
+
+import org.apache.ws.resource.ResourceContext;
+
+/**
+ *
+ * @author Kinga Dziembowski
+ *
+ * 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 HostService
+ extends AbstractHostService
+ implements HostCustomOperationsPortType
+{
+ /**
+ * 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 HostService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public HostService( ResourceContext resourceContext )
+ {
+ super( resourceContext );
+ init( );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ 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;
+ }
+
+ /**
+ * 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;
+ }
+}
\ No newline at end of file
Added: incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_deploy.wsdd?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_deploy.wsdd (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_deploy.wsdd Mon Jun 20 16:28:31 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="host" provider="java:WSRF" style="document" use="literal">
+
+ <wsdlFile>/wsdl/host.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/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_jndi-config.xml?rev=191585&view=auto
==============================================================================
--- incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_jndi-config.xml (added)
+++ incubator/muse/site/example/services/host/src/java/org/apache/ws/muse/example/host/Host_jndi-config.xml Mon Jun 20 16:28:31 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+ <service name="host">
+ <resource name="home" type="org.apache.ws.muse.example.host.HostHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.apache.ws.muse.example.host.HostService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.apache.ws.muse.example.host.HostResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://ws.apache.org/muse/example/host</value>
+ </parameter>
+
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://ws.apache.org/muse/example/host}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