[jboss-svn-commits] JBossWS SVN: r868 - in tags/jbossws-1.0.3.GA: . src/main/resources/samples src/main/resources/samples/wsbpel src/test/java/org/jboss/test/ws/samples src/test/java/org/jboss/test/ws/samples/wsbpel src/test/java/org/jboss/test/ws/samples/wsbpel/hello src/test/resources/samples src/test/resources/samples/wsbpel src/test/resources/samples/wsbpel/hello src/test/resources/samples/wsbpel/hello/META-INF src/test/resources/samples/wsbpel/hello/WEB-INF src/test/resources/samples/wsbpel/hello/WEB-INF/classes src/test/resources/samples/wsbpel/hello/bpel src/test/resources/samples/wsbpel/hello/bpel/META-INF
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 30 21:44:07 EDT 2006
Author: alex.guizar at jboss.com
Date: 2006-08-30 21:44:01 -0400 (Wed, 30 Aug 2006)
New Revision: 868
Added:
tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/
tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/build.xml
tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/
tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/
tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/BpelHelloTestCase.java
tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloPT.java
tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.java
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/application-client.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/jboss-client.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/.cvsignore
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/bpel-application.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/web.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/webservices.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/bpel-definition.xml
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.bpel
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.wsdl
tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/wstools-config.xml
Modified:
tags/jbossws-1.0.3.GA/build-samples.xml
tags/jbossws-1.0.3.GA/src/main/resources/samples/build.xml
Log:
JBWS-868
Modified: tags/jbossws-1.0.3.GA/build-samples.xml
===================================================================
--- tags/jbossws-1.0.3.GA/build-samples.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/build-samples.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -267,6 +267,19 @@
</copy>
<copy todir="${build.src.samples.dir}/wsaddressing/resources">
<fileset dir="${test.resources.dir}/samples/wsaddressing"/>
+ </copy>
+
+ <!-- samples/wsbpel -->
+ <mkdir dir="${build.src.samples.dir}/wsbpel/java"/>
+ <mkdir dir="${build.src.samples.dir}/wsbpel/resources"/>
+
+ <copy todir="${build.src.samples.dir}/wsbpel/java">
+ <fileset dir="${test.java.dir}">
+ <include name="org/jboss/test/ws/samples/wsbpel/**"/>
+ </fileset>
+ </copy>
+ <copy todir="${build.src.samples.dir}/wsbpel/resources">
+ <fileset dir="${test.resources.dir}/samples/wsbpel" />
</copy>
<!-- samples/wseventing -->
Modified: tags/jbossws-1.0.3.GA/src/main/resources/samples/build.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/main/resources/samples/build.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/main/resources/samples/build.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -28,6 +28,7 @@
<ant antfile="${basedir}/secureejb/build.xml" target="jars"/>
<ant antfile="${basedir}/swa/build.xml" target="jars"/>
<ant antfile="${basedir}/wsaddressing/build.xml" target="jars"/>
+ <ant antfile="${basedir}/wsbpel/build.xml" target="jars"/>
<ant antfile="${basedir}/wseventing/build.xml" target="jars"/>
<ant antfile="${basedir}/wssecurity/build.xml" target="jars"/>
Added: tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/build.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/build.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/build.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id$ -->
+
+<project default="main" basedir=".." name="JBossWS Examples">
+
+ <property name="chapter" value="wsbpel" />
+ <property name="java.dir" value="${basedir}/${chapter}/java" />
+ <property name="resources.dir" value="${basedir}/${chapter}/resources" />
+
+ <import file="${basedir}/common/imported-build.xml" />
+
+ <target name="process-zips">
+ <!-- Package the BPEL process and related WSDL interfaces -->
+ <zip destfile="${build.test.dir}/libs/jbossws-samples-wsbpel-hello-process.zip">
+ <fileset dir="${build.test.dir}/resources/samples/wsbpel/hello/bpel" />
+ </zip>
+ </target>
+
+ <target name="check-jbpmbpel">
+ <property name="jboss.server.deploy.jbpmbpel"
+ value="${jboss.server.deploy}/jbpm-bpel.sar" />
+ <available property="jbpmbpel.available"
+ file="${jboss.server.deploy.jbpmbpel}" />
+ </target>
+
+ <target name="generate-sources"
+ depends="process-zips,check-jbpmbpel"
+ if="jbpmbpel.available"
+ description="Generate the deployment resources.">
+
+ <!-- Define the servicegen ant task -->
+ <taskdef name="servicegen"
+ classname="org.jbpm.bpel.ant.ServiceGeneratorTask">
+ <classpath>
+ <path location="${common.resources}" />
+ <path refid="client.classpath" />
+ <path location="${jboss.lib}/dom4j.jar" />
+ <path location="${jboss.server.lib}/commons-collections.jar" />
+ <path location="${jboss.server.deploy.jbpmbpel}" />
+ <fileset dir="${jboss.server.deploy.jbpmbpel}">
+ <include name="jbpm*.jar" />
+ <include name="commons-lang*.jar" />
+ <include name="jaxen*.jar" />
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <!-- Generate binding and service elements -->
+ <servicegen processfile="${build.test.dir}/libs/jbossws-samples-wsbpel-hello-process.zip"
+ outputdir="${build.test.dir}/wstools/resources/samples/wsbpel/hello/WEB-INF/wsdl" />
+
+ <!-- Define the wstools ant task -->
+ <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
+ <classpath location="${common.resources}" />
+ <classpath refid="client.classpath" />
+ <classpath path="${build.test.dir}"/>
+ </taskdef>
+
+ <!-- samples/wsbpel -->
+ <wstools dest="${build.test.dir}/wstools/resources/samples/wsbpel/hello/WEB-INF"
+ config="${resources.dir}/hello/wstools-config.xml" />
+
+ <move todir="${build.test.dir}/wstools/java">
+ <fileset dir="${build.test.dir}/wstools/resources/samples/wsbpel/hello/WEB-INF"
+ includes="org/**" />
+ </move>
+ </target>
+
+ <!--
+ Build the test deployments
+ -->
+ <target name="jars"
+ depends="compile,copy-resources,generate-sources,compile-generated,copy-generated"
+ if="jbpmbpel.available"
+ description="build the deployments">
+
+ <!-- jbossws-samples-wsbpel -->
+ <war warfile="${build.test.dir}/libs/jbossws-samples-wsbpel-hello.war"
+ webxml="${build.test.dir}/resources/samples/wsbpel/hello/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.class" />
+ <include name="org/jboss/test/ws/samples/wsbpel/hello/HelloPT.class" />
+ <include name="org/jboss/test/ws/samples/wsbpel/hello/HelloPT_Impl.class" />
+ </classes>
+ <webinf dir="${build.test.dir}/resources/samples/wsbpel/hello/WEB-INF">
+ <include name="webservices.xml" />
+ <include name="classes/bpel-application.xml" />
+ </webinf>
+ <webinf dir="${build.test.dir}/wstools/resources/samples/wsbpel/hello/WEB-INF">
+ <include name="jaxrpc-mapping.xml" />
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <jar destfile="${build.test.dir}/libs/jbossws-samples-wsbpel-hello-client.jar">
+ <fileset dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.class" />
+ <include name="org/jboss/test/ws/samples/wsbpel/hello/HelloPT.class" />
+ </fileset>
+ <metainf dir="${build.test.dir}/resources/samples/wsbpel/hello/META-INF">
+ <include name="application-client.xml" />
+ <include name="jboss-client.xml" />
+ </metainf>
+ <metainf dir="${build.test.dir}/wstools/resources/samples/wsbpel/hello/WEB-INF">
+ <include name="jaxrpc-mapping.xml" />
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ </target>
+
+ <!--
+ Run the testsuite
+ -->
+ <target name="tests"
+ depends="jars"
+ description="run the testsuite"
+ if="jbpmbpel.available">
+ <antcall target="test">
+ <param name="test" value="${chapter}" />
+ </antcall>
+ </target>
+
+</project>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/main/resources/samples/wsbpel/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/BpelHelloTestCase.java
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/BpelHelloTestCase.java 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/BpelHelloTestCase.java 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
+ * published by JBoss Inc.; either version 1.0 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+package org.jboss.test.ws.samples.wsbpel.hello;
+
+import java.util.Properties;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Call;
+
+import junit.framework.TestCase;
+
+/**
+ * @author Alejandro Guízar
+ * @version $Revision$ $Date: 2006/08/21 01:06:10 $
+ */
+public class BpelHelloTestCase extends TestCase {
+
+ private HelloWorldService service;
+
+ public BpelHelloTestCase(String name) {
+ super(name);
+ }
+
+ protected void setUp() throws Exception {
+ InitialContext ctx = getInitialContext();
+ // JNDI name of service interface (in application-client.xml)
+ String serviceRefName = "service/Hello";
+ // lookup service interface in environment context
+ service = (HelloWorldService) ctx.lookup("java:comp/env/" + serviceRefName);
+ }
+
+ protected InitialContext getInitialContext() throws NamingException {
+ // prepare enviroment
+ Properties env = new Properties();
+ // JNDI name of client environment context (in jboss-client.xml)
+ env.setProperty("j2ee.clientName", "hello-client");
+ // initial context contains property above, plus those in jndi.properties
+ return new InitialContext(env);
+ }
+
+ public void testSayHello_proxy() throws Exception {
+ // obtain dynamic proxy for web service port
+ HelloPT proxy = service.getCallerPort();
+ // use proxy as local java object
+ String greeting = proxy.sayHello("Popeye");
+ // check proper greeting
+ assertEquals("Hello, Popeye!", greeting);
+ }
+
+ public void testSayHello_dii() throws Exception {
+ // obtain port type namespace; it MAY differ from service
+ String portTypeNS = service.getServiceName().getNamespaceURI();
+ // obtain dynamic invocation instance
+ Call call = service.createCall(new QName(portTypeNS, "callerPort"), "sayHello");
+ // invoke operation using request/response interaction mode
+ String greeting = (String) call.invoke(new Object[] { "Olive" });
+ // check proper greeting
+ assertEquals("Hello, Olive!", greeting);
+ }
+}
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/BpelHelloTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloPT.java
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloPT.java 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloPT.java 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Aug 30 20:35:42 CDT 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package org.jboss.test.ws.samples.wsbpel.hello;
+public interface HelloPT extends java.rmi.Remote
+{
+
+ public java.lang.String sayHello(java.lang.String name) throws java.rmi.RemoteException;
+}
Property changes on: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloPT.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.java
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.java 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.java 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,19 @@
+/*
+* JBoss, the OpenSource EJB server
+* Distributable under LGPL license. See terms of license at gnu.org.
+*/
+
+//Auto Generated by jbossws - Please do not edit!!!
+
+package org.jboss.test.ws.samples.wsbpel.hello;
+
+
+import javax.xml.rpc.*;
+
+
+public interface HelloWorldService extends javax.xml.rpc.Service
+{
+
+ public org.jboss.test.ws.samples.wsbpel.hello.HelloPT getCallerPort() throws ServiceException;
+
+}
Property changes on: tags/jbossws-1.0.3.GA/src/test/java/org/jboss/test/ws/samples/wsbpel/hello/HelloWorldService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/application-client.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/application-client.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/application-client.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application-client version="1.4" 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/application-client_1_4.xsd">
+
+ <display-name>Hello World Service Client</display-name>
+
+ <service-ref>
+
+ <!-- JNDI name of service interface in client environment context -->
+ <service-ref-name>service/Hello</service-ref-name>
+ <!-- service interface class -->
+ <service-interface>org.jbpm.bpel.tutorial.hello.HelloWorldService</service-interface>
+ <!-- placeholder for published WSDL document -->
+ <wsdl-file>USE_JBOSS_CLIENT_XML_OVERRIDE</wsdl-file>
+ <!-- Java<->XML mapping file -->
+ <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+
+ <port-component-ref>
+ <!-- service endpoint interface class -->
+ <service-endpoint-interface>org.jbpm.bpel.tutorial.hello.HelloPT</service-endpoint-interface>
+ </port-component-ref>
+
+ </service-ref>
+
+</application-client>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/jboss-client.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/jboss-client.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/jboss-client.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+<jboss-client>
+
+ <!-- JNDI name of client environment context -->
+ <jndi-name>hello-client</jndi-name>
+
+ <service-ref>
+ <!-- service-ref element to configure -->
+ <service-ref-name>service/Hello</service-ref-name>
+ <!-- published WSDL document -->
+ <wsdl-override>http://localhost:8080/hello/caller?wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/META-INF/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/.cvsignore
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/.cvsignore 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/.cvsignore 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,2 @@
+wsdl
+jaxrpc-mapping.xml
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/bpel-application.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/bpel-application.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/bpel-application.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<bpelApplication name="helloWorld" xmlns="http://jbpm.org/bpel"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jbpm.org/bpel
+ http://jbpm.org/bpel/bpel_application_1_0.xsd" />
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/classes/bpel-application.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/web.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/web.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/web.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" 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">
+
+ <!-- Hello World -->
+ <servlet>
+ <servlet-name>callerServlet</servlet-name>
+ <!-- service implementation bean class -->
+ <servlet-class>org.jbpm.bpel.tutorial.hello.HelloPT_Impl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>callerServlet</servlet-name>
+ <!-- endpoint location -->
+ <url-pattern>/caller</url-pattern>
+ </servlet-mapping>
+
+ <!-- jBPM BPEL Partner Integration -->
+ <servlet>
+ <servlet-name>integrationServlet</servlet-name>
+ <servlet-class>org.jbpm.bpel.integration.jms.IntegrationServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>integrationServlet</servlet-name>
+ <url-pattern>/integration</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/webservices.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/webservices.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/webservices.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<webservices version="1.1"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">
+
+ <webservice-description>
+
+ <!-- descriptive name for the service -->
+ <webservice-description-name>Hello World</webservice-description-name>
+ <!-- WSDL service file -->
+ <wsdl-file>WEB-INF/wsdl/service.wsdl</wsdl-file>
+ <!-- Java<->XML mapping file -->
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+
+ <port-component>
+
+ <!-- logical name for the port (unique within the module) -->
+ <port-component-name>callerPort</port-component-name>
+ <!-- WSDL port element (in WSDL implementation file) -->
+ <wsdl-port xmlns:portNS="http://jbpm.org/examples/hello">portNS:callerPort</wsdl-port>
+ <!-- service endpoint interface class -->
+ <service-endpoint-interface>
+ org.jbpm.bpel.tutorial.hello.HelloPT
+ </service-endpoint-interface>
+ <!-- associated servlet (in web-app descriptor) -->
+ <service-impl-bean>
+ <servlet-link>callerServlet</servlet-link>
+ </service-impl-bean>
+
+ <handler>
+
+ <!-- logical name for the handler (unique within the module) -->
+ <handler-name>callerHandler</handler-name>
+ <!-- handler class (in jBPM BPEL library) -->
+ <handler-class>org.jbpm.bpel.integration.server.SoapHandler</handler-class>
+
+ <init-param>
+ <description>name of the associated partner link</description>
+ <param-name>partnerLinkHandle</param-name>
+ <param-value>caller</param-value>
+ </init-param>
+
+ </handler>
+
+ </port-component>
+
+ </webservice-description>
+
+</webservices>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/WEB-INF/webservices.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/bpel-definition.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/bpel-definition.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/bpel-definition.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<bpelDefinition location="hello.bpel" xmlns="http://jbpm.org/bpel"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jbpm.org/bpel
+ http://jbpm.org/bpel/bpel_definition_1_0.xsd">
+
+ <!-- makes WSDL interface elements available to the process -->
+ <imports>
+ <wsdl namespace="http://jbpm.org/examples/hello" location="hello.wsdl" />
+ </imports>
+
+</bpelDefinition>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/META-INF/bpel-definition.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.bpel
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.bpel 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.bpel 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process name="HelloWorld" targetNamespace="http://jbpm.org/examples/hello"
+ xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
+ xmlns:tns="http://jbpm.org/examples/hello"
+ xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
+ http://schemas.xmlsoap.org/ws/2003/03/business-process/">
+
+ <partnerLinks>
+ <!-- realizes the abstract relationship with the caller -->
+ <partnerLink name="Caller" partnerLinkType="tns:HelloPLT" myRole="service" />
+ </partnerLinks>
+
+ <variables>
+ <!-- holds the incoming message -->
+ <variable name="request" messageType="tns:NameMessage" />
+ <!-- holds the outgoing message -->
+ <variable name="response" messageType="tns:GreetingMessage" />
+ </variables>
+
+ <sequence>
+ <!-- receive a message carrying the name of a person -->
+ <receive operation="sayHello" partnerLink="Caller" portType="tns:HelloPT"
+ variable="request" createInstance="yes" />
+ <!-- compose a greeting phrase containing the name -->
+ <assign>
+ <copy>
+ <from expression="concat('Hello, ',
+ bpel:getVariableData('request', 'name'),
+ '!')" />
+ <to variable="response" part="greeting" />
+ </copy>
+ </assign>
+ <!-- reply with a message carrying the greeting -->
+ <reply operation="sayHello" partnerLink="Caller" portType="tns:HelloPT"
+ variable="response" />
+ </sequence>
+
+</process>
\ No newline at end of file
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.wsdl
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.wsdl 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.wsdl 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions targetNamespace="http://jbpm.org/examples/hello"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://jbpm.org/examples/hello"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
+ http://schemas.xmlsoap.org/wsdl/
+ http://schemas.xmlsoap.org/ws/2003/05/partner-link/
+ http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
+
+ <!-- characterizes the relationship between the process and its caller -->
+ <plt:partnerLinkType name="HelloPLT">
+ <plt:role name="service">
+ <plt:portType name="tns:HelloPT"/>
+ </plt:role>
+ </plt:partnerLinkType>
+
+ <!-- carries the name of a person -->
+ <message name="NameMessage">
+ <part name="name" type="xsd:string"/>
+ </message>
+
+ <!-- carries the greeting -->
+ <message name="GreetingMessage">
+ <part name="greeting" type="xsd:string"/>
+ </message>
+
+ <!-- describes the interface presented to callers -->
+ <portType name="HelloPT">
+ <operation name="sayHello">
+ <input message="tns:NameMessage"/>
+ <output message="tns:GreetingMessage"/>
+ </operation>
+ </portType>
+
+</definitions>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/bpel/hello.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/wstools-config.xml
===================================================================
--- tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/wstools-config.xml 2006-08-30 23:33:53 UTC (rev 867)
+++ tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/wstools-config.xml 2006-08-31 01:44:01 UTC (rev 868)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<configuration xmlns="http://www.jboss.org/jbossws-tools">
+ <global>
+ <package-namespace package="org.jboss.test.ws.samples.wsbpel.hello"
+ namespace="http://jbpm.org/examples/hello" />
+ </global>
+ <wsdl-java file="wstools/resources/samples/wsbpel/hello/WEB-INF/wsdl/service.wsdl">
+ <mapping file="jaxrpc-mapping.xml" />
+ </wsdl-java>
+</configuration>
\ No newline at end of file
Property changes on: tags/jbossws-1.0.3.GA/src/test/resources/samples/wsbpel/hello/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the jboss-svn-commits
mailing list