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 2004/11/29 23:27:04 UTC
svn commit: r106962 - in incubator/muse/trunk/src/site/content/tutorial: disk template template/src template/src/java template/src/java/com template/src/java/com/hp template/src/java/com/hp/template template/src/java/org template/src/java/org/apache template/src/java/org/apache/template template/src/webapp template/src/wsdl
Author: ips
Date: Mon Nov 29 14:27:02 2004
New Revision: 106962
URL: http://svn.apache.org/viewcvs?view=rev&rev=106962
Log:
Added:
incubator/muse/trunk/src/site/content/tutorial/disk/build.properties
incubator/muse/trunk/src/site/content/tutorial/disk/build.xml
incubator/muse/trunk/src/site/content/tutorial/disk/client.xml
incubator/muse/trunk/src/site/content/tutorial/template/
incubator/muse/trunk/src/site/content/tutorial/template/src/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/template/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/template/TemplateDiscoveryAgent.java
incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/template/
incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/template/TemplateDiscoveryAgent.java
incubator/muse/trunk/src/site/content/tutorial/template/src/webapp/
incubator/muse/trunk/src/site/content/tutorial/template/src/webapp/discovery-agent-registry.xml_
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/metrics.xml
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/notification.xml
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/resourcestate.xml
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/template.wsdl
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrl.xml
incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrpoptional.xml
Added: incubator/muse/trunk/src/site/content/tutorial/disk/build.properties
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/disk/build.properties?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/disk/build.properties Mon Nov 29 14:27:02 2004
@@ -0,0 +1 @@
+endpoint.url=http://localhost:8080/muse/services/disk
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/disk/build.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/disk/build.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/disk/build.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,148 @@
+<?xml version="1.0"?>
+
+<project name="disk-example" default="usage" basedir=".">
+
+ <property environment="env" />
+ <property file="build.properties" />
+ <property file="../build.properties" />
+
+ <!-- workaround for those IDEs that don't set ant.home as they should -->
+ <property name="ant.home" value="${env.ANT_HOME}"/>
+
+ <property name="jmuws.home" location="../.." />
+ <property name="generated.src.dir" location="generated/src"/>
+ <property name="generated.classes.dir" location="generated/classes"/>
+ <property name="src.dir" location="src" />
+ <property name="disk.wsdl" location="${src.dir}/wsdl/disk.wsdl" />
+
+ <target name="init">
+
+ <available file="${jmuws.home}/webapps/muse" type="dir" property="internal.muse.webapp.dir" value="${jmuws.home}/webapps/muse" />
+ <available file="${jmuws.home}/target/muse" type="dir" property="dist.muse.webapp.dir" value="${jmuws.home}/target/muse" />
+ <condition property="muse.webapp.dir" value="${internal.muse.webapp.dir}">
+ <isset property="internal.muse.webapp.dir"/>
+ </condition>
+ <condition property="muse.webapp.dir" value="${dist.muse.webapp.dir}">
+ <isset property="dist.muse.webapp.dir"/>
+ </condition>
+
+ <fail unless="muse.webapp.dir" message="webapp dir ${jmuws.home}/webapps/muse does not exist." />
+ <echo>Using webapp dir: ${muse.webapp.dir}</echo>
+
+ <path id="jmuws.classpath.id">
+ <pathelement location="${generated.classes.dir}" />
+ <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+ <fileset dir="${muse.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+ <pathelement location="${activation.jar}" />
+ <pathelement location="${mail.jar}" />
+ </path>
+ <property name="jmuws.classpath" refid="jmuws.classpath.id" />
+
+ </target>
+
+ <target name="generate"
+ depends="init"
+ description="generate Axis service classes and XMLBeans types for the disk WSDL">
+
+ <property name="tmp.dir" location="${muse.webapp.dir}/_tmp_" />
+ <mkdir dir="${tmp.dir}" />
+ <copy file="${disk.wsdl}" todir="${tmp.dir}" overwrite="true" />
+ <taskdef name="wsdmWsdl2Java" classname="org.apache.ws.tool.taskdef.WsdmWsdl2JavaTask" classpath="${jmuws.classpath}" />
+ <wsdmWsdl2Java wsdl="${tmp.dir}/disk.wsdl"
+ srcDestDir="${generated.src.dir}"
+ classesDestDir="${generated.classes.dir}"
+ classpath="${jmuws.classpath}"
+ debug="off"
+ proxyHost="${http.proxyHost}"
+ proxyPort="${http.proxyPort}"
+ nonProxyHosts="${http.nonProxyHosts}"
+ wsdmWsdlLocation="/wsdl" />
+ <delete dir="${tmp.dir}" />
+
+ </target>
+
+ <target name="compile"
+ depends="init"
+ description="compile all classes below generated/classes directory">
+
+ <javac srcdir="${src.dir}"
+ destdir="${generated.classes.dir}"
+ classpathref="jmuws.classpath.id"
+ debug="on" />
+
+ <javac srcdir="${generated.src.dir}"
+ destdir="${generated.classes.dir}"
+ classpathref="jmuws.classpath.id"
+ debug="on" />
+
+ </target>
+
+ <target name="deploy"
+ depends="init"
+ description="deploys the disk service to the muse webapp">
+
+ <copy file="${disk.wsdl}" todir="${muse.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />
+ <echo>Deploying disk service classes to ${muse.webapp.dir}/WEB-INF/classes/...</echo>
+ <copy todir="${muse.webapp.dir}/WEB-INF/classes">
+ <fileset dir="${generated.classes.dir}" />
+ </copy>
+
+ <antcall target="copy-discovery-agent-xml" />
+
+ <taskdef name="wsddUpdater" classname="org.apache.ws.platform.axis.tool.WsddUpdater" classpathref="jmuws.classpath.id" />
+ <property name="config.wsdd" location="${muse.webapp.dir}/WEB-INF/server-config.wsdd" /> <!-- normalize path -->
+ <wsddUpdater configWsdd="${muse.webapp.dir}/WEB-INF/server-config.wsdd">
+ <wsddPaths dir="${generated.src.dir}" includes="**/deploy.wsdd" />
+ </wsddUpdater>
+
+ </target>
+
+ <target name="copy-discovery-agent-xml">
+ <available file="${muse.webapp.dir}/WEB-INF/classes/discovery-agent-registry.xml" property="discovery.present"/>
+ <antcall target="backupDiscovery"/>
+ <copy todir="${muse.webapp.dir}/WEB-INF/classes" file="${src.dir}/webapp/discovery-agent-registry.xml"/>
+ </target>
+
+ <target name="backupDiscovery" if="discovery.present">
+ <property name="webapp.discovery.file" value="${muse.webapp.dir}/WEB-INF/classes/discovery-agent-registry.xml" />
+ <tstamp>
+ <format property="timestamp" pattern="dMMMMyyyy" locale="en"/>
+ </tstamp>
+
+ <property name="webapp.timestamp.discovery.file" location="${webapp.discovery.file}${timestamp}" />
+ <property name="new.discovery.file" value="${muse.webapp.dir}/WEB-INF/classes/discovery-agent-registry.xml" />
+
+ <move file="${webapp.discovery.file}" toFile="${webapp.timestamp.discovery.file}" />
+ <echo>Moved file ${webapp.discovery.file} to file ${webapp.timestamp.discovery.file}</echo>
+ <echo>If you'd like both discoveries to run, please copy the contents of ${webapp.timestamp.discovery.file} to ${webapp.discovery.file}</echo>
+ </target>
+
+ <target name="run"
+ depends="init, compile, deploy"
+ description="run the disk service unit test">
+
+ <junit fork="yes" printsummary="yes" dir="${jmuws.home}">
+ <classpath>
+ <pathelement location="${muse.webapp.dir}/WEB-INF" />
+ <path refid="jmuws.classpath.id" />
+ </classpath>
+ <formatter type="plain"/>
+ <sysproperty key="log4j.configuration" value="${muse.webapp.dir}/WEB-INF/classes/log4j.properties"/>
+ <test name="org.apache.ws.test.DiskServiceTestCase" haltonfailure="no" outfile="test-results"/>
+ </junit>
+
+ </target>
+
+ <target name="clean" description="delete the generated source and class files">
+ <delete dir="generated" />
+ </target>
+
+ <target name="usage">
+ <java classname="org.apache.tools.ant.Main">
+ <arg value="-buildfile" />
+ <arg value="${ant.file}" />
+ <arg value="-projecthelp" />
+ </java>
+ </target>
+
+</project>
Added: incubator/muse/trunk/src/site/content/tutorial/disk/client.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/disk/client.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/disk/client.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+
+<project name="client" default="sendRequest" basedir=".">
+
+ <property file="build.properties"/>
+ <property file="../build.properties"/>
+ <property file="../../build.properties"/>
+ <property name="muse.home" location="../../.." />
+
+ <target name="init">
+
+ <available file="${muse.home}/webapps/muse" type="dir" property="muse.webapp.dir" value="${muse.home}/webapps/muse" />
+ <available file="${muse.home}/target/muse" type="dir" property="muse.webapp.dir" value="${muse.home}/target/muse" />
+ <fail unless="muse.webapp.dir" message="webapp dir ${muse.home}/webapps/muse does not exist." />
+ <echo>Using webapp dir: ${muse.webapp.dir}</echo>
+ <path id="muse.classpath.id">
+ <pathelement location="${muse.webapp.dir}/WEB-INF/classes" />
+ <fileset dir="${muse.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+ <pathelement location="${activation.jar}" />
+ <pathelement location="${mail.jar}" />
+ </path>
+ <property name="muse.classpath" refid="muse.classpath.id" />
+
+ </target>
+
+ <target name="sendRequest" depends="init"
+ description="Sends a SOAP Request given a XML request file. Please use ant -Dxml=<request file> for invocation.">
+
+ <fail unless="xml" message="Please use -Dxml=<request file> for invocation."/>
+ <echo>Endpoint URL: ${endpoint.url}</echo>
+ <echo>Request File: ${xml}</echo>
+ <java classname="org.apache.ws.soap.SOAPClient" classpathref="muse.classpath.id">
+ <arg value="${endpoint.url}"/>
+ <arg value="${xml}"/>
+ </java>
+
+ </target>
+
+</project>
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/template/TemplateDiscoveryAgent.java
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/template/TemplateDiscoveryAgent.java?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/java/com/hp/template/TemplateDiscoveryAgent.java Mon Nov 29 14:27:02 2004
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ * Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P. *
+ *=============================================================================*/
+package org.apache.template;
+
+import axis.org.apache.service.template.TemplateWsdmServiceWSResource;
+import org.apache.ws.resource.discovery.DiscoveryAgent;
+import org.apache.ws.resource.discovery.RegistrationManager;
+import org.apache.ws.resource.discovery.impl.DiscoveryAgentProperty;
+
+/**
+ * Example Discovery agent that can be customized for specific application requirements.
+ */
+public class TemplateDiscoveryAgent
+ implements DiscoveryAgent
+{
+ private final static String DEFAULT_ID = "1111";
+ /**
+ *
+ * @see DiscoveryAgent#discover(String, RegistrationManager, DiscoveryAgentProperty[])
+ */
+ public void discover( String agentName,
+ RegistrationManager registrationManager,
+ DiscoveryAgentProperty[] agentProps )
+ {
+ // Here we use a property in the XML discover description.
+ String resourceId = DEFAULT_ID;
+ DiscoveryAgentProperty agentProp = agentProps[0];
+ if ( agentProp.getId( ).equals( "ResourceID" ) )
+ {
+ resourceId = agentProp.getValue( );
+ }
+
+ try
+ {
+ // Create and register an instance of the Template service.
+ registrationManager.register( new TemplateWsdmServiceWSResource( resourceId ) );
+
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace( );
+ }
+
+ return;
+ }
+}
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/template/TemplateDiscoveryAgent.java
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/template/TemplateDiscoveryAgent.java?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/java/org/apache/template/TemplateDiscoveryAgent.java Mon Nov 29 14:27:02 2004
@@ -0,0 +1,47 @@
+/*=============================================================================*
+ * Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P. *
+ *=============================================================================*/
+package org.apache.template;
+
+import axis.org.apache.service.template.TemplateWsdmServiceWSResource;
+import org.apache.ws.resource.discovery.DiscoveryAgent;
+import org.apache.ws.resource.discovery.RegistrationManager;
+import org.apache.ws.resource.discovery.impl.DiscoveryAgentProperty;
+
+/**
+ * Example Discovery agent that can be customized for specific application requirements.
+ */
+public class TemplateDiscoveryAgent
+ implements DiscoveryAgent
+{
+ private final static String DEFAULT_ID = "1111";
+ /**
+ *
+ * @see DiscoveryAgent#discover(String, RegistrationManager, DiscoveryAgentProperty[])
+ */
+ public void discover( String agentName,
+ RegistrationManager registrationManager,
+ DiscoveryAgentProperty[] agentProps )
+ {
+ // Here we use a property in the XML discover description.
+ String resourceId = DEFAULT_ID;
+ DiscoveryAgentProperty agentProp = agentProps[0];
+ if ( agentProp.getId( ).equals( "ResourceID" ) )
+ {
+ resourceId = agentProp.getValue( );
+ }
+
+ try
+ {
+ // Create and register an instance of the Template service.
+ registrationManager.register( new TemplateWsdmServiceWSResource( resourceId ) );
+
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace( );
+ }
+
+ return;
+ }
+}
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/webapp/discovery-agent-registry.xml_
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/webapp/discovery-agent-registry.xml_?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/webapp/discovery-agent-registry.xml_ Mon Nov 29 14:27:02 2004
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<discovery-config xmlns='http://apache.org/ws/resource/discovery/xml' >
+ <agent-list>
+ <agent>
+ <name>Template Discovery Agent</name>
+ <class>org.apache.template.TemplateDiscoveryAgent</class>
+ <!-- Put any name/value pairs required by the Discovery agent in the properties section -->
+ <properties>
+ <property id="ResourceID">4321</property>
+ </properties>
+ </agent>
+ </agent-list>
+</discovery-config>
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/metrics.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/metrics.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/metrics.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+ <!-- These will already be in the WSDL since they are required for compliancy. They are here to make this XML valid. -->
+ <definitions name="WsdmWebServiceDefinition"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:muws-wsdl="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/wsdl"
+ >
+
+ <schema elementFormDefault="qualified"
+ targetNamespace="http://apache.org/service/template"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:muws-xs="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema">
+
+ <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema"
+ schemaLocation="../spec/wsdm/MUWS-0_5.xsd"/>
+
+ <!-- Add as part of the Resource Properties document schema -->
+ <!-- MUWS Resource Metrics properties -->
+ <element ref="muws-xs:CurrentTime"/>
+
+ </schema>
+
+ <!-- Add as child elements of the "portType" element -->
+ <!-- muws-wsdl:Metrics operation -->
+ <operation name="ResetAll">
+ <input name="ResetAllRequest" message="muws-wsdl:ResetAllRequest"/>
+ <output name="ResetAllResponse" message="muws-wsdl:ResetAllResponse"/>
+ </operation>
+
+ <!-- Add as child elements of the "binding" element -->
+ <!-- muws-wsdl:Metrics operation -->
+ <operation name="ResetAll">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </definitions>
+
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/notification.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/notification.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/notification.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+
+ <!-- Assure that the WS-BN and WS-Topics NS definition are included as an attribute in your existing "definitions" declaration -->
+ <definitions name="WsdmWebServiceDefinition"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsnt="http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification"
+ xmlns:wstop="http://www.ibm.com/xmlns/stdwip/web-services/WS-Topics"
+ >
+
+ <!-- Add as a child element to the "definitions" element -->
+ <import namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification"
+ location="../spec/wsn/WS-BaseNotification-1_0.wsdl" />
+
+ <!-- Add as child elements to the "schema" element -->
+ <xsd:import namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-Topics" schemaLocation="../spec/wsn/WS-Topics-1_0.xsd" />
+ <element name="TopicSpace" type="wstop:TopicSpaceType"/>
+
+ <!-- Add as part of the Resource Properties document schema -->
+ <!-- WS-BaseNotifs NotificationProducer properties -->
+ <element ref="wsnt:Topic" minOccurs="1" maxOccurs="unbounded" />
+ <element ref="wsnt:FixedTopicSet" minOccurs="1" maxOccurs="1" />
+ <element ref="wsnt:TopicExpressionDialects" minOccurs="1" maxOccurs="unbounded" />
+ <!-- TopicSpace property for WS-RP Resource Property Value Change Notifications -->
+ <element ref="tns:TopicSpace" minOccurs="1" maxOccurs="unbounded"/>
+
+ <!-- Add as child elements of the "portType" element -->
+ <!-- wsnt:NotificationProducer operations -->
+ <operation name="Subscribe">
+ <input message="wsnt:SubscribeRequest" />
+ <output message="wsnt:SubscribeResponse" />
+ <fault name="ResourceUnknownFault" message="wsnt:ResourceUnknownFault" />
+ <fault name="SubscribeCreationFailedFault" message="wsnt:SubscribeCreationFailedFault" />
+ <fault name="TopicPathDialectUnknownFault" message="wsnt:TopicPathDialectUnknownFault" />
+ </operation>
+ <operation name="GetCurrentMessage">
+ <input message="wsnt:GetCurrentMessageRequest" />
+ <output message="wsnt:GetCurrentMessageResponse" />
+ <fault name="ResourceUnknownFault" message="wsnt:ResourceUnknownFault" />
+ <fault name="InvalidTopicExpressionFault" message="wsnt:InvalidTopicExpressionFault" />
+ <fault name="TopicNotSupportedFault" message="wsnt:TopicNotSupportedFault" />
+ <fault name="NoCurrentMessageOnTopicFault" message="wsnt:NoCurrentMessageOnTopicFault" />
+ </operation>
+
+ <!-- Add as child elements of the "binding" element -->
+ <!-- wsnt:NotificationProducer operations -->
+ <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>
+
+ </definitions>
+
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/resourcestate.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/resourcestate.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/resourcestate.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+ <!-- These will already be in the WSDL since they are required for compliancy. They are here to make this XML valid. -->
+ <definitions name="WsdmWebServiceDefinition"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:muws-wsdl="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/wsdl"
+ >
+
+ <schema elementFormDefault="qualified"
+ targetNamespace="http://apache.org/service/template"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:muws-xs="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema">
+
+ <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema"
+ schemaLocation="../spec/wsdm/MUWS-0_5.xsd"/>
+
+ <!-- Add as part of the Resource Properties document schema -->
+ <!-- MUWS Resource State properties -->
+ <element ref="muws-xs:ResourceState"/>
+
+ </schema>
+
+ <!-- Add as child elements of the "portType" element -->
+ <!-- muws-wsdl:ResourceState operations -->
+ <operation name="Start">
+ <input name="StartRequest" message="muws-wsdl:StartRequest"/>
+ <output name="StartResponse" message="muws-wsdl:StartResponse"/>
+ </operation>
+ <operation name="Stop">
+ <input name="StopRequest" message="muws-wsdl:StopRequest"/>
+ <output name="StopResponse" message="muws-wsdl:StopResponse"/>
+ </operation>
+
+ <!-- Add as child elements of the "binding" element -->
+ <!-- muws-wsdl:ResourceState operations -->
+ <operation name="Start">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="Stop">
+ <soap:operation style="document"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+
+ </definitions>
+
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/template.wsdl
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/template.wsdl?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/template.wsdl Mon Nov 29 14:27:02 2004
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+
+<!-- A Template WSDL that can act as a starting point for defining a MUWS compliant web service -->
+<!-- All required resource properties and operations are defined. All optional ones are not. -->
+
+<definitions name="WsdmWebServiceDefinition"
+ targetNamespace="http://apache.org/service/template"
+ xmlns:tns="http://apache.org/service/template"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsrp="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceProperties"
+ xmlns:muws-wsdl="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/wsdl">
+
+ <import namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceProperties"
+ location="../spec/wsrf/WS-ResourceProperties-1_1.wsdl"/>
+ <import namespace="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/wsdl"
+ location="../spec/wsdm/MUWS-0_5.wsdl"/>
+
+ <types>
+ <schema elementFormDefault="qualified"
+ targetNamespace="http://apache.org/service/template"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:muws-xs="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema">
+
+ <xsd:import namespace="http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema"
+ schemaLocation="../spec/wsdm/MUWS-0_5.xsd"/>
+
+ <!-- Resource Properties Document Schema -->
+ <!-- Includes MuWS required Resource Properties -->
+ <element name="TemplateSystemProperties">
+ <complexType>
+ <sequence>
+ <!-- MUWS Resource Identity properties -->
+ <element ref="muws-xs:ResourceId"/>
+ <element ref="muws-xs:Name" minOccurs="0"/>
+ <element ref="muws-xs:Version" minOccurs="0"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+ <portType name="TemplatePortType" wsrp:ResourceProperties="tns:TemplateSystemProperties">
+ <!-- Required wsrp:GetResourceProperty operation -->
+ <!-- See other Muse examples for definitions of SetResourceProperty, GetMultipleResourceProperties and QueryResourceProperties -->
+ <operation name="GetResourceProperty">
+ <input name="GetResourcePropertyRequest" message="wsrp:GetResourcePropertyRequest"/>
+ <output name="GetResourcePropertyResponse" message="wsrp:GetResourcePropertyResponse"/>
+ <fault name="ResourceUnknownFault" message="wsrp:ResourceUnknownFault"/>
+ <fault name="InvalidResourcePropertyQNameFault" message="wsrp:InvalidResourcePropertyQNameFault"/>
+ </operation>
+ </portType>
+
+ <binding name="TemplateSoapHttpBinding" type="tns:TemplatePortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <!-- wsrp:GetResourceProperty operation -->
+ <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>
+ </binding>
+
+ <service name="TemplateWsdmService">
+ <!-- Note: the port name becomes the service name in the wsdd generated by Axis Wsdl2Java -->
+ <port name="template" binding="tns:TemplateSoapHttpBinding">
+ <soap:address location="http://127.0.0.1:8080/wsdm/services/template"/>
+ </port>
+ </service>
+</definitions>
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrl.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrl.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrl.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+ <!-- Assure that the WS-BN and WS-Topics NS definition are included as an attribute in your existing "definitions" declaration -->
+ <definitions name="WsdmWebServiceDefinition"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsrl="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceLifetime"
+ >
+
+ <!-- Add as a child element to the "definitions" element -->
+ <import namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceLifetime"
+ location="../spec/wsrf/WS-ResourceLifetime-1_1.wsdl" />
+
+ <!-- Add as child elements to the "schema" element -->
+ <xsd:import namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceLifetime"
+ schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_1.xsd" />
+
+ <!-- Add as part of the Resource Properties document schema -->
+ <!-- WS-ResourceLifetime ScheduledResourceTermination (ie - SetTerminationTime()) properties -->
+ <element ref="wsrl:CurrentTime" minOccurs="1" maxOccurs="1" />
+ <element ref="wsrl:TerminationTime" minOccurs="1" maxOccurs="1" />
+
+ <!-- Add as child elements of the "portType" element -->
+ <!-- wsrl:ImmediateResourceTermination operation -->
+ <operation name="Destroy">
+ <input message="wsrl:DestroyRequest" />
+ <output message="wsrl:DestroyResponse" />
+ <fault name="ResourceUnknownFault" message="wsrl:ResourceUnknownFault" />
+ <fault name="ResourceNotDestroyedFault" message="wsrl:ResourceNotDestroyedFault" />
+ </operation>
+
+ <!-- wsrl:ScheduledResourceTermination operation -->
+ <operation name="SetTerminationTime">
+ <input message="wsrl:SetTerminationTimeRequest" />
+ <output message="wsrl:SetTerminationTimeResponse" />
+ <fault name="ResourceUnknownFault" message="wsrl:ResourceUnknownFault" />
+ <fault name="UnableToSetTerminationTimeFault" message="wsrl:UnableToSetTerminationTimeFault" />
+ <fault name="TerminationTimeChangeRejectedFault" message="wsrl:TerminationTimeChangeRejectedFault" />
+ </operation>
+
+ <!-- Add as child elements of the "binding" element -->
+ <!-- wsrl:ImmediateResourceTermination operation -->
+ <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>
+
+ <!-- wsrl:ScheduledResourceTermination operation -->
+ <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>
+
+ </definitions>
+
\ No newline at end of file
Added: incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrpoptional.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrpoptional.xml?view=auto&rev=106962
==============================================================================
--- (empty file)
+++ incubator/muse/trunk/src/site/content/tutorial/template/src/wsdl/wsrpoptional.xml Mon Nov 29 14:27:02 2004
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+
+ <!-- These will already be in the WSDL since they are required for compliancy. They are here to make this XML valid. -->
+ <definitions name="WsdmWebServiceDefinition"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsrp="http://www.ibm.com/xmlns/stdwip/web-services/WS-ResourceProperties"
+ >
+ <!-- Add as child elements of the "portType" element -->
+ <operation name="GetMultipleResourceProperties">
+ <input name="GetMultipleResourcePropertiesRequest" message="wsrp:GetMultipleResourcePropertiesRequest"/>
+ <output name="GetMultipleResourcePropertiesResponse" message="wsrp:GetMultipleResourcePropertiesResponse"/>
+ <fault name="ResourceUnknownFault" message="wsrp:ResourceUnknownFault"/>
+ <fault name="InvalidResourcePropertyQNameFault" message="wsrp:InvalidResourcePropertyQNameFault"/>
+ </operation>
+ <operation name="SetResourceProperties">
+ <input name="SetResourcePropertiesRequest" message="wsrp:SetResourcePropertiesRequest"/>
+ <output name="SetResourcePropertiesResponse" message="wsrp:SetResourcePropertiesResponse"/>
+ <fault name="ResourceUnknownFault" message="wsrp:ResourceUnknownFault"/>
+ <fault name="InvalidResourcePropertyQNameFault" message="wsrp:InvalidResourcePropertyQNameFault"/>
+ <fault name="InvalidSetResourcePropertiesRequestContentFault" message="wsrp:InvalidSetResourcePropertiesRequestContentFault"/>
+ <fault name="UnableToModifyResourcePropertyFault" message="wsrp:UnableToModifyResourcePropertyFault"/>
+ <fault name="SetResourcePropertyRequestFailedFault" message="wsrp:SetResourcePropertyRequestFailedFault"/>
+ </operation>
+ <operation name="QueryResourceProperties">
+ <input name="QueryResourcePropertiesRequest" message="wsrp:QueryResourcePropertiesRequest"/>
+ <output name="QueryResourcePropertiesResponse" message="wsrp:QueryResourcePropertiesResponse"/>
+ <fault name="ResourceUnknownFault" message="wsrp:ResourceUnknownFault"/>
+ <fault name="InvalidResourcePropertyQNameFault" message="wsrp:InvalidResourcePropertyQNameFault"/>
+ <fault name="UnknownQueryExpressionDialectFault" message="wsrp:UnknownQueryExpressionDialectFault"/>
+ <fault name="InvalidQueryExpressionFault" message="wsrp:InvalidQueryExpressionFault"/>
+ <fault name="QueryEvaluationErrorFault" message="wsrp:QueryEvaluationErrorFault"/>
+ </operation>
+
+ <!-- Add as child elements of the "binding" element -->
+ <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="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>
+ <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>
+
+ </definitions>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org