You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2006/11/10 10:02:35 UTC
svn commit: r473270 - in
/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers:
./ service-assembly/ service-assembly/etc/ service-engine/
service-engine/etc/ service-unit/ service-unit/etc/
service-unit/etc/consumer/ serv...
Author: ffang
Date: Fri Nov 10 01:02:34 2006
New Revision: 473270
URL: http://svn.apache.org/viewvc?view=rev&rev=473270
Log:
[CXF-38] JBI Integration - add handlers demo for CXF service engine
Added:
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/semantic.cache
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/semantic.cache
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/
incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl (with props)
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt Fri Nov 10 01:02:34 2006
@@ -0,0 +1,106 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+Overview
+========
+
+Prerequisite: This README assumes some familiarity with the Java
+Business Integration specification. See the following URL for more
+information: http://java.sun.com/integration/
+
+This demo shows how JAXWS handlers can be used in cxf service
+engine. The demo consists of a CXF Service Engine and a test service assembly.
+The service assembly contains two service units: a service provider (server)
+and a service consumer (client).
+
+In each case the, service units are written to the standard JAXWS 2.0
+API. The assembly is deployed to the CXF Service Engine (CSE).
+The CSE connects the service implementation (and client) to the JBI
+Normalized Message Router (NMR) using a customized CXF transport.
+
+
+Deploy CXF Service Engine into ServiceMix
+============================================
+Build Instructions
+------------------
+
+. Download & Install ServiceMix
+ http://incubator.apache.org/servicemix/main/servicemix-30.html
+ Note: Must isntall the ServiceMix 3.0 Release.
+. export SERVICEMIX_HOME for your shell envirnoment
+
+. Edit build.properties to sepcify cxf.home and jbi.sdk.jar,
+ jbi.sdk.jar=$SERVICEMIX_HOME/lib/servicemix-jbi-3.0-SNAPSHOT.jar
+
+
+. build everything using ant: 'ant build'
+
+Installation & Deployment
+-------------------------
+Ensure that the $SERVICEMIX_HOME/bin is on the path.
+
+Start ServiceMix
+ >servicemix
+And then you can see logs from the shell which you start servicemix, including
+ServiceEngine install log, Service Assembly deploy log, cxf service
+consumer and provider communication log. To remove noisy CXF log from the
+console, just edit servicemix starup script, add
+-Djava.util.logging.config.file="$CXF_HOME/etc/logging.properties" to
+java launch commandline
+
+Install the CXF Service Engine:
+
+ > ant -f $SERVICEMIX_HOME/ant/servicemix-ant-task.xml install-component -Dsm.install.file=./service-engine/build/lib/cxf-service-engine.jar -Dsm.username=smx -Dsm.password=smx
+ > ant -f $SERVICEMIX_HOME/ant/servicemix-ant-task.xml start-component -Dsm.component.name=CXFServiceEngine -Dsm.username=smx -Dsm.password=smx
+
+Deploy the CXF demo service assembly
+
+ > ant -f $SERVICEMIX_HOME/ant/servicemix-ant-task.xml deploy-service-assembly -Dsm.deploy.file=./service-assembly/build/lib/cxf-service-assembly.zip -Dsm.username=smx -Dsm.password=smx
+ > ant -f $SERVICEMIX_HOME/ant/servicemix-ant-task.xml start-service-assembly -Dsm.service.assembly.name=cxf-demo-service-assembly -Dsm.username=smx -Dsm.password=smx
+
+
+More lifecycle management task
+ > ant -f $SERVICEMIX_HOME/ant/servicemix-ant-task.xml -projecthelp
+
+
+What happened
+=============
+The service provider uses a
+SOAP protocol handler which simply logs incoming and outgoing messages
+to the console.
+
+The service provider code registers a handler using the @HandlerChain annotation
+within the service implementation class. For this demo, LoggingHandler
+is SOAPHandler that logs the entire SOAP message content to stdout.
+
+While the annotation in the service implementation class specifies
+that the service provider should use the LoggingHandler, the demo shows how
+this behaviour is superceded by information obtained from the
+cxf-server.xml configuration file, thus allowing control over the
+service provider's behaviour without changing the code. When the
+service provider uses the configuration file, LoggingHandler is replaced with
+FileLoggingHandler, which logs simple informative messages, not the
+entire message content, to the console and adds information to the
+demo.log file.
+
+The service consumer includes a logical handler that checks the parameters on
+outbound requests and short-circuits the invocation in certain
+circumstances. This handler is not specified programatically but
+through configuration in the file cxf-client.xml.
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties Fri Nov 10 01:02:34 2006
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Edit these entries with the correct locations
+# (Use absolute paths)
+
+jbi.sdk.jar=/local/apache-servicemix-3.0-incubating/lib/servicemix-jbi-3.0-incubating.jar
+cxf.home=${user.home}/cxf-2.0-incubator-M1-SNAPSHOT
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,34 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project name="cxf-jbi-demo" default="build">
+
+ <target name="build">
+ <ant dir="service-unit"/>
+ <ant dir="service-engine"/>
+ <ant dir="service-assembly"/>
+ </target>
+
+ <target name="clean">
+ <ant dir="service-unit" target="clean"/>
+ <ant dir="service-engine" target="clean"/>
+ <ant dir="service-assembly" target="clean"/>
+ </target>
+
+
+</project>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,52 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<project name="jbi-demo-service-engine" default="build">
+
+ <property name="build.dir" location="./build"/>
+ <property name="build.lib.dir" location="${build.dir}/lib"/>
+ <property name="src.dir" location="./src"/>
+
+ <property file="../build.properties"/>
+
+ <target name="build" depends="build-service-assembly"/>
+
+
+ <target name="build-service-assembly">
+ <mkdir dir="${build.lib.dir}"/>
+ <jar destfile="${build.lib.dir}/cxf-service-assembly.zip">
+ <fileset dir="../service-unit/build/lib">
+ <include name="cxf-service-provider.jar"/>
+ <include name="cxf-service-consumer.jar"/>
+ </fileset>
+ <metainf dir="./etc">
+ <include name="jbi.xml"/>
+ </metainf>
+ <metainf dir="./etc">
+ <include name="jbi.xml"/>
+ </metainf>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+
+</project>
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<jbi xmlns="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/jbi ./jbi.xsd">
+ <service-assembly>
+ <identification>
+ <name>cxf-demo-service-assembly</name>
+ <description>Service Assembly for JBI Demo Component</description>
+ </identification>
+ <service-unit>
+ <identification>
+ <name>JBIDemoSE_AProvider</name>
+ <description>Service Engine Service Provider Sub-Assembly for JBI Demo</description>
+ </identification>
+ <target>
+ <artifacts-zip>cxf-service-provider.jar</artifacts-zip>
+ <component-name>CXFServiceEngine</component-name>
+ </target>
+ </service-unit>
+ <service-unit>
+ <identification>
+ <name>JBIDemoSE_BConsumer</name>
+ <description>Service Engine Service Consumer Sub-Assembly for JBI Demo</description>
+ </identification>
+ <target>
+ <artifacts-zip>cxf-service-consumer.jar</artifacts-zip>
+ <component-name>CXFServiceEngine</component-name>
+ </target>
+ </service-unit>
+ </service-assembly>
+</jbi>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-assembly/etc/jbi.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,57 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project name="jbi-demo-service-engine" default="build">
+
+ <property name="build.dir" location="./build"/>
+ <property name="build.classes.dir" location="${build.dir}/classes"/>
+ <property name="build.lib.dir" location="${build.dir}/lib"/>
+ <property name="src.dir" location="./src"/>
+
+ <property file="../build.properties"/>
+
+ <path id="build.classpath">
+ <fileset dir="${cxf.home}/lib">
+ <include name="cxf-incubator.jar"/>
+ </fileset>
+ <pathelement location="${jbi.sdk.dir}/jbi.jar"/>
+ <pathelement location="./build/classes"/>
+ </path>
+
+ <target name="build" depends="build-service-engine"/>
+
+ <target name="build-service-engine">
+ <mkdir dir="${build.lib.dir}"/>
+
+ <jar destfile="${build.lib.dir}/cxf-service-engine.jar">
+ <fileset dir="${cxf.home}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <metainf dir="./etc">
+ <include name="jbi.xml"/>
+ <include name="cxf-config.xml"/>
+ </metainf>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+
+</project>
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,19 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/cxf-config.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<jbi version="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns="http://java.sun.com/xml/ns/jbi" xsi:schemaLocation="http://java.sun.com/xml/ns/jbi ./jbi.xsd">
+
+ <component type="service-engine">
+ <identification>
+ <name>CXFServiceEngine</name>
+ <description>This is a cxf service engine</description>
+ </identification>
+ <component-class-name description="description">org.apache.cxf.jbi.se.CXFServiceEngine</component-class-name>
+ <component-class-path>
+ <path-element>cxf-incubator.jar</path-element>
+ </component-class-path>
+ <bootstrap-class-name>org.apache.cxf.jbi.se.CXFBootstrap</bootstrap-class-name>
+ <bootstrap-class-path>
+ <path-element>cxf-incubator.jar</path-element>
+ </bootstrap-class-path>
+ </component>
+</jbi>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-engine/etc/jbi.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,117 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project name="jbi-demo-service-unit" default="build">
+
+ <property name="build.dir" location="./build"/>
+ <property name="build.classes.dir" location="${build.dir}/classes"/>
+ <property name="build.src.dir" location="${build.dir}/src"/>
+ <property name="build.lib.dir" location="${build.dir}/lib"/>
+ <property name="src.dir" location="./src"/>
+ <property name="wsdl.dir" location="./wsdl"/>
+
+ <property file="../build.properties"/>
+
+ <!-- reuse the macros defined in CXF samples -->
+ <import file="${cxf.home}/samples/common_build.xml"/>
+
+ <path id="build.classpath">
+ <pathelement location="${build.classes.dir}"/>
+ <pathelement location="${jbi.sdk.jar}"/>
+ <fileset dir="${cxf.home}/lib">
+ <include name="cxf-incubator.jar"/>
+ </fileset>
+ </path>
+
+ <target name="build" depends="build-service-units"/>
+
+ <target name="generate-code">
+ <mkdir dir="${build.src.dir}"/>
+ <echo level="info" message="Generating code using wsdl2java..."/>
+ <wsdl2java file="addNumbers.wsdl"/>
+ </target>
+
+ <target name="update-code" description="updates code with actual wsdl location">
+
+ <replace dir="src" value="${wsdl.dir}${file.separator}">
+ <include name="**/*.java"/>
+ <replacetoken>@wsdl_path@</replacetoken>
+ </replace>
+
+ <!-- for windows make sure that '\' are escaped -->
+ <replace dir="src" value="\\">
+ <include name="**/*.java"/>
+ <replacetoken>\</replacetoken>
+ </replace>
+
+ </target>
+
+ <target name="compile" depends="generate-code">
+ <mkdir dir="${build.classes.dir}"/>
+ <javac destdir="${build.classes.dir}" srcdir="${build.src.dir}" debug="true">
+ <classpath refid="build.classpath"/>
+ </javac>
+ <javac destdir="${build.classes.dir}" srcdir="${src.dir}" debug="true">
+ <classpath refid="build.classpath"/>
+ </javac>
+ </target>
+
+ <target name="build-service-units" depends="compile">
+ <mkdir dir="${build.lib.dir}"/>
+ <jar destfile="${build.lib.dir}/cxf-service-provider.jar">
+ <fileset dir="${build.classes.dir}">
+ <include name="**/provider/**/*.class"/>
+ <include name="**/common/**/*.class"/>
+ <include name="org/**/*.class"/>
+ </fileset>
+ <fileset dir="${src.dir}">
+ <include name="**/common/**/*.xml"/>
+ </fileset>
+ <metainf dir="./etc/provider">
+ <include name="jbi.xml"/>
+ <include name="cxf-server.xml"/>
+ </metainf>
+ <metainf dir="./wsdl">
+ <include name="addNumbers.wsdl"/>
+ </metainf>
+ </jar>
+ <jar destfile="${build.lib.dir}/cxf-service-consumer.jar">
+ <fileset dir="${build.classes.dir}">
+ <include name="**/consumer/**/*.class"/>
+ <include name="**/common/**/*.class"/>
+ <include name="org/**/*.class"/>
+ </fileset>
+ <fileset dir="${src.dir}">
+ <include name="**/common/**/*.xml"/>
+ </fileset>
+ <metainf dir="./etc/consumer">
+ <include name="jbi.xml"/>
+ <include name="cxf-client.xml"/>
+ </metainf>
+ <metainf dir="./wsdl">
+ <include name="addNumbers.wsdl"/>
+ </metainf>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+
+</project>
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,18 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/cxf-client.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<jbi version="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns="http://java.sun.com/xml/ns/jbi" xsi:schemaLocation="http://java.sun.com/xml/ns/jbi ./jbi.xsd">
+
+ <services binding-component="false" xmlns:sns1="http://apache.org/handlers">
+ <consumes interface-name="sns1:AddNumbers" service-name="sns1:AddNumbersService" endpoint-name="AddNumbersPort"/>
+ </services>
+</jbi>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/consumer/jbi.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,18 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/cxf-server.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,34 @@
+<?xml version='1.0' ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<jbi version="1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/jbi"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/jbi jbi.xsd">
+ <services binding-component = "false"
+ xmlns:sns1="http://apache.org/hello_world">
+
+ <provides interface-name = "sns1:AddNumbers"
+ service-name = "sns1:AddNumbersService"
+ endpoint-name = "AddNumbersPort">
+
+ </provides>
+
+ </services>
+</jbi>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/etc/provider/jbi.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java Fri Nov 10 01:02:34 2006
@@ -0,0 +1,66 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package test.common;
+
+
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.PrintStream;
+
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+/*
+ * This simple SOAPHandler will output the contents of incoming
+ * and outgoing messages into a file.
+ */
+public class FileLoggingHandler extends LoggingHandler {
+
+ public FileLoggingHandler() {
+ try {
+ setLogStream(new PrintStream(new FileOutputStream("demo.log")));
+ } catch (IOException ex) {
+ System.err.println("Could not open log file demo.log");
+ }
+ }
+
+ public void init(Map c) {
+ System.out.println("FileLoggingHandler : init() Called....");
+ }
+
+ public Set<QName> getHeaders() {
+ return null;
+ }
+
+ public boolean handleMessage(SOAPMessageContext smc) {
+ System.out.println("FileLoggingHandler : handleMessage Called....");
+ logToSystemOut(smc);
+ return true;
+ }
+
+ public boolean handleFault(SOAPMessageContext smc) {
+ System.out.println("FileLoggingHandler : handleFault Called....");
+ logToSystemOut(smc);
+ return true;
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/FileLoggingHandler.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java Fri Nov 10 01:02:34 2006
@@ -0,0 +1,104 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package test.common;
+
+
+import java.io.PrintStream;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPHandler;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+/*
+ * This simple SOAPHandler will output the contents of incoming
+ * and outgoing messages.
+ */
+public class LoggingHandler implements SOAPHandler<SOAPMessageContext> {
+
+ private PrintStream out;
+
+ public LoggingHandler() {
+ setLogStream(System.out);
+ }
+
+ protected final void setLogStream(PrintStream ps) {
+ out = ps;
+ }
+
+ public void init(Map c) {
+ System.out.println("LoggingHandler : init() Called....");
+ }
+
+ public Set<QName> getHeaders() {
+ return null;
+ }
+
+ public boolean handleMessage(SOAPMessageContext smc) {
+ System.out.println("LoggingHandler : handleMessage Called....");
+ logToSystemOut(smc);
+ return true;
+ }
+
+ public boolean handleFault(SOAPMessageContext smc) {
+ System.out.println("LoggingHandler : handleFault Called....");
+ logToSystemOut(smc);
+ return true;
+ }
+
+ // nothing to clean up
+ public void close(MessageContext messageContext) {
+ System.out.println("LoggingHandler : close() Called....");
+ }
+
+ // nothing to clean up
+ public void destroy() {
+ System.out.println("LoggingHandler : destroy() Called....");
+ }
+
+ /*
+ * Check the MESSAGE_OUTBOUND_PROPERTY in the context
+ * to see if this is an outgoing or incoming message.
+ * Write a brief message to the print stream and
+ * output the message. The writeTo() method can throw
+ * SOAPException or IOException
+ */
+ protected void logToSystemOut(SOAPMessageContext smc) {
+ Boolean outboundProperty = (Boolean)
+ smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+
+ if (outboundProperty.booleanValue()) {
+ out.println("\nOutbound message:");
+ } else {
+ out.println("\nInbound message:");
+ }
+
+ SOAPMessage message = smc.getMessage();
+ try {
+ message.writeTo(out);
+ out.println();
+ } catch (Exception e) {
+ out.println("Exception in handler: " + e);
+ }
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/LoggingHandler.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java Fri Nov 10 01:02:34 2006
@@ -0,0 +1,113 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package test.common;
+
+import java.util.Map;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.ws.LogicalMessage;
+import javax.xml.ws.ProtocolException;
+import javax.xml.ws.handler.LogicalHandler;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+import org.apache.handlers.types.AddNumbers;
+import org.apache.handlers.types.AddNumbersResponse;
+
+
+
+/**
+ * handles addition of small numbers.
+ */
+public class SmallNumberHandler implements LogicalHandler<LogicalMessageContext> {
+
+
+ // Implementation of javax.xml.ws.handler.Handler
+
+ public final boolean handleMessage(LogicalMessageContext messageContext) {
+ System.out.println("LogicalMessageHandler handleMessage called");
+
+ try {
+ boolean outbound = (Boolean)messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+
+ if (outbound) {
+ // get the LogicalMessage from our context
+ //
+ LogicalMessage msg = messageContext.getMessage();
+
+ // check the payload, if its an AddNumbers request, we'll intervene
+ //
+ JAXBContext jaxbContext = JAXBContext.newInstance(AddNumbers.class);
+ Object payload = msg.getPayload(jaxbContext);
+
+ if (payload instanceof AddNumbers) {
+ AddNumbers req = (AddNumbers)payload;
+
+ // now, if the arguments are small, let's do the calculation here
+ //
+ int a = req.getArg0();
+ int b = req.getArg1();
+
+ if (isSmall(a) && isSmall(b)) {
+ int answer = a + b;
+
+ System.out.printf("SmallNumberHandler addNumbers(%d, %d) == %d\n", a, b, answer);
+ // ok, we've done the calculation, so build the
+ // response and set it as the payload of the message
+ AddNumbersResponse resp = new AddNumbersResponse();
+ resp.setReturn(answer);
+ msg.setPayload(resp, jaxbContext);
+
+ // finally, return false, indicating that request
+ // processing stops here and our answer will be
+ // returned to the client
+ return false;
+ }
+ }
+ }
+ return true;
+ } catch (JAXBException ex) {
+ throw new ProtocolException(ex);
+ }
+
+ }
+
+ public final boolean handleFault(LogicalMessageContext messageContext) {
+ System.out.println("LogicalMessageHandler handleFault called");
+ System.out.println(messageContext);
+
+ return true;
+ }
+
+ public void close(MessageContext ctx) {
+ System.out.println("LogicalHandler close called");
+ }
+
+ public void init(Map config) {
+ System.out.println("LogicalHandler init called");
+ }
+
+ public void destroy() {
+ System.out.println("LogicalHandler close called");
+ }
+
+ private boolean isSmall(int i) {
+ return i > 0 && i <= 10;
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/SmallNumberHandler.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml Fri Nov 10 01:02:34 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+xmlns:cfg="http://cxf.apache.org/configuration/cfg"
+xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <handler-chain-name>DemoHandlerChain</handler-chain-name>
+ <handler>
+ <handler-name>SOAPLoggingHandler</handler-name>
+ <handler-class>test.common.LoggingHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
+
+
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/demo_handlers.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/semantic.cache
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/semantic.cache?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/semantic.cache (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/common/semantic.cache Fri Nov 10 01:02:34 2006
@@ -0,0 +1,27 @@
+;; Object common/
+;; SEMANTICDB Tags save file
+(semanticdb-project-database-file "common/"
+ :tables (list
+ (semanticdb-table "FileLoggingHandler.java"
+ :major-mode 'jde-mode
+ :tags '(("test.common" package nil nil [77 97]) ("java.io.FileOutputStream" include nil nil [99 131]) ("java.io.IOException" include nil nil [132 159]) ("java.io.PrintStream" include nil nil [160 187]) ("java.util.Map" include nil nil [189 210]) ("java.util.Set" include nil nil [211 232]) ("javax.xml.namespace.QName" include nil nil [234 267]) ("javax.xml.ws.handler.soap.SOAPMessageContext" include nil nil [268 320]) ("FileLoggingHandler" type (:typemodifiers ("public") :superclasses "LoggingHandler" :members (("FileLoggingHandler" function (:constructor-flag t :typemodifiers ("public")) (reparse-symbol class_member_declaration) [493 732]) ("init" function (:typemodifiers ("public") :arguments (("c" variable (:type "Map") (reparse-symbol formal_parameters) [755 760])) :type "void") (reparse-symbol class_member_declaration) [738 839]) ("getHeaders" function (:constructor-flag t) (reparse-symbol class_member_declaration) [863 904]) ("handleMessage" function (:typemodifiers
("public") :arguments (("smc" variable (:type "SOAPMessageContext") (reparse-symbol formal_parameters) [939 961])) :type "boolean") (reparse-symbol class_member_declaration) [910 1097]) ("handleFault" function (:typemodifiers ("public") :arguments (("smc" variable (:type "SOAPMessageContext") (reparse-symbol formal_parameters) [1130 1152])) :type "boolean") (reparse-symbol class_member_declaration) [1103 1286])) :type "class") nil [431 1288]))
+ :file "FileLoggingHandler.java"
+ :pointmax 1289
+ )
+ (semanticdb-table "LoggingHandler.java"
+ :major-mode 'jde-mode
+ :tags '(("test.common" package nil nil [77 97]) ("java.io.PrintStream" include nil nil [100 127]) ("java.util.Map" include nil nil [128 149]) ("java.util.Set" include nil nil [150 171]) ("javax.xml.namespace.QName" include nil nil [173 206]) ("javax.xml.soap.SOAPMessage" include nil nil [207 241]) ("javax.xml.ws.handler.MessageContext" include nil nil [242 285]) ("javax.xml.ws.handler.soap.SOAPHandler" include nil nil [286 331]) ("javax.xml.ws.handler.soap.SOAPMessageContext" include nil nil [332 384]))
+ :file "LoggingHandler.java"
+ :pointmax 2413
+ )
+ (semanticdb-table "SmallNumberHandler.java"
+ :major-mode 'jde-mode
+ :tags '(("test.common" package nil nil [1 21]) ("java.util.Map" include nil nil [23 44]) ("javax.xml.bind.JAXBContext" include nil nil [45 79]) ("javax.xml.bind.JAXBException" include nil nil [80 116]) ("javax.xml.ws.LogicalMessage" include nil nil [117 152]) ("javax.xml.ws.ProtocolException" include nil nil [153 191]) ("javax.xml.ws.handler.LogicalHandler" include nil nil [192 235]) ("javax.xml.ws.handler.LogicalMessageContext" include nil nil [236 286]) ("javax.xml.ws.handler.MessageContext" include nil nil [287 330]) ("org.objectweb.handlers.types.AddNumbers" include nil nil [331 378]) ("org.objectweb.handlers.types.AddNumbersResponse" include nil nil [379 434]))
+ :file "SmallNumberHandler.java"
+ :pointmax 3284
+ )
+ )
+ :file "semantic.cache"
+ :semantic-tag-version "2.0pre3"
+ :semanticdb-version "2.0pre3"
+ )
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java Fri Nov 10 01:02:34 2006
@@ -0,0 +1,118 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package test.consumer;
+
+import javax.jbi.component.ComponentContext;
+import javax.jbi.servicedesc.ServiceEndpoint;
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.jbi.ServiceConsumer;
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersFault;
+import org.apache.handlers.AddNumbersService;
+
+
+public class HelloWorldConsumer implements ServiceConsumer {
+
+ static QName serviceName = new QName("http://apache.org/handlers",
+ "AddNumbersService");
+
+ static QName portName = new QName("http://apache.org/handlers",
+ "AddNumbersPort");
+
+ private volatile boolean running;
+ private ComponentContext ctx;
+
+ public void setComponentContext(ComponentContext cc) {
+ ctx = cc;
+ }
+
+ public void stop() {
+ running = false;
+ }
+
+ public void run() {
+ try {
+ Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+
+ running = true;
+ waitForEndpointActivation();
+ do {
+ System.out.println("getting service");
+
+ AddNumbersService service = new AddNumbersService();
+ AddNumbers port = (AddNumbers)service.getAddNumbersPort();
+
+ try {
+ int number1 = 10;
+ int number2 = 20;
+
+ System.out.printf("Invoking addNumbers(%d, %d)\n", number1, number2);
+ int result = port.addNumbers(number1, number2);
+ System.out.printf("The result of adding %d and %d is %d.\n\n", number1, number2, result);
+
+ number1 = 3;
+ number2 = 5;
+
+ System.out.printf("Invoking addNumbers(%d, %d)\n", number1, number2);
+ result = port.addNumbers(number1, number2);
+ System.out.printf("The result of adding %d and %d is %d.\n\n", number1, number2, result);
+
+ number1 = -10;
+ System.out.printf("Invoking addNumbers(%d, %d)\n", number1, number2);
+ result = port.addNumbers(number1, number2);
+ System.out.printf("The result of adding %d and %d is %d.\n", number1, number2, result);
+
+ } catch (AddNumbersFault ex) {
+ System.out.printf("Caught AddNumbersFault: %s\n", ex.getFaultInfo().getMessage());
+ }
+
+
+ Thread.sleep(10000);
+ } while (running);
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
+ }
+
+
+ protected final void waitForEndpointActivation() {
+
+ final QName service =
+ new QName("http://apache.org/handlers", "AddNumbersService");
+ boolean ready = false;
+ do {
+ ServiceEndpoint[] eps = ctx.getEndpointsForService(service);
+ if (eps.length == 0) {
+ System.out.println("waiting for endpoints to become active");
+ try {
+ Thread.sleep(5000);
+ } catch (Exception ex) {
+ //ignore it
+ }
+ } else {
+ System.out.println("endpoints ready, pump starting");
+ ready = true;
+ }
+ } while(!ready && running);
+ }
+
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/consumer/HelloWorldConsumer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java Fri Nov 10 01:02:34 2006
@@ -0,0 +1,59 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package test.provider;
+
+import javax.jws.HandlerChain;
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersFault;
+import org.apache.handlers.types.FaultDetail;
+
+@javax.jws.WebService(portName = "AddNumbersPort", serviceName = "AddNumbersService",
+ targetNamespace = "http://apache.org/handlers",
+ endpointInterface = "org.apache.handlers.AddNumbers",
+ wsdlLocation = "/META-INF/addNumbers.wsdl")
+
+
+@HandlerChain(file = "../common/demo_handlers.xml", name = "DemoHandlerChain")
+public class HelloWorldProvider implements AddNumbers {
+
+
+ /**
+ * @param number1
+ * @param number2
+ * @return The sum
+ * @throws AddNumbersException
+ * if any of the numbers to be added is negative.
+ */
+ public int addNumbers(int number1, int number2) throws AddNumbersFault {
+ System.out.println("addNumbers called....." + number1 + ":" + number2);
+ if (number1 < 0 || number2 < 0) {
+ String message = "Negative number cant be added!";
+ String detail = "Numbers: " + number1 + ", " + number2;
+ FaultDetail fault = new FaultDetail();
+ fault.setMessage(message);
+ fault.setFaultInfo(detail);
+ throw new AddNumbersFault(message, fault);
+ }
+ return number1 + number2;
+ }
+
+}
+
+
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/HelloWorldProvider.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/semantic.cache
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/semantic.cache?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/semantic.cache (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/src/test/provider/semantic.cache Fri Nov 10 01:02:34 2006
@@ -0,0 +1,15 @@
+;; Object provider/
+;; SEMANTICDB Tags save file
+(semanticdb-project-database-file "provider/"
+ :tables (list
+ (semanticdb-table "HelloWorldProvider.java"
+ :major-mode 'jde-mode
+ :tags '(("test.provider" package nil nil [1 23]) ("javax.jws.HandlerChain" include nil nil [25 55]) ("javax.jws.WebService" include nil nil [56 84]) ("org.objectweb.handlers.AddNumbers" include nil nil [85 126]) ("org.objectweb.handlers.AddNumbersFault" include nil nil [127 173]) ("org.objectweb.handlers.types.FaultDetail" include nil nil [174 222]) ("HelloWorldProvider" type (:typemodifiers ("public") :interfaces ("AddNumbers") :members (("addNumbers" function (:throws ("AddNumbersFault") :typemodifiers ("public") :arguments (("number1" variable (:type "int") (reparse-symbol formal_parameters) [764 775]) ("number2" variable (:type "int") (reparse-symbol formal_parameters) [777 788])) :type "int") (reparse-symbol class_member_declaration) [742 1302])) :type "class") nil [496 1305]))
+ :file "HelloWorldProvider.java"
+ :pointmax 1308
+ )
+ )
+ :file "semantic.cache"
+ :semantic-tag-version "2.0pre3"
+ :semanticdb-version "2.0pre3"
+ )
Added: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl?view=auto&rev=473270
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl Fri Nov 10 01:02:34 2006
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<definitions
+ name="AddNumbers"
+ targetNamespace="http://apache.org/handlers"
+ xmlns:tns="http://apache.org/handlers"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:x1="http://apache.org/handlers/types"
+ xmlns:jbi="http://apache.org/transport/jbi">
+
+ <types>
+ <xsd:schema
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://apache.org/handlers/types"
+ elementFormDefault="qualified">
+
+ <complexType name="addNumbersResponse">
+ <sequence>
+ <element name="return" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
+
+ <complexType name="addNumbers">
+ <sequence>
+ <element name="arg0" type="xsd:int" />
+ <element name="arg1" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="addNumbers" type="x1:addNumbers"/>
+
+ <element name="FaultDetail" type="x1:FaultDetail" />
+ <complexType name="FaultDetail">
+ <sequence>
+ <element name="faultInfo" type="xsd:string" />
+ <element name="message" type="xsd:string" />
+ </sequence>
+ </complexType>
+ </xsd:schema>
+ </types>
+ <message name="addNumbers">
+ <part name="parameters" element="x1:addNumbers" />
+ </message>
+ <message name="addNumbersResponse">
+ <part name="result" element="x1:addNumbersResponse" />
+ </message>
+ <message name="addNumbersFault">
+ <part name="AddNumbersFault" element="x1:FaultDetail" />
+ </message>
+ <portType name="AddNumbers">
+ <operation name="addNumbers">
+ <input message="tns:addNumbers" />
+ <output message="tns:addNumbersResponse" />
+ <fault name="addNumbersFault" message="tns:addNumbersFault"/>
+ </operation>
+ </portType>
+ <binding name="AddNumbersBinding" type="tns:AddNumbers">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="addNumbers">
+ <soap:operation soapAction="" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ <fault name="addNumbersFault">
+ <soap:fault name="addNumbersFault" use="literal" />
+ </fault>
+ </operation>
+ </binding>
+ <service name="AddNumbersService">
+ <port name="AddNumbersPort" binding="tns:AddNumbersBinding">
+ <jbi:address location="http://localhost:9000/handlers/AddNumbersService/AddNumbersPort" />
+ </port>
+ </service>
+</definitions>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/integration/JBI/handlers/service-unit/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml