ws-pubscribe-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lisc...@apache.org
Subject svn commit: r158387 [3/3] - in incubator/hermes/trunk/src/examples: ./ broker/ broker/WEB-INF/ pubsubclient/ pubsubclient/WEB-INF/
Date Mon, 21 Mar 2005 00:41:16 GMT
Added: incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config.wsdd
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config.wsdd?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config.wsdd (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config.wsdd Sun Mar 20
16:41:11 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+ <globalConfiguration>
+  <parameter name="adminPassword" value="admin"/>
+  <parameter name="disablePrettyXML" value="true"/>
+  <parameter name="sendXsiTypes" value="true"/>
+  <parameter name="sendMultiRefs" value="true"/>
+  <parameter name="sendXMLDeclaration" value="true"/>
+  <requestFlow>
+   <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </requestFlow>
+  <responseFlow>
+   <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </responseFlow>
+ </globalConfiguration>
+ <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
+ <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
+ <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
+
+ <service name="AdminService" provider="java:MSG">
+  <parameter name="allowedMethods" value="AdminService"/>
+  <parameter name="enableRemoteAdmin" value="false"/>
+  <parameter name="className" value="org.apache.axis.utils.Admin"/>
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+ </service>
+
+ <service name="Version" provider="java:RPC">
+  <parameter name="allowedMethods" value="getVersion"/>
+  <parameter name="className" value="org.apache.axis.Version"/>
+ </service>
+
+ <service name="SubscriptionEndPort" provider="java:WSRF" style="document" use="literal">
+</service>
+
+ <service name="NotificationPort" provider="java:WSRF" style="document" use="literal">
+ </service>
+
+ <transport name="http">
+  <requestFlow>
+   <handler type="URLMapper"/>
+   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
+  </requestFlow>
+  <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
+  <parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
+  <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
+  <parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
+ </transport>
+
+ <transport name="local">
+  <responseFlow>
+   <handler type="LocalResponder"/>
+  </responseFlow>
+ </transport>
+
+</deployment>

Added: incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config_wse.wsdd
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config_wse.wsdd?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config_wse.wsdd (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/WEB-INF/server-config_wse.wsdd Sun Mar
20 16:41:11 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+ <globalConfiguration>
+  <parameter name="adminPassword" value="admin"/>
+  <parameter name="disablePrettyXML" value="true"/>
+  <parameter name="sendXsiTypes" value="true"/>
+  <parameter name="sendMultiRefs" value="true"/>
+  <parameter name="sendXMLDeclaration" value="true"/>
+  <requestFlow>
+   <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </requestFlow>
+  <responseFlow>
+   <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </responseFlow>
+ </globalConfiguration>
+ <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
+ <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
+ <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
+
+ <service name="AdminService" provider="java:MSG">
+  <parameter name="allowedMethods" value="AdminService"/>
+  <parameter name="enableRemoteAdmin" value="false"/>
+  <parameter name="className" value="org.apache.axis.utils.Admin"/>
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+ </service>
+
+ <service name="Version" provider="java:RPC">
+  <parameter name="allowedMethods" value="getVersion"/>
+  <parameter name="className" value="org.apache.axis.Version"/>
+ </service>
+
+ <service name="SubscriptionEndPort" provider="java:WSRF" style="document" use="literal">
+</service>
+
+ <service name="NotificationPort" provider="java:WSRFMsg" style="message" use="literal">
+ </service>
+
+ <transport name="http">
+  <requestFlow>
+   <handler type="URLMapper"/>
+   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
+  </requestFlow>
+  <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
+  <parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
+  <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
+  <parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
+ </transport>
+
+ <transport name="local">
+  <responseFlow>
+   <handler type="LocalResponder"/>
+  </responseFlow>
+ </transport>
+
+</deployment>

Added: incubator/hermes/trunk/src/examples/pubsubclient/build.properties
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/build.properties?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/build.properties (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/build.properties Sun Mar 20 16:41:11
2005
@@ -0,0 +1,11 @@
+base.url=http://localhost:8080/hermes/services
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# hermes webapp located somewhere other than the default location of
+# ../webapps/hermes (e.g. ${env.CATALINA_HOME}/webapps/hermes)
+hermes.webapp.dir=d:/projects/hermes/trunk/target/hermes-incubating-1.0-alpha-SNAPSHOT/bin/hermes-incubating-1.0-alpha-SNAPSHOT/webapps/hermes
+
+# Uncomment and modify the below lines if you require a proxy to connect to external web
sites
+#http.proxyHost=proxy.xyz.com
+#http.proxyPort=8088
+#http.nonProxyHosts=localhost 

Added: incubator/hermes/trunk/src/examples/pubsubclient/build.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/build.xml?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/build.xml (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/build.xml Sun Mar 20 16:41:11 2005
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+
+<project name="broker_example" default="usage" basedir=".">
+
+   <property environment="env" />   
+   <property file="build.properties" />
+
+   <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+   <property name="ant.home" value="env.ANT_HOME"/>
+<property name="base.dir" value="${basedir}"/>    
+   <target name="init">
+     
+     <available file="../../webapps/hermes" type="dir" property="dist.hermes.webapp.dir"
value="../../webapps/hermes" />         
+     <condition property="hermes.webapp.dir" value="${dist.hermes.webapp.dir}">
+        <isset property="dist.hermes.webapp.dir"/>
+     </condition>     
+          
+     <fail unless="hermes.webapp.dir" message="webapp dir ../../webapps/hermes does not
exist." />    
+     <echo>Using webapp dir: ${hermes.webapp.dir}</echo>    
+
+
+    <mkdir dir="build/classes"/>
+    <copy file="jndi-config.xml" todir="build/classes/"/>
+
+     <path id="hermes.classpath.id">
+       <pathelement location="build/classes" />
+       <fileset dir="./lib" includes="*.jar" />
+       <pathelement location="${hermes.webapp.dir}/WEB-INF/classes" />
+       <fileset dir="${hermes.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+       <pathelement location="${activation.jar}" />
+       <pathelement location="${mail.jar}" />
+     </path>
+     <property name="hermes.classpath" refid="hermes.classpath.id" />
+         
+      </target>
+  
+   <target name="build" depends="init">
+    <javac srcdir="." destdir="build/classes" classpathref="hermes.classpath.id">
+      <include name="*.java"/>
+    </javac>
+  </target>
+  
+  <target name="execute" depends="build">
+       <java classname="PubSubClient" classpathref="hermes.classpath.id"  fork="true">
+        <arg value="${base.dir}"/>
+              </java>
+  </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/hermes/trunk/src/examples/pubsubclient/client-config.wsdd
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/client-config.wsdd?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/client-config.wsdd (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/client-config.wsdd Sun Mar 20 16:41:11
2005
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment name="defaultClientConfig"
+            xmlns="http://xml.apache.org/axis/wsdd/"
+            xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <globalConfiguration>
+  <requestFlow>
+    <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </requestFlow>
+
+  <responseFlow>
+    <handler type="java:org.apache.axis.message.addressing.handler.AddressingHandler"/>
+  </responseFlow>
+ </globalConfiguration>
+
+ <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
+ <transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>
+ <transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/>
+
+ <typeMapping 
+      deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" 
+      encodingStyle="" 
+      qname="wsa:EndpointReferenceType" 
+      serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
+      type="java:org.apache.axis.message.addressing.EndpointReferenceType"/>
+
+ <typeMapping 
+      deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" 
+      encodingStyle="" 
+      qname="wsa:ReferencePropertiesType" 
+      serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" 
+      type="java:org.apache.axis.message.addressing.ReferencePropertiesType"/>
+
+ <typeMapping 
+      deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" 
+      encodingStyle="" 
+      qname="wsa:AttributedURI" 
+      serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" 
+      type="java:org.apache.axis.message.addressing.AttributedURI"/>
+
+ <typeMapping 
+      deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" 
+      encodingStyle="" 
+      qname="wsa:AttributedQName" 
+      serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" 
+      type="java:org.apache.axis.message.addressing.AttributedQName" />
+
+ <typeMapping 
+      deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" 
+      encodingStyle="" 
+      qname="wsa:ServiceNameType" 
+      serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" 
+      type="java:org.apache.axis.message.addressing.ServiceNameType" />
+
+</deployment>
+

Added: incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wse.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wse.xml?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wse.xml (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wse.xml Sun Mar 20 16:41:11
2005
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+   <global>
+      
+      <resource name="DefaultParameters" type="org.apache.ws.util.jndi.DefaultParameters">
+         <resourceParams>
+            <parameter>
+               <name>factory</name>
+               <value>org.apache.ws.util.jndi.BeanFactory</value>
+            </parameter>           
+            <parameter>
+               <name>resourceKeyClassName</name>
+               <value>org.apache.ws.resource.impl.SimpleTypeResourceKey</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="timer/ContainerTimer" type="org.apache.ws.util.timer.TimerManagerImpl">
+         <resourceParams>
+            <parameter>
+               <name>factory</name>
+               <value>org.apache.ws.util.jndi.BeanFactory</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="topic/eval/simple" type="org.apache.ws.notification.topics.impl.SimpleTopicExpressionEvaluator">
+         <resourceParams>
+	     <parameter>
+		<name>factory</name>
+		<value>org.apache.ws.util.jndi.BeanFactory</value>
+	     </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="topic/ContainerTopicExpressionEngine" type="org.apache.ws.notification.topics.impl.TopicExpressionEngineImpl">
+         <resourceParams>
+      	     <parameter>
+      		<name>factory</name>
+      		<value>org.apache.ws.util.jndi.BeanFactory</value>
+      	     </parameter>
+         </resourceParams>
+      </resource>           
+   </global>
+
+
+
+   <service name="SubscriptionEndPort">
+      <resource name="home" type="org.apache.ws.eventing.pubsub.SubscriptionHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.apache.ws.eventing.services.SubscriberService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.apache.ws.eventing.pubsub.Subscription</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://ws.apache.org/eventing/services/SubscriptionEndPort</value>
+            </parameter>            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://schemas.xmlsoap.org/ws/2004/08/eventing}Identifier</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+   </service>      
+   
+      <service name="NotificationPort">
+
+              <resourceLink name="home" target="/wsrf/services/SubscriptionEndPort/home"
/>
+<!--
+      <resource name="home" type="org.apache.ws.eventing.SubscriptionHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.apache.ws.eventing.services.subscriber.SubscriberService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.apache.ws.eventing.Subscription</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://ws.apache.org/eventing/services/NotificationPort</value>
+            </parameter>            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://schemas.xmlsoap.org/ws/2004/08/eventing}Identifier</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+      -->
+   </service>
+</jndiConfig>
+    

Added: incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wsn.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wsn.xml?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wsn.xml (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/jndi-config_wsn.xml Sun Mar 20 16:41:11
2005
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+   <global>
+      
+      <resource name="DefaultParameters" type="org.apache.ws.util.jndi.DefaultParameters">
+         <resourceParams>
+            <parameter>
+               <name>factory</name>
+               <value>org.apache.ws.util.jndi.BeanFactory</value>
+            </parameter>           
+            <parameter>
+               <name>resourceKeyClassName</name>
+               <value>org.apache.ws.resource.impl.SimpleTypeResourceKey</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="timer/ContainerTimer" type="org.apache.ws.util.timer.TimerManagerImpl">
+         <resourceParams>
+            <parameter>
+               <name>factory</name>
+               <value>org.apache.ws.util.jndi.BeanFactory</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="topic/eval/simple" type="org.apache.ws.notification.topics.impl.SimpleTopicExpressionEvaluator">
+         <resourceParams>
+	     <parameter>
+		<name>factory</name>
+		<value>org.apache.ws.util.jndi.BeanFactory</value>
+	     </parameter>
+         </resourceParams>
+      </resource>
+      
+      <resource name="topic/ContainerTopicExpressionEngine" type="org.apache.ws.notification.topics.impl.TopicExpressionEngineImpl">
+         <resourceParams>
+      	     <parameter>
+      		<name>factory</name>
+      		<value>org.apache.ws.util.jndi.BeanFactory</value>
+      	     </parameter>
+         </resourceParams>
+      </resource>          
+      
+   </global>
+
+  
+
+   <service name="NotificationPort">
+      <resource name="home" type="org.apache.ws.notification.pubsub.SubscriptionHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.apache.ws.notification.base.impl.SubscriberService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.apache.ws.notification.pubsub.Subscription</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://ws.apache.org/notification/services/NotificationPort</value>
+            </parameter>            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification}Identifier</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+   </service>
+
+   <service name="SubscriptionEndPort">
+      <resource name="home" type="org.apache.ws.notification.pubsub.SubscriptionHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.apache.ws.notification.base.impl.SubscriberService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.apache.ws.notification.pubsub.Subscription</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://ws.apache.org/notification/services/NotificationPort</value>
+            </parameter>            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification}Identifier</value>
+            </parameter>
+         </resourceParams>
+      </resource>
+   </service>      
+</jndiConfig>
+    

Added: incubator/hermes/trunk/src/examples/pubsubclient/topicspace.xml
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/examples/pubsubclient/topicspace.xml?view=auto&rev=158387
==============================================================================
--- incubator/hermes/trunk/src/examples/pubsubclient/topicspace.xml (added)
+++ incubator/hermes/trunk/src/examples/pubsubclient/topicspace.xml Sun Mar 20 16:41:11 2005
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wstop:topicSpace name="TopicSpaceExample1"
+targetNamespace="http://example.org/topicSpace/example1"
+xmlns:tns="http://example.org/topicSpace/example1"
+xmlns:xyz="http://example.org/anotherNamespace"
+xmlns:wstop=
+"http://www.ibm.com/xmlns/stdwip/web-services/WS-Topics" >
+
+<wstop:topic name="t1">
+    <wstop:topic name="t2"/>
+    <wstop:topic name="t3" />
+</wstop:topic>
+
+<wstop:topic name="t4">
+    <wstop:topic name="t5"/>
+    <wstop:topic name="t6"/>
+</wstop:topic>
+
+<wstop:topic name="t7">
+    <wstop:topic name="t8"/>
+    <wstop:topic name="t9"/>
+    <wstop:topic name="t10">
+        <wstop:topic name="t11"/>
+        <wstop:topic name="t12"/>
+    </wstop:topic>
+</wstop:topic>
+</wstop:topicSpace>
\ No newline at end of file



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


Mime
View raw message