[jboss-svn-commits] JBL Code SVN: r26865 - in labs/jbossesb/workspace/maeste/product/samples/quickstarts: webservice_consumer_wise_binding and 50 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Jun 7 12:05:26 EDT 2009
Author: maeste
Date: 2009-06-07 12:05:25 -0400 (Sun, 07 Jun 2009)
New Revision: 26865
Added:
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/.ant-targets-build.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/build.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/deployment.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxb-binding.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxws-binding.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbm-queue-service.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbmq-queue-service.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jboss-esb.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbossesb-properties.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jndi.properties
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/juddi.properties
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/listener.log
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/log4j.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/readme.txt
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-config-XMLGregorianCalendar.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-response-config.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise2/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise2/test/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ExternalObject.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/InternalObject.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyRequestAction.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyResponseAction.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendEsbMessage.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendJMSMessage.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/lib/ext/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/lib/ext/jbossws-client.jar
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/classes/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/web.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise2/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ComplexObject.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/PingWS.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/view/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/view/index.jsp
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/.ant-targets-build.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/jboss-wsse-client.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.keystore
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.truststore
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/build.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/deployment.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbm-queue-service.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbmq-queue-service.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jboss-esb.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbossesb-properties.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jndi.properties
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/juddi.properties
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/listener.log
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/log4j.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/readme.txt
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise4/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise4/test/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyRequestAction.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyResponseAction.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendEsbMessage.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendJMSMessage.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/lib/ext/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/lib/ext/jbossws-client.jar
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/classes/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/handlers.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/jboss-wsse-server.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/lib/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/web.xml
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.keystore
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.truststore
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wsse_wsa/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wsse_wsa/HelloWorldWS.java
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/view/
labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/view/index.jsp
Log:
added 2 more qs sample: one for wsa+wsse and one for binding files
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/.ant-targets-build.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/.ant-targets-build.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/.ant-targets-build.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,10 @@
+Quickstart_webservice_consumer_wise2
+clean
+deploy
+deploy-jms-dests
+help
+help-quickstarts
+makewar
+run
+undeploy
+undeploy-jms-dests
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/build.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/build.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/build.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,74 @@
+<project name="Quickstart_webservice_consumer_wise_binding" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="additional.deploys" value="smooks-config-XMLGregorianCalendar.xml,smooks-response-config.xml,jaxws-binding.xml" />
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+
+ <property name="war.build.dir" location="${build.dir}/war/classes"/>
+
+
+ <target name="quickstart-specific-checks" depends="assert-ws-available"/>
+
+ <target name="quickstart-specific-assemblies" depends="makewar"/>
+
+ <target name="makewar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="war/src" destdir="${war.build.dir}" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="war/lib/ext" includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <!-- War... -->
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <webinf dir="${basedir}/war/resources/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ <classes dir="${war.build.dir}" includes="**/*.class"/>
+ <fileset dir="${basedir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <classes dir="${basedir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
+
+ <target name="deploy-war" depends="prepare-deployment, makewar">
+ <copy todir="${org.jboss.esb.server.deploy.dir}"
+ file="${build.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="undeploy-war" depends="dependencies">
+ <delete verbose="true" quiet="true"
+ file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="sendjms" depends="compile">
+ <echo>Send JMS message that triggers webservice call</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.test.SendJMSMessage" failonerror="true">
+ <arg value="Jimbo"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+
+ </target>
+
+ <target name="runtest" depends="compile">
+ <echo>Send ESB message that triggers webservice call</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.test.SendEsbMessage" failonerror="true">
+ <arg value="Jimbo"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/deployment.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/deployment.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,7 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+ <!--<depends>jboss.esb:service=SoapUIClientService</depends>-->
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb_reply</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_Request_gw</depends>
+</jbossesb-deployment>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxb-binding.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxb-binding.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxb-binding.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,12 @@
+<jxb:bindings
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
+ version="1.0">
+ <jxb:bindings>
+ <jxb:schemaBindings>
+ <jxb:package name="org.mytest"/>
+ </jxb:schemaBindings>
+ </jxb:bindings>
+
+
+</jxb:bindings>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxws-binding.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxws-binding.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jaxws-binding.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,20 @@
+<jaxws:bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ wsdlLocation="http://127.0.0.1:8080/Quickstart_webservice_consumer_wise_binding/PingWS?wsdl"
+ xmlns="http://java.sun.com/xml/ns/jaxws"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
+
+ <jaxws:bindings node="wsdl:definitions">
+ <package name="org.mytest">
+ <javadoc>Mathutil package</javadoc>
+ </package>
+ </jaxws:bindings>
+ <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema[@targetNamespace='http://wise_binding/pingws']">
+ <jaxb:schemaBindings>
+ <jaxb:package name="org.mytest"/>
+ </jaxb:schemaBindings>
+ </jaxws:bindings>
+
+
+</jaxws:bindings>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbm-queue-service.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbmq-queue-service.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_binding_Request_gw">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jboss-esb.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,68 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
+ parameterReloadSecs="5">
+
+ <providers>
+ <jms-provider name="JBossMQ"
+ connection-factory="ConnectionFactory"
+ jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-URL="localhost">
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_webservice_consumer_wise_binding_Request_gw"
+ />
+ </jms-bus>
+
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_webservice_consumer_wise_binding_esb" />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service category="MyServiceCategory" name="Webserviceconsumer_wise_binding"
+ description="Helloworld Webservice Consumer">
+ <listeners>
+ <jms-listener name="JMS-ESBListener"
+ busidref="quickstartEsbChannel"/>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ is-gateway="true"
+ />
+
+ </listeners>
+ <actions mep="OneWay">
+ <action name="request-mapper"
+ class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.MyRequestAction">
+ </action>
+ <action name="soap-wise-client-action"
+ class="org.jboss.soa.esb.actions.soap.wise.SOAPClient">
+ <property name="wsdl"
+ value="http://127.0.0.1:8080/Quickstart_webservice_consumer_wise_binding/PingWS?wsdl" />
+ <property name="SOAPAction" value="pingComplexObject"/>
+ <property name="EndPointName" value="PingWSPort"/>
+ <property name="SmooksRequestMapper" value="smooks-config-XMLGregorianCalendar.xml"/>
+ <property name="SmooksResponseMapper" value="smooks-response-config.xml"/>
+ <!-- <property name="smooksResponseReport" value="/home/oracle/smooks-response.html"/>-->
+ <property name="smooksRequestReportURL" value="/home/oracle/smooks-request.html"/>
+ <property name="smooksReSPONSEReportURL" value="/home/oracle/smooks-response.html"/>
+
+ <property name="LoggingMessages" value="false" />
+ <property name="serviceName" value="PingWSService"/>
+ <property name="userName" value=""/>
+ <property name="password" value=""/>
+ <property name="binding-files" value="./jaxws-binding.xml" />
+ </action>
+ <action name="response-mapper"
+ class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.MyResponseAction">
+ </action>
+ <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jbossesb-properties.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and others contributors as indicated
+ by the @authors tag. All rights reserved.
+ See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU Lesser General Public License, v. 2.1.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License,
+ v.2.1 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+ These options are described in the JBossESB manual.
+ Defaults are provided here for convenience only.
+
+ Please read through this file prior to using the system, and consider
+ updating the specified entries.
+-->
+<esb
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+ <properties name="core">
+ <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+ <property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+ <property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ </properties>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI"
+ value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"
+ value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
+ <property name="org.jboss.soa.esb.registry.implementationClass"
+ value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass"
+ value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user"
+ value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password"
+ value="password"/>
+ <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass"
+ value="org.apache.ws.scout.transport.RMITransport"/>
+ </properties>
+ <properties name="transports" depends="core">
+ <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+ <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+ <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ </properties>
+ <properties name="connection">
+ <property name="min-pool-size" value="5"/>
+ <property name="max-pool=size" value="10"/>
+ <property name="blocking-timeout-millis" value="5000"/>
+ <property name="abandoned-connection-timeout" value="10000"/>
+ <property name="abandoned-connection-time-interval" value="30000"/>
+ </properties>
+ <properties name="dbstore">
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+ <property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <!--table managed by pool to test for valid connections - created by pool automatically -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
+ <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
+ </properties>
+ <properties name="messagerouting">
+ <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
+ </properties>
+</esb>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jndi.properties
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/jndi.properties 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/juddi.properties
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/juddi.properties (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/juddi.properties 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/listener.log
===================================================================
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/log4j.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/log4j.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="INFO"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/readme.txt
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/readme.txt (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/readme.txt 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,103 @@
+Overview:
+=========
+ This example demonstrates how to use Wise SOAPClient and SmooksMapper to consume a jaxws Web Service in an ESB action.
+ In this quickstart, we use SmooksRequestMapper to transform the ExternalObject(see ExternalObject.java)
+ to JAXWS annotated web service request object (see ComplexObject.java under the wise.tmpDir configured in wise-core.properties)
+ and call a Web Service. We also configure a SmooksResponseMapper to transform the web service result to an ExternalObject.
+
+Running this quickstart:
+========================
+ Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts and a
+ more detailed descripton of the different ways to run the quickstarts.
+
+To Run standalone mode:
+=======================
+ This quickstart will not currently run in standalone mode.
+
+To Run '.esb' archive mode:
+===========================
+ 1. Open wise-core.properties and modify the propertie 'wise.tmpDir' there to suit your environment.
+ 2. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
+ 3. Open another command terminal window in this folder ("Window2"), type 'ant runtest'.
+ 4. Switch back to Application Server console to see the output from the ESB
+
+ 'runtest' target description:
+ In a separate command prompt window, run "ant runtest" to shoot a ESB message
+ into the listener which will then invoke the MyRequestAction, SOAPClient and MyResponse
+ and display it to the console.
+
+ 15:20:46,077 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+ 15:20:46,079 INFO [STDOUT] Request map is: {external=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.ExternalObject at 30a4a7
+ [internal=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.InternalObject at 189ff39[text=Jimbo,number=1],date=Wed Mar 07 04:27:00 GMT 2007]}
+ 15:20:46,079 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+ 15:20:46,099 INFO [STDOUT] parsing WSDL...
+ 15:20:46,136 INFO [STDOUT] generating code...
+ 15:20:46,138 INFO [STDOUT] it/javalinux/wise/ComplexObject.java
+ 15:20:46,157 INFO [STDOUT] it/javalinux/wise/ObjectFactory.java
+ 15:20:46,159 INFO [STDOUT] it/javalinux/wise/PingComplexObject.java
+ 15:20:46,160 INFO [STDOUT] it/javalinux/wise/PingComplexObjectResponse.java
+ 15:20:46,161 INFO [STDOUT] it/javalinux/wise/PingWS.java
+ 15:20:46,162 INFO [STDOUT] it/javalinux/wise/PingWSService.java
+ 15:20:46,164 INFO [STDOUT] it/javalinux/wise/package-info.java
+ 15:20:46,564 INFO [ClassUtil] Loaded 4 classes from 2 URLs through class list file META-INF/content-handlers.inf. Process took 2ms. Turn on debug logging for more info.
+ 15:20:46,982 INFO [ClassUtil] Loaded 4 classes from 2 URLs through class list file META-INF/content-handlers.inf. Process took 2ms. Turn on debug logging for more info.
+ 15:20:47,480 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+ 15:20:47,481 INFO [STDOUT] Response Map is: {InternalObject=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.InternalObject at 956740[text=Jimbo,number=1], ExternalObject=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.ExternalObject at 43f916[internal=org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.InternalObject at 956740[text=Jimbo,number=1],date=Wed Mar 07 00:00:00 GMT 2007]}
+ 15:20:47,481 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+
+
+ 5. When finished, undeploy the application by typing 'ant undeploy'.
+
+Project file descriptions:
+==========================
+
+ jboss-esb.xml:
+ The actions in jboss-esb.xml convert the ESB message into to a webservice parameter Map, make a call
+ to the HelloWorldWS webservice, then print the response on the console. Both juddi.properties
+ and jbossesb-properties.xml are used when the service first boots up for self-registration
+ based upon the service-category and service-name found in the esb-config.xml file.
+
+ jndi.properties:
+ Needed primarily for org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendESBMessage that is fired by ant runtest.
+
+ wise-core.properties
+ Needed to configure SOAPClient based on Wise project.
+
+ smooks-config-XMLGregorianCalendar.xml
+ Smooks style configuration xml. Needed to configure the SmooksRequestMapper.
+
+ smooks-response-config
+ Smooks style configuration xml. Needed to configure the SmooksReMapper.
+
+ log4j.xml:
+ Needed to configure log4J used by both the quickstart and the ESB itself. A listener needs a place to log.
+
+ src/../SendEsbMessage.java:
+ Send a message directly the the ESB internal JMS listener. Demonstrates how one can bypass the
+ gateway and speak directly to an ESB service.
+
+ src/../SendJMSMessage.java:
+ Send a message to JMS gateway listener and speak to an ESB service.
+
+ src/../MyRequestAction.java
+ Convert the message body into a webservice request parameter Map.
+
+ src/../SOAPClient
+ This class is used to make the call to the webservice. It will take the
+ parameters map that MyRequestAction set in message body, call the webservice, then place
+ the response in message.
+
+ src/../MyResponseAction.java
+ Retrieve the webservice response and display it on the console.
+
+ build.xml:
+ Targets and structure description:
+ * the classpath property pulls the jbossesb-properties.xml file and the juddi.properties file to the
+ front of the list
+ * the echoCP task is useful for making sure what you think is in your classpath is actually in your classpath
+ Usage is: ant echoCP > myclasspath.txt
+ This generates a file called myclasspath.txt which can be reviewed in a text editor
+ * the runtest task calls the org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendEsbMessage class and passes in an argument representing
+ the string-based message to be pused into esb message aware listener queue.
+ * the sendjms task calls the org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendJMSMessage class and passes in an argument representing
+ the string-based message to be pused into the queue the gateway is listening on.
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-config-XMLGregorianCalendar.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-config-XMLGregorianCalendar.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-config-XMLGregorianCalendar.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <resource-config selector="global-parameters">
+ <param name="stream.filter.type">SAX</param>
+ </resource-config>
+
+ <resource-config selector="org.jboss.soa.esb.samples.quickstart.webservice__consumer__wise__binding.ExternalObject">
+ <resource>org.milyn.javabean.BeanPopulator</resource>
+ <param name="beanId">complexObject</param>
+ <param name="beanClass">org.mytest.ComplexObject</param>
+ <param name="bindings">
+ <binding property="integerField" type="Integer" selector="internal number" />
+ <binding property="stringField" selector="internal text" />
+ <binding property="calendarField" type="XMLGregorianCalendar" selector="date" />
+ </param>
+ </resource-config>
+<resource-config selector="decoder:XMLGregorianCalendar">
+ <resource>org.jboss.wise.smooks.decoders.XMLGregorianCalendarDecoder</resource>
+ <param name="format">yyyy-MM-dd HH:mm:ss.S z</param>
+ </resource-config>
+
+</smooks-resource-list>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-response-config.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-response-config.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/smooks-response-config.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">
+
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <jb:bindings beanId="ExternalObject" createOnElement="$document" class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.ExternalObject">
+ <jb:expression property="date">
+ decoder = java.util.Calendar.getInstance();
+ decoder.set(messageDate.year, messageDate.month, messageDate.day, 0, 0, 0);
+ return decoder.getTime();
+ </jb:expression>
+ <jb:wiring property="internal" beanIdRef="InternalObject" />
+ </jb:bindings>
+
+ <!-- Wired onto the 'internal' property of 'ExternalObject' (above) -->
+ <jb:bindings beanId="InternalObject" createOnElement="$document" class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.InternalObject">
+ <jb:value property="number" data="integerField" decoder="Integer" />
+ <jb:value property="text" data="stringField" />
+ </jb:bindings>
+
+ <!-- Capture the date fields in a Map. Used in 'date' expression binding on 'ExternalObject' (above) -->
+ <jb:bindings beanId="messageDate" createOnElement="calendarField" class="java.util.HashMap">
+ <jb:value property="day" data="calendarField/day" default="0" />
+ <jb:value property="month" data="calendarField/month" default="0" />
+ <jb:value property="year" data="calendarField/year" default="0" />
+ </jb:bindings>
+
+</smooks-resource-list>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ExternalObject.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ExternalObject.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ExternalObject.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+
+import java.util.Date;
+import java.io.Serializable;
+
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+public class ExternalObject implements Serializable {
+
+ private InternalObject internal;
+
+ private Date date;
+
+ public InternalObject getInternal() {
+ return internal;
+ }
+
+ public void setInternal(InternalObject internal) {
+ this.internal = internal;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/InternalObject.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/InternalObject.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/InternalObject.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+import org.apache.commons.lang.builder.ToStringBuilder;
+import java.io.Serializable;
+
+public class InternalObject implements Serializable {
+
+ private String text;
+
+ private Integer number;
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public Integer getNumber() {
+ return number;
+ }
+
+ public void setNumber(Integer number) {
+ this.number = number;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyRequestAction.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyRequestAction.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyRequestAction.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.actions.ActionUtils;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class MyRequestAction extends AbstractActionLifecycle
+{
+ protected ConfigTree _config;
+
+ public MyRequestAction(ConfigTree config)
+ {
+ _config = config;
+ }
+
+ public Message noOperation(Message message)
+ {
+ return message;
+ }
+
+ /*
+ * Convert the message into a webservice request map.
+ */
+ public Message process(Message message) throws Exception
+ {
+ logHeader();
+ Object msgBody = (Object) message.getBody().get();
+ HashMap requestMap = new HashMap();
+ requestMap.put("external", msgBody);
+ message.getBody().add(requestMap);
+ System.out.println("Request map is: " + requestMap.toString());
+
+ logFooter();
+ return message;
+ }
+
+ public void exceptionHandler(Message message, Throwable exception)
+ {
+ logHeader();
+ System.out.println("!ERROR!");
+ System.out.println(exception.getMessage());
+ System.out.println("For Message: ");
+ System.out.println(message.getBody().get());
+ logFooter();
+ }
+
+ // This makes it easier to read on the console
+ private void logHeader()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+ private void logFooter()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyResponseAction.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyResponseAction.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/MyResponseAction.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.actions.ActionUtils;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import java.util.Map;
+
+public class MyResponseAction extends AbstractActionLifecycle
+{
+ protected ConfigTree _config;
+
+ public MyResponseAction(ConfigTree config)
+ {
+ _config = config;
+ }
+
+ public Message noOperation(Message message)
+ {
+ return message;
+ }
+
+ /*
+ * Retrieve and output the webservice response.
+ */
+ public Message process(Message message) throws Exception
+ {
+
+ logHeader();
+
+ // The "responseLocation" property was set in jboss-esb.xml to
+ // "helloworld-response"
+ Map responseMsg = (Map) message.getBody().get(Body.DEFAULT_LOCATION);
+ System.out.println("Response Map is: " + responseMsg);
+
+ logFooter();
+ return message;
+ }
+
+ public void exceptionHandler(Message message, Throwable exception)
+ {
+ logHeader();
+ System.out.println("!ERROR!");
+ System.out.println(exception.getMessage());
+ System.out.println("For Message: ");
+ System.out.println(message.getBody().get());
+ logFooter();
+ }
+
+ // This makes it easier to read on the console
+ private void logHeader()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+ private void logFooter()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+}
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendEsbMessage.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendEsbMessage.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.test;
+
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.ExternalObject;
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.InternalObject;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPoolContainer;
+import org.jboss.soa.esb.client.ServiceInvoker;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.message.format.MessageType;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+
+public class SendEsbMessage {
+ public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
+
+ /*
+ * Send a message directly the the ESB internal JMS listener. Demonstrates
+ * how one can bypass the gateway and speak directly to an ESB service.
+ */
+ public void sendMessage(String message) throws Exception {
+ // Create the delivery adapter for the target service (cache it)
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass",
+ "org.apache.ws.scout.registry.ConnectionFactoryImpl");
+
+ // Create the delivery adapter for the target service (cache it)
+ ServiceInvoker deliveryAdapter = new ServiceInvoker(
+ "MyServiceCategory", "Webserviceconsumer_wise_binding");
+
+ // Create and populate the request message...
+ Message requestMessage = MessageFactory.getInstance().getMessage(
+ MessageType.JBOSS_XML);
+ ExternalObject external = new ExternalObject();
+ InternalObject internal = new InternalObject();
+ internal.setNumber(new Integer(1));
+ internal.setText(message);
+ external.setInternal(internal);
+ String dateString = "2007-03-07T04:27:00";
+ Date date = (new SimpleDateFormat(DEFAULT_DATE_FORMAT))
+ .parse(dateString);
+ external.setDate(date);
+ requestMessage.getBody().add(external);
+
+ // Deliver the request message synchronously - timeout after 20
+ // seconds...
+ deliveryAdapter.deliverAsync(requestMessage);
+ }
+
+ public static void main(String args[]) throws Exception {
+ SendEsbMessage sm = new SendEsbMessage();
+ sm.sendMessage(args[0]);
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/test/SendJMSMessage.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.test;
+
+import java.util.Properties;
+
+import java.text.SimpleDateFormat;
+import java.text.ParseException;
+import java.util.Date;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.ExternalObject;
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.InternalObject;
+
+public class SendJMSMessage {
+ public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ Properties properties1 = new Properties();
+ properties1.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.jnp.interfaces.NamingContextFactory");
+ properties1.put(Context.URL_PKG_PREFIXES,
+ "org.jboss.naming:org.jnp.interfaces");
+ properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+ InitialContext iniCtx = new InitialContext(properties1);
+
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/quickstart_webservice_consumer_wise_binding_Request_gw");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started");
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException, ParseException {
+
+ QueueSender send = session.createSender(que);
+ ExternalObject external = new ExternalObject();
+ InternalObject internal = new InternalObject();
+ internal.setNumber(new Integer(1));
+ internal.setText(msg);
+ external.setInternal(internal);
+ String dateString = "2007-03-07T04:27:00";
+ Date date = (new SimpleDateFormat(DEFAULT_DATE_FORMAT)).parse(dateString);
+ external.setDate(date);
+ ObjectMessage tm = session.createObjectMessage(external);
+ send.send(tm);
+ send.close();
+ }
+
+
+ public static void main(String args[]) throws Exception
+ {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/lib/ext/jbossws-client.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/lib/ext/jbossws-client.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/web.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/resources/WEB-INF/web.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
+ <servlet>
+ <servlet-name>PingWS</servlet-name>
+ <servlet-class>org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding.PingWS</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>PingWS</servlet-name>
+ <url-pattern>/PingWS</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ComplexObject.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ComplexObject.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/ComplexObject.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+
+
+import java.util.Calendar;
+import java.util.Date;
+
+public class ComplexObject {
+
+ private String stringField;
+
+ private Integer integerField;
+
+ private Calendar calendarField;
+
+ public ComplexObject() {
+ }
+
+ public Calendar getCalendarField() {
+ return calendarField;
+ }
+
+ public void setCalendarField(Calendar calendarField) {
+ this.calendarField = calendarField;
+ }
+
+ public Integer getIntegerField() {
+ return integerField;
+ }
+
+
+ public void setIntegerField(Integer integerField) {
+ this.integerField = integerField;
+ }
+
+ public String getStringField() {
+ return stringField;
+ }
+
+ public void setStringField(String stringField) {
+ this.stringField = stringField;
+ }
+
+ public String toString() {
+ return "ComplexObject:stirngField=" + stringField + ";integerField=" + integerField + ";calendarField=" + calendarField;
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/PingWS.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/PingWS.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_binding/PingWS.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_binding;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.WebResult;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.WebParam;
+
+import org.jboss.logging.Logger;
+
+ at WebService(name = "PingWS", targetNamespace = "http://wise_binding/pingws")
+public class PingWS {
+ @WebMethod(operationName = "pingComplexObject", action = "urn:pingComplexObject")
+ @WebResult(name = "ComplexObject")
+ public ComplexObject pingComplexObject(@WebParam(name = "complexObject")
+ ComplexObject arg0) {
+ String greeting = "Ping with " + arg0.toString();
+ System.out.println(greeting);
+ return arg0;
+
+ }
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/view/index.jsp
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/view/index.jsp (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_binding/war/view/index.jsp 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ This is just a place holder.<br>
+ Verify the that the WS has been deployed by hitting
+ <a href="http://localhost:8080/jbossws">
+ http://localhost:8080/jbossws
+ </a>
+ </body>
+</html>
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/.ant-targets-build.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/.ant-targets-build.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/.ant-targets-build.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,10 @@
+Quickstart_webservice_consumer_wise
+clean
+deploy
+deploy-jms-dests
+help
+help-quickstarts
+makewar
+run
+undeploy
+undeploy-jms-dests
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/jboss-wsse-client.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/jboss-wsse-client.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/jboss-wsse-client.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <key-store-file>META-INF/wsse.keystore</key-store-file>
+ <key-store-type>jks</key-store-type>
+ <key-store-password>jbossws</key-store-password>
+ <trust-store-file>META-INF/wsse.truststore</trust-store-file>
+ <trust-store-type>jks</trust-store-type>
+ <trust-store-password>jbossws</trust-store-password>
+
+ <config>
+ <sign type="x509v3" alias="wsse"/>
+ <requires>
+ <signature/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.keystore
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.keystore
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.truststore
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/META-INF/wsse.truststore
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/build.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/build.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/build.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,74 @@
+<project name="Quickstart_webservice_consumer_wise_wsse_wsa" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="additional.deploys" value="META-INF/**" />
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+
+ <property name="war.build.dir" location="${build.dir}/war/classes"/>
+
+
+ <target name="quickstart-specific-checks" depends="assert-ws-available"/>
+
+ <target name="quickstart-specific-assemblies" depends="makewar"/>
+
+ <target name="makewar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="war/src" destdir="${war.build.dir}" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="war/lib/ext" includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <!-- War... -->
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <webinf dir="${basedir}/war/resources/WEB-INF">
+ <include name="*.*"/>
+ </webinf>
+ <classes dir="${war.build.dir}" includes="**/*.class"/>
+ <fileset dir="${basedir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <classes dir="${basedir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
+
+ <target name="deploy-war" depends="prepare-deployment, makewar">
+ <copy todir="${org.jboss.esb.server.deploy.dir}"
+ file="${build.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="undeploy-war" depends="dependencies">
+ <delete verbose="true" quiet="true"
+ file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="sendjms" depends="compile">
+ <echo>Send JMS message that triggers webservice call</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.test.SendJMSMessage" failonerror="true">
+ <arg value="Jimbo"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+
+ </target>
+
+ <target name="runtest" depends="compile">
+ <echo>Send ESB message that triggers webservice call</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.test.SendEsbMessage" failonerror="true">
+ <arg value="Jimbo"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/deployment.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/deployment.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,6 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb_reply</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_Request_gw</depends>
+</jbossesb-deployment>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbm-queue-service.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbmq-queue-service.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumer_wise_wsse_wsa_Request_gw">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jboss-esb.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,66 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
+ parameterReloadSecs="5">
+
+ <providers>
+ <jms-provider name="JBossMQ"
+ connection-factory="ConnectionFactory"
+ jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-URL="localhost">
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_webservice_consumer_wise_wsse_wsa_Request_gw"
+ />
+ </jms-bus>
+
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter dest-type="QUEUE"
+ dest-name="queue/quickstart_webservice_consumer_wise_wsse_wsa_esb" />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service category="MyServiceCategory" name="Webserviceconsumer_wise_wsse_wsa"
+ description="Helloworld Webservice Consumer">
+ <listeners>
+ <jms-listener name="JMS-ESBListener"
+ busidref="quickstartEsbChannel"/>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ is-gateway="true"
+ />
+
+ </listeners>
+ <actions mep="OneWay">
+ <action name="request-mapper"
+ class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.MyRequestAction">
+ </action>
+ <action name="soapui-client-action"
+ class="org.jboss.soa.esb.actions.soap.wise.SOAPClient">
+ <property name="wsdl"
+ value="http://127.0.0.1:8080/Quickstart_webservice_consumer_wise_wsse_wsa/HelloWorldWS?wsdl" />
+ <property name="operationName" value="sayHello"/>
+ <property name="EndPointName" value="HelloWorldPort"/>
+ <property name="LoggingMessages" value="true" />
+ <property name="enableWSA" value="true"></property>
+ <property name="enableWSSE" value="true" />
+ <property name="serviceName" value="HelloWorldWSService"/>
+ <property name="userName" value=""/>
+ <property name="password" value=""/>
+
+ </action>
+ <action name="response-mapper"
+ class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.MyResponseAction">
+ </action>
+ <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore">
+
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jbossesb-properties.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and others contributors as indicated
+ by the @authors tag. All rights reserved.
+ See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU Lesser General Public License, v. 2.1.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License,
+ v.2.1 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+ These options are described in the JBossESB manual.
+ Defaults are provided here for convenience only.
+
+ Please read through this file prior to using the system, and consider
+ updating the specified entries.
+-->
+<esb
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+ <properties name="core">
+ <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+ <property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+ <property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ </properties>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI"
+ value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"
+ value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
+ <property name="org.jboss.soa.esb.registry.implementationClass"
+ value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass"
+ value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user"
+ value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password"
+ value="password"/>
+ <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass"
+ value="org.apache.ws.scout.transport.RMITransport"/>
+ </properties>
+ <properties name="transports" depends="core">
+ <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+ <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+ <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ </properties>
+ <properties name="connection">
+ <property name="min-pool-size" value="5"/>
+ <property name="max-pool=size" value="10"/>
+ <property name="blocking-timeout-millis" value="5000"/>
+ <property name="abandoned-connection-timeout" value="10000"/>
+ <property name="abandoned-connection-time-interval" value="30000"/>
+ </properties>
+ <properties name="dbstore">
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+ <property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <!--table managed by pool to test for valid connections - created by pool automatically -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
+ <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
+ </properties>
+ <properties name="messagerouting">
+ <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
+ </properties>
+</esb>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jndi.properties
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/jndi.properties 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/juddi.properties
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/juddi.properties (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/juddi.properties 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/listener.log
===================================================================
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/log4j.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/log4j.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="INFO"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/readme.txt
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/readme.txt (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/readme.txt 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,69 @@
+Overview:
+=========
+ This quickstart demonstrates how to configure SOAPClient to enable WS-Security and WS-Addressing to call
+ a webservice.
+
+Running this quickstart:
+========================
+ Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts and a
+ more detailed descripton of the different ways to run the quickstarts.
+
+To Run standalone mode:
+=======================
+ This quickstart will not currently run in standalone mode.
+
+To Run '.esb' archive mode:
+===========================
+ 1. Open wise-core.properties and modify the propertie 'wise.tmpDir' there to suit your environment.
+ 2. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
+ 3. Open another command terminal window in this folder ("Window2"), type 'ant runtest'.
+ 4. Switch back to Application Server console to see the output from the ESB
+ 5. When finished, undeploy the application by typing 'ant undeploy'.
+
+Project file descriptions:
+==========================
+
+ jboss-esb.xml:
+ The actions in jboss-esb.xml convert the ESB message into to a webservice parameter Map, make a call
+ to the HelloWorldWS webservice, then print the response on the console. Both juddi.properties
+ and jbossesb-properties.xml are used when the service first boots up for self-registration
+ based upon the service-category and service-name found in the esb-config.xml file.
+
+ jndi.properties:
+ Needed primarily for org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendESBMessage that is fired by ant runtest.
+
+ wise-core.properties
+ Needed to configure SOAPClient based on Wise project.
+
+ log4j.xml:
+ Needed to configure log4J used by both the quickstart and the ESB itself. A listener needs a place to log.
+
+ src/../SendEsbMessage.java:
+ Send a message directly the the ESB internal JMS listener. Demonstrates how one can bypass the
+ gateway and speak directly to an ESB service.
+
+ src/../SendJMSMessage.java:
+ Send a message to JMS gateway listener and speak to an ESB service.
+
+ src/../MyRequestAction.java
+ Convert the message body into a webservice request parameter Map.
+
+ src/../SOAPClient
+ This class is used to make the call to the webservice. It will take the
+ parameters map that MyRequestAction set in message body, call the webservice, then place
+ the response in message.
+
+ src/../MyResponseAction.java
+ Retrieve the webservice response and display it on the console.
+
+ build.xml:
+ Targets and structure description:
+ * the classpath property pulls the jbossesb-properties.xml file and the juddi.properties file to the
+ front of the list
+ * the echoCP task is useful for making sure what you think is in your classpath is actually in your classpath
+ Usage is: ant echoCP > myclasspath.txt
+ This generates a file called myclasspath.txt which can be reviewed in a text editor
+ * the runtest task calls the org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendEsbMessage class and passes in an argument representing
+ the string-based message to be pused into esb message aware listener queue.
+ * the sendjms task calls the org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise.SendJMSMessage class and passes in an argument representing
+ the string-based message to be pused into the queue the gateway is listening on.
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyRequestAction.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyRequestAction.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyRequestAction.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.actions.ActionUtils;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import java.util.HashMap;
+
+public class MyRequestAction extends AbstractActionLifecycle
+{
+ protected ConfigTree _config;
+
+ public MyRequestAction(ConfigTree config)
+ {
+ _config = config;
+ }
+
+ public Message noOperation(Message message)
+ {
+ return message;
+ }
+
+ /*
+ * Convert the message into a webservice request map.
+ */
+ public Message process(Message message) throws Exception
+ {
+ logHeader();
+ String msgBody = (String) message.getBody().get();
+ HashMap requestMap = new HashMap();
+
+ // add paramaters to the web service request map
+ requestMap.put("toWhom", msgBody);
+
+ // The "paramsLocation" property was set in jboss-esb.xml to
+ // "helloworld-request-parameters"
+ message.getBody().add(requestMap);
+ System.out.println("Request map is: " + requestMap.toString());
+
+ logFooter();
+ return message;
+ }
+
+ public void exceptionHandler(Message message, Throwable exception)
+ {
+ logHeader();
+ System.out.println("!ERROR!");
+ System.out.println(exception.getMessage());
+ System.out.println("For Message: ");
+ System.out.println(message.getBody().get());
+ logFooter();
+ }
+
+ // This makes it easier to read on the console
+ private void logHeader()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+ private void logFooter()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+}
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyResponseAction.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyResponseAction.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/MyResponseAction.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.actions.ActionUtils;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import java.util.Map;
+
+public class MyResponseAction extends AbstractActionLifecycle
+{
+ protected ConfigTree _config;
+
+ public MyResponseAction(ConfigTree config)
+ {
+ _config = config;
+ }
+
+ public Message noOperation(Message message)
+ {
+ return message;
+ }
+
+ /*
+ * Retrieve and output the webservice response.
+ */
+ public Message process(Message message) throws Exception
+ {
+
+ logHeader();
+
+ // The "responseLocation" property was set in jboss-esb.xml to
+ // "helloworld-response"
+ Map responseMsg = (Map) message.getBody().get(Body.DEFAULT_LOCATION);
+ System.out.println("Response Map is: " + responseMsg);
+
+ logFooter();
+ return message;
+ }
+
+ public void exceptionHandler(Message message, Throwable exception)
+ {
+ logHeader();
+ System.out.println("!ERROR!");
+ System.out.println(exception.getMessage());
+ System.out.println("For Message: ");
+ System.out.println(message.getBody().get());
+ logFooter();
+ }
+
+ // This makes it easier to read on the console
+ private void logHeader()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+ private void logFooter()
+ {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+}
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendEsbMessage.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendEsbMessage.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.test;
+
+import org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPoolContainer;
+import org.jboss.soa.esb.client.ServiceInvoker;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.message.format.MessageType;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+
+public class SendEsbMessage
+{
+ /*
+ * Send a message directly the the ESB internal JMS listener. Demonstrates
+ * how one can bypass the gateway and speak directly to an ESB service.
+ */
+ public void sendMessage(String message) throws Exception
+ {
+ // Create the delivery adapter for the target service (cache it)
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass",
+ "org.apache.ws.scout.registry.ConnectionFactoryImpl");
+
+ // Create the delivery adapter for the target service (cache it)
+ ServiceInvoker deliveryAdapter = new ServiceInvoker("MyServiceCategory",
+ "Webserviceconsumer_wise_wsse_wsa");
+
+
+ // Create and populate the request message...
+ Message requestMessage = MessageFactory.getInstance().getMessage(
+ MessageType.JBOSS_XML);
+
+ requestMessage.getBody().add(message);
+
+ // Deliver the request message synchronously - timeout after 20
+ // seconds...
+ deliveryAdapter.deliverAsync(requestMessage);
+ }
+
+ public static void main(String args[]) throws Exception
+ {
+ SendEsbMessage sm = new SendEsbMessage();
+ sm.sendMessage(args[0]);
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wise_wsse_wsa/test/SendJMSMessage.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,86 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_wsse_wsa.test;
+
+import java.util.Properties;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SendJMSMessage {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ Properties properties1 = new Properties();
+ properties1.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.jnp.interfaces.NamingContextFactory");
+ properties1.put(Context.URL_PKG_PREFIXES,
+ "org.jboss.naming:org.jnp.interfaces");
+ properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+ InitialContext iniCtx = new InitialContext(properties1);
+
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/quickstart_webservice_consumer_wise_wsse_wsa_Request_gw");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started");
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ ObjectMessage tm = session.createObjectMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+
+ public static void main(String args[]) throws Exception
+ {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/lib/ext/jbossws-client.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/lib/ext/jbossws-client.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/handlers.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/handlers.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/handlers.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/samples/logicalhandler"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>WSAddressing Handler</handler-name>
+ <handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingServerHandler</handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/jboss-wsse-server.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/jboss-wsse-server.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/jboss-wsse-server.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <key-store-file>WEB-INF/wsse.keystore</key-store-file>
+ <key-store-password>jbossws</key-store-password>
+ <trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
+ <trust-store-password>jbossws</trust-store-password>
+
+ <config>
+ <sign type="x509v3" alias="wsse"/>
+ <requires>
+ <signature/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/web.xml (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/web.xml 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
+ <servlet>
+ <servlet-name>HelloWorldWS</servlet-name>
+ <servlet-class>org.jboss.soa.esb.samples.quickstart.webservice_consumer_wsse_wsa.HelloWorldWS</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>HelloWorldWS</servlet-name>
+ <url-pattern>/HelloWorldWS</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.keystore
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.keystore
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.truststore
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/resources/WEB-INF/wsse.truststore
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wsse_wsa/HelloWorldWS.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wsse_wsa/HelloWorldWS.java (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumer_wsse_wsa/HelloWorldWS.java 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumer_wsse_wsa;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.WebParam;
+import org.jboss.ws.annotation.EndpointConfig;
+
+/**
+ * The endpoint implementation. This is currently based on the jbossws
+ * native stack implementation, thus uses the pre-defined WS-Security
+ * endpoint configuration through the @EndpointConfig.
+ * The WS-Addressing support is triggered manually adding its handler
+ * through the provided WEB-INF/handlers.xml file.
+ *
+ * @author stefano.maestri at javalinux.it
+ *
+ */
+ at WebService(name = "HelloWorld", targetNamespace = "http://wise/wssewsa/helloworld")
+ at SOAPBinding( style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE )
+ at EndpointConfig(configName = "Standard WSSecurity Endpoint")
+ at HandlerChain(file = "WEB-INF/handlers.xml")
+public class HelloWorldWS {
+ @WebMethod
+ @WebResult( name = "result" )
+ public String sayHello( @WebParam( name = "toWhom" ) String toWhom ) {
+ return "Hello World Greeting for '" + toWhom + "' on " + new java.util.Date();
+ }
+}
+
Added: labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/view/index.jsp
===================================================================
--- labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/view/index.jsp (rev 0)
+++ labs/jbossesb/workspace/maeste/product/samples/quickstarts/webservice_consumer_wise_wsse_wsa/war/view/index.jsp 2009-06-07 16:05:25 UTC (rev 26865)
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ This is just a place holder.<br>
+ Verify the that the WS has been deployed by hitting
+ <a href="http://localhost:8080/jbossws">
+ http://localhost:8080/jbossws
+ </a>
+ </body>
+</html>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list