You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by hi...@apache.org on 2006/01/26 13:18:17 UTC

svn commit: r372516 [5/12] - in /webservices/muse/trunk/wsdm-jmx: ./ src/ src/examples/ src/examples/requestcounter/ src/examples/requestcounter/config/ src/examples/requestcounter/requests/ src/examples/requestcounter/src/ src/examples/requestcounter/...

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ResourceProperties-1_2-Draft_05.xsd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ResourceProperties-1_2-Draft_05.xsd?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ResourceProperties-1_2-Draft_05.xsd (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ResourceProperties-1_2-Draft_05.xsd Thu Jan 26 04:14:27 2006
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+<xsd:schema 
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:wsrf-rp=
+  "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  elementFormDefault="qualified" attributeFormDefault="unqualified" 
+  targetNamespace=
+  "http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd" 
+>
+ 
+<!-- =============== Resource Property Related  =================== --> 
+<!-- ====== Resource Properties for QueryResourceProperties ======= -->
+  <xsd:element name="QueryExpressionDialect" type="xsd:anyURI"/>
+
+<!-- ======= Global Attribute Declaration for WSDL 1.1 portType==== --> 
+  <xsd:attribute name="ResourceProperties" type="xsd:QName" />
+
+<!-- = Notification Message for ResourceProperties value change === -->
+  <xsd:complexType name="ResourcePropertyValueChangeNotificationType">
+    <xsd:sequence>
+      <xsd:element name="OldValue" nillable="true"
+                   minOccurs="0" maxOccurs="1" >
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:any minOccurs="1" maxOccurs="1" />
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element name="NewValue" nillable="true"
+                   minOccurs="1" maxOccurs="1" >
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:any minOccurs="1" maxOccurs="1" />
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>      
+    </xsd:sequence>
+  </xsd:complexType>
+  
+  <xsd:element name="ResourcePropertyValueChangeNotification" 
+        type="wsrf-rp:ResourcePropertyValueChangeNotificationType" />
+
+  <xsd:complexType name="QueryExpressionType" mixed="true">
+    <xsd:sequence>
+      <xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />
+    </xsd:sequence>
+    <xsd:attribute name="Dialect" type="xsd:anyURI" />
+  </xsd:complexType>
+
+  <xsd:element name="QueryExpression" type="wsrf-rp:QueryExpressionType" />
+
+</xsd:schema>
\ No newline at end of file

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.wsdl
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.wsdl?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.wsdl (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.wsdl Thu Jan 26 04:14:27 2006
@@ -0,0 +1,140 @@
+<?xml version="1.0"?>
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+<wsdl:definitions name="ServiceGroup" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" 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:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd" xmlns:wssg="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd" xmlns:wssgw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.wsdl" targetNamespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.wsdl">
+	<!-- ========================== Imports =========================== -->
+	<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" location="WS-ResourceProperties-1_2-Draft_01.wsdl"/>
+	<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl" location="WS-ResourceLifetime-1_2-Draft_01.wsdl"/>
+	<!-- ===================== Types Definitions ====================== -->
+	<wsdl:types>
+		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd" elementFormDefault="qualified">
+			<xsd:include schemaLocation="WS-ServiceGroup-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="WS-ResourceLifetime-1_2-Draft_01.xsd"/>
+			<xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" schemaLocation="WS-ResourceProperties-1_2-Draft_01.xsd"/>
+			<xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" schemaLocation="WS-BaseFaults-1_2-Draft_01.xsd"/>
+			<xsd:import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="../wsa/WS-Addressing-2003_03.xsd"/>
+			<!-- =============== Resource Property Related  =================== -->
+			<!-- ============ Resource Properties for ServiceGroup ============ -->
+			<xsd:element name="ServiceGroupRP">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element ref="wssg:MembershipContentRule" minOccurs="0" maxOccurs="unbounded"/>
+						<xsd:element ref="wssg:Entry" minOccurs="0" maxOccurs="unbounded"/>
+					</xsd:sequence>
+				</xsd:complexType>
+				<xsd:unique name="UniqueInterfaces">
+					<xsd:selector xpath="wssg:MembershipContentRule"/>
+					<xsd:field xpath="@MemberInterface"/>
+				</xsd:unique>
+			</xsd:element>
+			<!-- ========== Resource Properties for ServiceGroupEntry ========= -->
+			<xsd:element name="ServiceGroupEntryRP">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element ref="wssg:ServiceGroupEPR" minOccurs="1" maxOccurs="1"/>
+						<xsd:element ref="wssg:MemberEPR" minOccurs="1" maxOccurs="1"/>
+						<xsd:element ref="wssg:Content" minOccurs="1" maxOccurs="1"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<!-- ================= Message Specific Types  ==================== -->
+			<!-- ======== Message Types for ServiceGroupRegistration  ========= -->
+			<xsd:element name="Add">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="MemberEPR" type="wsa:EndpointReferenceType"/>
+						<xsd:element name="Content" type="xsd:anyType"/>
+						<xsd:element name="InitialTerminationTime" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="AddResponse" type="wsa:EndpointReferenceType"/>
+			<xsd:complexType name="ContentCreationFailedFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsbf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="ContentCreationFailedFault" type="wssg:ContentCreationFailedFaultType"/>
+			<xsd:complexType name="UnsupportedMemberInterfaceFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsbf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="UnsupportedMemberInterfaceFault" type="wssg:UnsupportedMemberInterfaceFaultType"/>
+			<xsd:complexType name="AddRefusedFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsbf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="AddRefusedFault" type="wssg:AddRefusedFaultType"/>
+		</xsd:schema>
+	</wsdl:types>
+	<!-- ==================== Message Definitions ===================== -->
+	<!-- =============== ServiceGroupRegistration::Add ================
+     Add(MemberEPR, Content, [InitialTerminationTime])
+     returns: EPR to ServiceGroupEntry
+   -->
+	<wsdl:message name="AddRequest">
+		<wsdl:part name="AddRequest" element="wssg:Add"/>
+	</wsdl:message>
+	<wsdl:message name="AddResponse">
+		<wsdl:part name="AddResponse" element="wssg:AddResponse"/>
+	</wsdl:message>
+	<wsdl:message name="ContentCreationFailedFault">
+		<wsdl:part name="ContentCreationFailedFault" element="wssg:ContentCreationFailedFault"/>
+	</wsdl:message>
+	<wsdl:message name="UnsupportedMemberInterfaceFault">
+		<wsdl:part name="UnsupportedMemberInterfaceFault" element="wssg:UnsupportedMemberInterfaceFault"/>
+	</wsdl:message>
+	<wsdl:message name="AddRefusedFault">
+		<wsdl:part name="AddRefusedFault" element="wssg:AddRefusedFault"/>
+	</wsdl:message>
+	<!-- =================== PortType Definitions ===================== -->
+	<wsdl:portType name="ServiceGroup" wsrp:ResourceProperties="wssg:ServiceGroupRP">
+		<!-- ========== extends wsrp:ResourceProperties ============= -->
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="ServiceGroupEntry" wsrp:ResourceProperties="wssg:ServiceGroupEntryRP">
+		<!-- ========== extends wsrp:ResourceProperties ============= -->
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="ServiceGroupRegistration" wsrp:ResourceProperties="wssg:ServiceGroupRP">
+		<!-- ========== extends wsrp:ResourceProperties ============= -->
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+		<wsdl:operation name="Add">
+			<wsdl:input name="AddRequest" message="wssgw:AddRequest"/>
+			<wsdl:output name="AddResponse" message="wssgw:AddResponse"/>
+			<wsdl:fault name="ContentCreationFailedFault" message="wssgw:ContentCreationFailedFault"/>
+			<wsdl:fault name="UnsupportedMemberInterfaceFault" message="wssgw:UnsupportedMemberInterfaceFault"/>
+			<wsdl:fault name="AddRefusedFault" message="wssgw:AddRefusedFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+</wsdl:definitions>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.xsd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.xsd?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.xsd (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_01.xsd Thu Jan 26 04:14:27 2006
@@ -0,0 +1,115 @@
+<?xml version="1.0"?>
+
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+
+<xsd:schema
+   xmlns="http://www.w3.org/2001/XMLSchema"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
+   xmlns:wssg="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd"
+   xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
+   elementFormDefault="qualified"
+   targetNamespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd">
+   <!-- ======================== Imports ============================ -->
+
+   <xsd:import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing"
+               schemaLocation="../wsa/WS-Addressing-2003_03.xsd" />
+   
+   <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
+               schemaLocation="WS-ResourceProperties-1_2-Draft_01.xsd"/>
+
+   <!-- =============== Resource Property Related  =================== -->
+   
+   <!-- ============ Resource Properties for ServiceGroup ============ -->
+   <xsd:simpleType name="ContentElementsType">
+      <xsd:list itemType="xsd:QName"/>
+   </xsd:simpleType>
+
+   <xsd:element name="MembershipContentRule">
+      <xsd:complexType>
+         <xsd:attribute name="MemberInterface" type="xsd:QName"/>
+         <xsd:attribute name="ContentElements"
+            type="wssg:ContentElementsType"
+            use="required"/>
+      </xsd:complexType>
+   </xsd:element>
+
+   <xsd:complexType name="EntryType">
+      <xsd:sequence>
+         <xsd:element name="ServiceGroupEntryEPR"
+            type="wsa:EndpointReferenceType"
+            minOccurs="1" maxOccurs="1"
+            nillable="true"/>
+         <xsd:element name="MemberServiceEPR"
+            type="wsa:EndpointReferenceType"
+            minOccurs="1" maxOccurs="1"/>
+         <xsd:element name="Content"
+            type="xsd:anyType"
+            minOccurs="1" maxOccurs="1"/>
+      </xsd:sequence>
+   </xsd:complexType>
+
+   <!-- ========== Resource Properties for ServiceGroupEntry ========= -->
+   <xsd:element name="Entry"
+      type="wssg:EntryType"/>
+
+   <xsd:element name="Content"
+      type="xsd:anyType"/>
+
+   <xsd:element name="MemberEPR"
+      type="wsa:EndpointReferenceType"/>
+
+   <xsd:element name="ServiceGroupEPR"
+      type="wsa:EndpointReferenceType"/>
+
+   <!-- = Messages Related to ServiceGroup Change Notification ======= -->
+   <xsd:complexType name="ServiceGroupModificationNotificationType">
+      <xsd:sequence>
+         <xsd:element name="ServiceGroupEntryEPR"
+            type="wsa:EndpointReferenceType"
+            minOccurs="1" maxOccurs="1"
+            nillable="true"/>
+         <xsd:element name="MemberServiceEPR"
+            type="wsa:EndpointReferenceType"
+            minOccurs="1" maxOccurs="1"/>
+         <xsd:element name="Content"
+            type="xsd:anyType"
+            minOccurs="0" maxOccurs="1"/>
+      </xsd:sequence>
+   </xsd:complexType>
+
+   <xsd:complexType name="ServiceGroupRemovalNotificationType">
+      <xsd:complexContent>
+         <xsd:extension
+            base="wssg:ServiceGroupModificationNotificationType">
+            <xsd:sequence>
+               <xsd:element name="Reason"
+                  type="xsd:string"
+                  minOccurs="0" maxOccurs="1"/>
+            </xsd:sequence>
+         </xsd:extension>
+      </xsd:complexContent>
+   </xsd:complexType>
+
+   <xsd:element name="EntryAdditionNotification"
+      type="wssg:ServiceGroupModificationNotificationType"/>
+
+   <xsd:element name="EntryRemovalNotification"
+      type="wssg:ServiceGroupRemovalNotificationType"/>
+
+</xsd:schema>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.wsdl
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.wsdl?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.wsdl (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.wsdl Thu Jan 26 04:14:27 2006
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+<wsdl:definitions name="WS-ServiceGroup" 
+	xmlns="http://schemas.xmlsoap.org/wsdl/" 
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+	xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" 
+	xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-BaseFaults-1.2-draft-03.xsd" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd" xmlns:wsrf-rpw="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.wsdl" xmlns:wsrf-sg="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.xsd" xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.wsdl" targetNamespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.wsdl">
+	<!-- ========================== Imports =========================== -->
+	<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.wsdl" location="WS-ResourceProperties-1_2-Draft_05.wsdl"/>
+	<!-- ===================== Types Definitions ====================== -->
+	<wsdl:types>
+		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
+			<xsd:include schemaLocation="WS-ServiceGroup-1_2-Draft_03.xsd"/>
+			<xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd" schemaLocation="WS-ResourceProperties-1_2-Draft_05.xsd"/>
+			<xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-BaseFaults-1.2-draft-03.xsd" schemaLocation="WS-BaseFaults-1_2-Draft_03.xsd"/>
+			<xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" schemaLocation="../wsa/WS-Addressing-2004_08_10.xsd"/>
+			<!-- =============== Resource Property Related  =================== -->
+			<!-- ============ Resource Properties for ServiceGroup ============ -->
+			<xsd:element name="ServiceGroupRP">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element ref="wsrf-sg:MembershipContentRule" minOccurs="0" maxOccurs="unbounded"/>
+						<xsd:element ref="wsrf-sg:Entry" minOccurs="0" maxOccurs="unbounded"/>
+					</xsd:sequence>
+				</xsd:complexType>
+				<xsd:unique name="UniqueInterfaces">
+					<xsd:selector xpath="./wsrf-sg:MembershipContentRule"/>
+					<xsd:field xpath="@MemberInterface"/>
+				</xsd:unique>
+			</xsd:element>
+			<!-- ========== Resource Properties for ServiceGroupEntry ========= -->
+			<xsd:element name="ServiceGroupEntryRP">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element ref="wsrf-sg:ServiceGroupEPR" minOccurs="1" maxOccurs="1"/>
+						<xsd:element ref="wsrf-sg:MemberEPR" minOccurs="1" maxOccurs="1"/>
+						<xsd:element ref="wsrf-sg:Content" minOccurs="1" maxOccurs="1"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<!-- ================= Message Specific Types  ==================== -->
+			<!-- ======== Message Types for ServiceGroupRegistration  ========= -->
+			<xsd:element name="Add">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="MemberEPR" type="wsa:EndpointReferenceType"/>
+						<xsd:element name="Content" type="xsd:anyType"/>
+						<xsd:element name="InitialTerminationTime" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="AddResponse" type="wsa:EndpointReferenceType"/>
+			<xsd:complexType name="ContentCreationFailedFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsrf-bf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="ContentCreationFailedFault" type="wsrf-sg:ContentCreationFailedFaultType"/>
+			<xsd:complexType name="UnsupportedMemberInterfaceFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsrf-bf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="UnsupportedMemberInterfaceFault" type="wsrf-sg:UnsupportedMemberInterfaceFaultType"/>
+			<xsd:complexType name="AddRefusedFaultType">
+				<xsd:complexContent>
+					<xsd:extension base="wsrf-bf:BaseFaultType"/>
+				</xsd:complexContent>
+			</xsd:complexType>
+			<xsd:element name="AddRefusedFault" type="wsrf-sg:AddRefusedFaultType"/>
+		</xsd:schema>
+	</wsdl:types>
+	<!-- ==================== Message Definitions ===================== -->
+	<!-- =============== ServiceGroupRegistration::Add ================ 
+		Add(MemberEPR, Content, [InitialTerminationTime])
+		returns: EPR to ServiceGroupEntry
+	-->
+	<wsdl:message name="AddRequest">
+		<wsdl:part name="AddRequest" element="wsrf-sg:Add"/>
+	</wsdl:message>
+	<wsdl:message name="AddResponse">
+		<wsdl:part name="AddResponse" element="wsrf-sg:AddResponse"/>
+	</wsdl:message>
+	<wsdl:message name="ContentCreationFailedFault">
+		<wsdl:part name="ContentCreationFailedFault" element="wsrf-sg:ContentCreationFailedFault"/>
+	</wsdl:message>
+	<wsdl:message name="UnsupportedMemberInterfaceFault">
+		<wsdl:part name="UnsupportedMemberInterfaceFault" element="wsrf-sg:UnsupportedMemberInterfaceFault"/>
+	</wsdl:message>
+	<wsdl:message name="AddRefusedFault">
+		<wsdl:part name="AddRefusedFault" element="wsrf-sg:AddRefusedFault"/>
+	</wsdl:message>
+	<!-- =================== PortType Definitions ===================== -->
+	<wsdl:portType name="ServiceGroup" wsrf-rp:ResourceProperties="wsrf-sg:ServiceGroupRP">
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrf-rpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrf-rpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="ServiceGroupEntry" wsrf-rp:ResourceProperties="wsrf-sg:ServiceGroupEntryRP">
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrf-rpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrf-rpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="ServiceGroupRegistration" wsrf-rp:ResourceProperties="wsrf-sg:ServiceGroupRP">
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrf-rpw:GetResourcePropertyRequest"/>
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrf-rpw:GetResourcePropertyResponse"/>
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault"/>
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault"/>
+		</wsdl:operation>
+		<wsdl:operation name="Add">
+			<wsdl:input name="AddRequest" message="wsrf-sgw:AddRequest"/>
+			<wsdl:output name="AddResponse" message="wsrf-sgw:AddResponse"/>
+			<wsdl:fault name="ContentCreationFailedFault" message="wsrf-sgw:ContentCreationFailedFault"/>
+			<wsdl:fault name="UnsupportedMemberInterfaceFault" message="wsrf-sgw:UnsupportedMemberInterfaceFault"/>
+			<wsdl:fault name="AddRefusedFault" message="wsrf-sgw:AddRefusedFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+</wsdl:definitions>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.xsd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.xsd?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.xsd (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsrf/WS-ServiceGroup-1_2-Draft_03.xsd Thu Jan 26 04:14:27 2006
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+<xsd:schema 
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+  xmlns:wsrf-sg="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.xsd"
+  elementFormDefault="qualified" attributeFormDefault="unqualified" 
+  targetNamespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ServiceGroup-1.2-draft-03.xsd" >
+  
+<!-- ======================== Imports ============================ -->
+
+  <xsd:import
+     namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" 
+     schemaLocation="../wsa/WS-Addressing-2004_08_10.xsd" /> 
+         
+<!-- =============== Resource Property Related  =================== -->
+<!-- ============ Resource Properties for ServiceGroup ============ -->
+
+  <xsd:simpleType name="ContentElementsType">
+    <xsd:list itemType="xsd:QName"/>
+  </xsd:simpleType>
+
+  <xsd:element name="MembershipContentRule">
+    <xsd:complexType>
+      <xsd:attribute name="MemberInterface" type="xsd:QName"/>
+      <xsd:attribute name="ContentElements"
+                     type="wsrf-sg:ContentElementsType"
+                     use="required"/>
+    </xsd:complexType>  
+  </xsd:element>     
+  
+  <xsd:complexType name="EntryType">
+    <xsd:sequence>
+      <xsd:element name="ServiceGroupEntryEPR"
+                   type="wsa:EndpointReferenceType" 
+                   minOccurs="1" maxOccurs="1"
+                   nillable="true"/> 
+      <xsd:element name="MemberServiceEPR"
+                   type="wsa:EndpointReferenceType" 
+                   minOccurs="1" maxOccurs="1"/> 
+      <xsd:element name="Content"
+                   minOccurs="1" maxOccurs="1"/>
+    </xsd:sequence> 
+  </xsd:complexType>
+
+<!-- ========== Resource Properties for ServiceGroupEntry ========= -->
+
+  <xsd:element name="Entry"
+               type="wsrf-sg:EntryType"/>
+
+  <xsd:element name="Content"/>
+
+  <xsd:element name="MemberEPR" 
+               type="wsa:EndpointReferenceType"/>
+
+  <xsd:element name="ServiceGroupEPR" 
+               type="wsa:EndpointReferenceType"/>
+
+<!-- = Messages Related to ServiceGroup Change Notification ======= -->
+  <xsd:complexType name="ServiceGroupModificationNotificationType">
+    <xsd:sequence>
+      <xsd:element name="ServiceGroupEntryEPR"
+                   type="wsa:EndpointReferenceType" 
+                   minOccurs="1" maxOccurs="1"
+                   nillable="true"/> 
+      <xsd:element name="MemberServiceEPR"
+                   type="wsa:EndpointReferenceType" 
+                   minOccurs="1" maxOccurs="1"/> 
+      <xsd:element name="Content"
+                   minOccurs="0" maxOccurs="1"/>          
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="ServiceGroupRemovalNotificationType">
+    <xsd:complexContent>
+      <xsd:extension 
+           base="wsrf-sg:ServiceGroupModificationNotificationType">    
+        <xsd:sequence>
+          <xsd:element name="Reason" 
+                       type="xsd:string" 
+                       minOccurs="0" maxOccurs="1"/>
+        </xsd:sequence>
+      </xsd:extension>
+    </xsd:complexContent>
+  </xsd:complexType>
+  
+  <xsd:element name="EntryAdditionNotification" 
+              type="wsrf-sg:ServiceGroupModificationNotificationType" />
+
+  <xsd:element name="EntryRemovalNotification" 
+              type="wsrf-sg:ServiceGroupRemovalNotificationType" />
+
+</xsd:schema>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.wsdl
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.wsdl?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.wsdl (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.wsdl Thu Jan 26 04:14:27 2006
@@ -0,0 +1,94 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+(c) 2004 BEA Systems Inc., Computer Associates International, Inc.,
+International Business Machines Corporation, Microsoft Corporation,
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved.
+
+Permission to copy and display the WS-MetadataExchange Specification
+(the "Specification"), in any medium without fee or royalty is hereby
+granted, provided that you include the following on ALL copies of the
+Specification that you make:
+
+1.	A link or URL to the Specification at this location.
+2.	The copyright notice as shown in the Specification.
+
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
+webMethods (collectively, the "Authors") each agree to grant you a
+license, under royalty-free and otherwise reasonable,
+non-discriminatory terms and conditions, to their respective essential
+patent claims that they deem necessary to implement the
+WS-MetadataExchange Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.
+
+The name and trademarks of the Authors may NOT be used in any manner,
+including advertising or publicity pertaining to the Specifications or
+their contents without specific, written prior permission. Title to
+copyright in the Specifications will at all times remain with the
+Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+
+<wsdl:definitions
+    targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing'
+    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
+    xmlns:xs='http://www.w3.org/2001/XMLSchema' >
+
+  <wsdl:types>
+    <xs:schema
+        targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex' >
+      <xs:include schemaLocation='WS-MetadataExchange-2004_09.xsd' />
+    </xs:schema>
+  </wsdl:types>
+
+  <wsdl:message name='GetMetadataMsg' >
+    <wsdl:part name='body' element='tns:GetMetadata' />
+  </wsdl:message>
+
+  <wsdl:message name='GetMetadataResponseMsg' >
+    <wsdl:part name='body' element='tns:Metadata' />
+  </wsdl:message>
+
+  <wsdl:message name='GetMsg' />
+
+  <wsdl:message name='GetResponseMsg' >
+    <wsdl:part name='body' type='tns:AnyXmlType' />
+  </wsdl:message>
+
+  <wsdl:portType name='MetadataExchange' >
+    <wsdl:operation name='GetMetadata' >
+      <wsdl:input
+          message='tns:GetMetadataMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Request' />
+      <wsdl:output
+          message='tns:GetMetadataResponseMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Response' />
+    </wsdl:operation>
+    <wsdl:operation name='Get' >
+      <wsdl:input
+          message='tns:GetMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Request' />
+      <wsdl:output
+          message='tns:GetResponseMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Response' />
+    </wsdl:operation>
+  </wsdl:portType>
+
+</wsdl:definitions>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.xsd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.xsd?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.xsd (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/wsx/WS-MetadataExchange-2004_09.xsd Thu Jan 26 04:14:27 2006
@@ -0,0 +1,114 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+(c) 2004 BEA Systems Inc., Computer Associates International, Inc.,
+International Business Machines Corporation, Microsoft Corporation,
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved. 
+
+Permission to copy and display the WS-MetadataExchange Specification
+(the "Specification"), in any medium without fee or royalty is hereby
+granted, provided that you include the following on ALL copies of the
+Specification that you make:
+
+1.	A link or URL to the Specification at this location.
+2.	The copyright notice as shown in the Specification.
+
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
+webMethods (collectively, the "Authors") each agree to grant you a
+license, under royalty-free and otherwise reasonable,
+non-discriminatory terms and conditions, to their respective essential
+patent claims that they deem necessary to implement the
+WS-MetadataExchange Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.
+
+The name and trademarks of the Authors may NOT be used in any manner,
+including advertising or publicity pertaining to the Specifications or
+their contents without specific, written prior permission. Title to
+copyright in the Specifications will at all times remain with the
+Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+
+<xs:schema
+    targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing'
+    xmlns:xs='http://www.w3.org/2001/XMLSchema'
+    elementFormDefault='qualified'
+    blockDefault='#all' >
+
+  <xs:import
+      namespace='http://schemas.xmlsoap.org/ws/2004/08/addressing'
+      schemaLocation='../wsa/WS-Addressing-2004_08_10.xsd' />
+
+  <!-- Get Metadata request -->
+  <xs:element name='GetMetadata' >
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref='tns:Dialect' minOccurs='0' />
+        <xs:element ref='tns:Identifier' minOccurs='0' />
+      </xs:sequence>
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='Dialect' type='xs:anyURI' />
+  <xs:element name='Identifier' type='xs:anyURI' />
+
+  <!-- Get Metadata response -->
+  <xs:element name='Metadata' >
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref='tns:MetadataSection'
+                    minOccurs='0'
+                    maxOccurs='unbounded' />
+      </xs:sequence>
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='MetadataSection' >
+    <xs:complexType>
+      <xs:choice>
+        <xs:any namespace='##other'
+                processContents='lax'
+                minOccurs='0'
+                maxOccurs='unbounded' />
+        <xs:element ref='tns:MetadataReference' />
+        <xs:element ref='tns:Location' />
+      </xs:choice>
+      <xs:attribute name='Dialect' type='xs:anyURI' use='required' />
+      <xs:attribute name='Identifier' type='xs:anyURI' />
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='MetadataReference'
+              type='wsa:EndpointReferenceType' />
+
+  <xs:element name='Location'
+              type='xs:anyURI' />
+
+  <!-- count(/s:Envelope/s:Body/*) = 0 for Get request -->
+
+  <!-- Get Response returns xs:any -->
+
+  <xs:complexType name='AnyXmlType' >
+    <xs:sequence>
+      <xs:any namespace='##any' processContents='lax' />
+    </xs:sequence>
+    <xs:anyAttribute namespace='##any' processContents='lax' />
+  </xs:complexType>
+
+</xs:schema>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/xml/XML-Namespace-1998.xsd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/xml/XML-Namespace-1998.xsd?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/xml/XML-Namespace-1998.xsd (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/spec/xml/XML-Namespace-1998.xsd Thu Jan 26 04:14:27 2006
@@ -0,0 +1,117 @@
+<?xml version='1.0'?>
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" >
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+
+ <xs:annotation>
+  <xs:documentation>
+   See http://www.w3.org/XML/1998/namespace.html and
+   http://www.w3.org/TR/REC-xml for information about this namespace.
+
+    This schema document describes the XML namespace, in a form
+    suitable for import by other schema documents.  
+
+    Note that local names in this namespace are intended to be defined
+    only by the World Wide Web Consortium or its subgroups.  The
+    following names are currently defined in this namespace and should
+    not be used with conflicting semantics by any Working Group,
+    specification, or document instance:
+
+    base (as an attribute name): denotes an attribute whose value
+         provides a URI to be used as the base for interpreting any
+         relative URIs in the scope of the element on which it
+         appears; its value is inherited.  This name is reserved
+         by virtue of its definition in the XML Base specification.
+
+    lang (as an attribute name): denotes an attribute whose value
+         is a language code for the natural language of the content of
+         any element; its value is inherited.  This name is reserved
+         by virtue of its definition in the XML specification.
+  
+    space (as an attribute name): denotes an attribute whose
+         value is a keyword indicating what whitespace processing
+         discipline is intended for the content of the element; its
+         value is inherited.  This name is reserved by virtue of its
+         definition in the XML specification.
+
+    Father (in any context at all): denotes Jon Bosak, the chair of 
+         the original XML Working Group.  This name is reserved by 
+         the following decision of the W3C XML Plenary and 
+         XML Coordination groups:
+
+             In appreciation for his vision, leadership and dedication
+             the W3C XML Plenary on this 10th day of February, 2000
+             reserves for Jon Bosak in perpetuity the XML name
+             xml:Father
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>This schema defines attributes and an attribute group
+        suitable for use by
+        schemas wishing to allow xml:base, xml:lang or xml:space attributes
+        on elements they define.
+
+        To enable this, such a schema must import this schema
+        for the XML namespace, e.g. as follows:
+        &lt;schema . . .>
+         . . .
+         &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+                    schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
+
+        Subsequently, qualified reference to any of the attributes
+        or the group defined below will have the desired effect, e.g.
+
+        &lt;type . . .>
+         . . .
+         &lt;attributeGroup ref="xml:specialAttrs"/>
+ 
+         will define a type which will schema-validate an instance
+         element with any of those attributes</xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>In keeping with the XML Schema WG's standard versioning
+   policy, this schema document will persist at
+   http://www.w3.org/2001/03/xml.xsd.
+   At the date of issue it can also be found at
+   http://www.w3.org/2001/xml.xsd.
+   The schema document at that URI may however change in the future,
+   in order to remain compatible with the latest version of XML Schema
+   itself.  In other words, if the XML Schema namespace changes, the version
+   of this document at
+   http://www.w3.org/2001/xml.xsd will change
+   accordingly; the version at
+   http://www.w3.org/2001/03/xml.xsd will not change.
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:attribute name="lang" type="xs:language">
+  <xs:annotation>
+   <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
+         codes as the enumerated possible values . . .</xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+
+ <xs:attribute name="space" default="preserve">
+  <xs:simpleType>
+   <xs:restriction base="xs:NCName">
+    <xs:enumeration value="default"/>
+    <xs:enumeration value="preserve"/>
+   </xs:restriction>
+  </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="base" type="xs:anyURI">
+  <xs:annotation>
+   <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
+                     information about this attribute.</xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+  <xs:attribute ref="xml:base"/>
+  <xs:attribute ref="xml:lang"/>
+  <xs:attribute ref="xml:space"/>
+ </xs:attributeGroup>
+
+</xs:schema>

Added: webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/wsdl/RequestCounter.wsdl
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/wsdl/RequestCounter.wsdl?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/wsdl/RequestCounter.wsdl (added)
+++ webservices/muse/trunk/wsdm-jmx/src/examples/requestcounter/src/wsdl/RequestCounter.wsdl Thu Jan 26 04:14:27 2006
@@ -0,0 +1,246 @@
+<?xml version="1.0"?>
+
+<definitions name="RequestCounter"
+	targetNamespace="http://sample.wsdmjmx.org/service/RequestCounter"
+             xmlns="http://schemas.xmlsoap.org/wsdl/"
+	     xmlns:tns="http://sample.wsdmjmx.org/service/RequestCounter"
+             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:mows-xs="http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd"
+             xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"
+             xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing">
+
+   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"
+           location="../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl"/>
+
+   <import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl"
+           location="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl"/>
+
+   <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"
+           location="../spec/wsx/WS-MetadataExchange-2004_09.wsdl"/>
+
+   <import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.wsdl" 
+           location="../spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl"/>
+
+   <import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.wsdl" 
+           location="../spec/wsdm/MUWS-Part2-1_0.wsdl"/>
+
+   <types>
+      <schema elementFormDefault="qualified"
+	      targetNamespace="http://sample.wsdmjmx.org/service/RequestCounter"
+              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:mows-xs="http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd">
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
+                     schemaLocation="../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd"
+                     schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_2.xsd"/>
+ 
+         <xsd:import namespace="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd" 
+                     schemaLocation="../spec/wsn/WS-BaseNotification-1_2-Draft_01.xsd"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd" 
+                     schemaLocation="../spec/wsdm/MUWS-Part1-1_0.xsd"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd" 
+                     schemaLocation="../spec/wsdm/MUWS-Part2-1_0.xsd"/>
+
+         <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd" 
+                     schemaLocation="../spec/wsdm/MOWS-1_0.xsd"/>
+
+         <element name="RequestCount" type="mows-xs:IntegerCounter"/>
+         <element name="Temperature" type="xsd:float"/>
+         
+         <!-- Resource Properties Document Schema -->
+         <element name="ResourceProperties">
+            <complexType>
+               <sequence>
+                  <element ref="wsnt:Topic" maxOccurs="unbounded" />
+                  <element ref="wsnt:FixedTopicSet" /> 
+                  <element ref="wsnt:TopicExpressionDialects" maxOccurs="unbounded" />
+	          <element ref="muws-p1-xs:ResourceId"/>
+                  <element ref="muws-p1-xs:ManageabilityCapability" minOccurs="0" maxOccurs="unbounded"/>
+		  <element ref="muws-p2-xs:Caption" minOccurs="0" maxOccurs="unbounded"/>
+                  <element ref="muws-p2-xs:Description" minOccurs="0" maxOccurs="unbounded"/>
+                  <element ref="muws-p2-xs:Version" minOccurs="0"/>
+		  <element ref="muws-p2-xs:OperationalStatus"/>
+		  <element ref="muws-p2-xs:CurrentTime"/>
+                  <element ref="tns:RequestCount"/>
+                  <element ref="tns:Temperature"/>
+               </sequence>
+            </complexType>
+         </element>
+      </schema>
+   </types>
+
+
+   <portType name="RequestCounterPortType" wsrp:ResourceProperties="tns:ResourceProperties">
+         
+      <operation name="GetResourceProperty">
+         <input name="GetResourcePropertyRequest" message="wsrpw:GetResourcePropertyRequest"/>
+         <output name="GetResourcePropertyResponse" message="wsrpw:GetResourcePropertyResponse"/>
+         <fault name="ResourceUnknownFault" message="wsrpw:ResourceUnknownFault"/>
+         <fault name="InvalidResourcePropertyQNameFault" message="wsrpw:InvalidResourcePropertyQNameFault"/>
+      </operation>
+
+      <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>
+
+      <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>
+
+      <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>
+
+   </portType>
+
+   <binding name="RequestCounterSoapHttpBinding" type="tns:RequestCounterPortType">
+
+      <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>
+
+      <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>
+
+      <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>
+      
+      <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="TopicNotSupportedFault" use="literal"/>
+         </fault>         
+         <fault name="NoCurrentMessageOnTopicFault">
+            <soap:fault name="NoCurrentMessageOnTopicFault" use="literal"/>
+         </fault>         
+      </operation>         
+
+   </binding>
+
+   <service name="RequestCounterService">
+      <!-- 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="RequestCounterPort" binding="tns:RequestCounterSoapHttpBinding">
+         <soap:address location="http://localhost:8080/muse/services/RequestCounterPort" />
+      </port>
+   </service>
+
+</definitions>

Added: webservices/muse/trunk/wsdm-jmx/src/java/org/apache/ws/muws/jmx/notification/JmxNotificationProducerPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/wsdm-jmx/src/java/org/apache/ws/muws/jmx/notification/JmxNotificationProducerPortTypeImpl.java?rev=372516&view=auto
==============================================================================
--- webservices/muse/trunk/wsdm-jmx/src/java/org/apache/ws/muws/jmx/notification/JmxNotificationProducerPortTypeImpl.java (added)
+++ webservices/muse/trunk/wsdm-jmx/src/java/org/apache/ws/muws/jmx/notification/JmxNotificationProducerPortTypeImpl.java Thu Jan 26 04:14:27 2006
@@ -0,0 +1,300 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muws.jmx.notification;
+
+import java.util.Calendar;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.XmlObjectWrapper;
+import org.apache.ws.addressing.EndpointReference;
+import org.apache.ws.addressing.XmlBeansEndpointReference;
+import org.apache.ws.muws.jmx.notification.monitor.InvalidMonitorPreconditionException;
+import org.apache.ws.muws.jmx.notification.monitor.JmxMonitorType;
+import org.apache.ws.muws.jmx.resource.InvalidSchemaException;
+import org.apache.ws.muws.jmx.util.WsdmJmxConstants;
+import org.apache.ws.notification.base.NotificationProducerResource;
+import org.apache.ws.notification.base.WsnNamespaceVersionHolder;
+import org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException;
+import org.apache.ws.notification.base.faults.NoCurrentMessageOnTopicFaultException;
+import org.apache.ws.notification.base.faults.SubscribeCreationFailedFaultException;
+import org.apache.ws.notification.base.faults.TopicPathDialectUnknownFaultException;
+import org.apache.ws.notification.base.impl.XmlBeansTopicExpression;
+import org.apache.ws.notification.base.v2004_06.impl.SubscriptionHome;
+import org.apache.ws.notification.base.v2004_06.impl.WsnNamespaceVersionHolderImpl;
+import org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType;
+import org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl;
+import org.apache.ws.notification.topics.Topic;
+import org.apache.ws.notification.topics.TopicSpaceSet;
+import org.apache.ws.notification.topics.expression.InvalidTopicExpressionException;
+import org.apache.ws.notification.topics.expression.TopicExpression;
+import org.apache.ws.notification.topics.expression.TopicExpressionException;
+import org.apache.ws.notification.topics.expression.TopicPathDialectUnknownException;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.faults.BaseFaultException;
+import org.apache.ws.resource.impl.AbstractResourceContext;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.impl.AbstractResourcePropertiesPortType;
+import org.apache.ws.resource.properties.query.ExpressionEvaluator;
+import org.apache.ws.resource.properties.query.QueryEngine;
+import org.apache.ws.resource.properties.query.QueryExpression;
+import org.apache.ws.resource.properties.query.impl.QueryEngineImpl;
+import org.apache.ws.resource.properties.query.impl.XmlBeansQueryExpression;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument;
+import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument;
+import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument;
+import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument;
+import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicExpressionType;
+import org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
+
+/**
+ * An implementation of the WS-BaseNotification NotificationProducer portType for WSDM-JMX.
+ * Provides a subscribe method for monitoring MBean.
+ * This class is originally from {@link NotificationProducerPortTypeImpl} .
+ *
+ * @author Hideharu Kato
+ * 
+ */
+public class JmxNotificationProducerPortTypeImpl
+   extends AbstractResourcePropertiesPortType
+   implements NotificationProducerPortType
+{
+   private static final Log LOG =
+      LogFactory.getLog( JmxNotificationProducerPortTypeImpl.class.getName(  ) );
+   private static final WsnNamespaceVersionHolder NAMESPACE_SET = new WsnNamespaceVersionHolderImpl(  );
+   private static final QueryEngine QUERY_ENGINE = new QueryEngineImpl();
+
+   /**
+    * Creates a new {@link JmxNotificationProducerPortTypeImpl} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public JmxNotificationProducerPortTypeImpl( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * @see NotificationProducerPortType#getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument)
+    */
+   public GetCurrentMessageResponseDocument getCurrentMessage( GetCurrentMessageDocument requestDoc )
+   {
+      GetCurrentMessageDocument.GetCurrentMessage request   = requestDoc.getGetCurrentMessage(  );
+      TopicExpression                             topicExpr = getTopicExpression( request.getTopic(  ) );
+      Topic[]                                     topics    = evaluateTopicExpression( topicExpr );
+      if ( topics.length == 0 )
+      {
+         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
+                                                         "Given TopicExpression did not match any Topics supported by this NotificationProducer - the WS-BaseN spec mandates that it match exactly one." );
+      }
+
+      if ( topics.length > 1 )
+      {
+         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
+                                                         "Given TopicExpression matched more than one Topic supported by this NotificationProducer - the WS-BaseN spec mandates that it match exactly one." );
+      }
+
+      Topic     topic      = topics[0];
+      XmlObject currentMsg = (XmlObject) topic.getCurrentMessage(  );
+      if ( currentMsg == null )
+      {
+         throw new NoCurrentMessageOnTopicFaultException( NAMESPACE_SET );
+      }
+
+      GetCurrentMessageResponseDocument                           responseDoc =
+         GetCurrentMessageResponseDocument.Factory.newInstance(  );
+      GetCurrentMessageResponseDocument.GetCurrentMessageResponse response =
+         responseDoc.addNewGetCurrentMessageResponse(  );
+      XmlBeanUtils.addChildElement( response, currentMsg );
+      return responseDoc;
+   }
+
+   /**
+    * @see NotificationProducerPortType#subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument)
+    */
+   public SubscribeResponseDocument subscribe( SubscribeDocument requestDoc )
+   {
+      SubscribeDocument.Subscribe request   = requestDoc.getSubscribe(  );
+      TopicExpression             topicExpr = getTopicExpression( request.getTopicExpression(  ) );
+      Topic[]                     topics    = evaluateTopicExpression( topicExpr );
+      if ( topics.length == 0 )
+      {
+         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
+                                                         "Given TopicExpression did not match any Topics supported by this NotificationProducer - the WS-BaseN spec mandates that it match at least one." );
+      }
+
+      Calendar initialTerminationTime = null;
+      if ( request.isSetInitialTerminationTime(  ) )
+      {
+         initialTerminationTime = request.getInitialTerminationTime(  );
+      }
+
+      QueryExpression precondition = null;
+      JmxMonitorType monitorType = null;
+      if ( request.isSetPrecondition(  ) )
+      {
+         precondition = new XmlBeansQueryExpression( request.getPrecondition(  ) );
+         if(precondition.getDialect().equals(WsdmJmxConstants.DIALECT_URI_MONITOR))
+         {
+             try
+             {
+                 ExpressionEvaluator evaluator = QUERY_ENGINE.getEvaluator(precondition.getDialect());
+                 if(evaluator == null)
+                 {
+                     throw new MonitorDialectEvaluatorNotFoundException();
+                 }
+                 monitorType = ((MonitorDialectEvaluator) evaluator).createMonitorType(precondition);
+             }
+             catch(MonitorDialectEvaluatorNotFoundException e)
+             {
+                 LOG.error("Subscribe failed due to internal error: " + e);
+                 
+                 if (LOG.isDebugEnabled())
+                 {
+                     e.printStackTrace(  );
+                 }
+                 throw new SubscribeCreationFailedFaultException(NAMESPACE_SET);
+             }
+             catch(InvalidSchemaException e)
+             {
+                 throw new BaseFaultException(NAMESPACE_SET, e.getLocalizedMessage());
+             }
+         }
+      }
+
+      QueryExpression selector = null;
+      if ( request.isSetSelector(  ) )
+      {
+         selector = new XmlBeansQueryExpression( request.getSelector(  ) );
+      }
+
+      XmlObject subPolicy = null;
+      if ( request.isSetSubscriptionPolicy(  ) )
+      {
+         subPolicy = request.getSubscriptionPolicy(  );
+      }
+
+      EndpointReferenceType subscriptionEPR = null;
+
+      boolean               useNotify        = request.isSetUseNotify(  ) ? request.getUseNotify(  ) : true; // NOTE: we must set the default value ourselves, as XMLBeans does NOT do this for us
+      EndpointReference     producerEPR      = getResource(  ).getEndpointReference(  );
+      SubscriptionHome      subscriptionHome = null;
+      try
+      {
+         subscriptionHome = (SubscriptionHome) new InitialContext(  ).lookup( SubscriptionHome.HOME_LOCATION );
+      }
+      catch ( NamingException ne )
+      {
+         LOG.error( "Subscribe failed due to internal error: " + ne );
+         throw new BaseFaultException( NAMESPACE_SET, "Subscribe failed due to internal server error." );
+      }
+
+      JmxSubscriptionResource subscription = null;
+      try
+      {
+         subscription =
+            (JmxSubscriptionResource) subscriptionHome.create( JmxSubscriptionResource.class,
+                                     new XmlBeansEndpointReference( request.getConsumerReference(  ) ),
+                                     producerEPR,
+                                     initialTerminationTime,
+                                     subPolicy,
+                                     precondition,
+                                     selector,
+                                     getResource(  ).getID(  ),
+                                     ( (AbstractResourceContext) getResourceContext(  ) ).getResourceHomeLocation(  ),
+                                     topicExpr,
+                                     useNotify,
+                                     (WsnNamespaceVersionHolder) getNamespaceSet(  ) );
+         
+         subscription.subscribe(monitorType);
+         
+      }
+      catch(InvalidMonitorPreconditionException e)
+      {
+          throw new BaseFaultException(NAMESPACE_SET, e.getMessage());
+      }
+      catch ( Exception e )
+      {
+         LOG.error( "Subscribe failed due to internal error: " + e );
+         if ( LOG.isDebugEnabled(  ) )
+         {
+            e.printStackTrace(  );
+         }
+
+         throw new SubscribeCreationFailedFaultException( NAMESPACE_SET );
+      }
+      
+      SubscribeResponseDocument  subscribeResponseDoc = SubscribeResponseDocument.Factory.newInstance(  );
+      SubscribeResponseDocument.SubscribeResponse subscribeResponse =
+         subscribeResponseDoc.addNewSubscribeResponse(  );
+      subscriptionEPR =
+         (EndpointReferenceType) ( (XmlObjectWrapper) subscription.getEndpointReference(  ) ).getXmlObject(  );
+      subscribeResponse.setSubscriptionReference( subscriptionEPR );
+      return subscribeResponseDoc;
+   }
+
+   
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected NamespaceVersionHolder getNamespaceSet(  )
+   {
+      return NAMESPACE_SET;
+   }
+
+   private TopicExpression getTopicExpression( TopicExpressionType topicExpressionType )
+   {
+      TopicExpression topicExpr = null;
+      try
+      {
+         topicExpr = new XmlBeansTopicExpression( topicExpressionType );
+      }
+      catch ( InvalidTopicExpressionException ite )
+      {
+         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
+                                                         ite.getLocalizedMessage(  ) );
+      }
+
+      return topicExpr;
+   }
+
+   private Topic[] evaluateTopicExpression( TopicExpression topicExpr )
+   {
+      try
+      {
+         NotificationProducerResource resource      = (NotificationProducerResource) getResource(  );
+         TopicSpaceSet                topicSpaceSet = resource.getTopicSpaceSet(  );
+         return topicSpaceSet.evaluateTopicExpression( topicExpr );
+      }
+      catch ( TopicPathDialectUnknownException tpdue )
+      {
+         throw new TopicPathDialectUnknownFaultException( NAMESPACE_SET,
+                                                          tpdue.getLocalizedMessage(  ) );
+      }
+      catch ( TopicExpressionException tee )
+      {
+         throw new BaseFaultException( NAMESPACE_SET,
+                                       tee.getLocalizedMessage(  ) );
+      }
+   }
+}
\ No newline at end of file