cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r451565 - in /incubator/cxf/trunk: distribution/src/main/release/samples/handlers/ distribution/src/main/release/samples/handlers/src/ distribution/src/main/release/samples/handlers/src/demo/ distribution/src/main/release/samples/handlers/s...
Date Sat, 30 Sep 2006 09:27:44 GMT
Author: jliu
Date: Sat Sep 30 02:27:43 2006
New Revision: 451565

URL: http://svn.apache.org/viewvc?view=rev&rev=451565
Log:
CXF-130. Added handler demo and system test.

Added:
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/
    incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl   (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java   (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java   (with props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java   (with props)
    incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl   (with props)
Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/handlers.xml
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/handlers.xml
    incubator/cxf/trunk/testutils/pom.xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt Sat Sep 30 02:27:43 2006
@@ -0,0 +1,210 @@
+Handler Demo
+============
+
+This demo shows how JAXWS handlers can be used.  The server uses a
+SOAP protocol handler which simply logs incoming and outgoing messages
+to the console.  
+
+The server 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 server should use the LoggingHandler, the demo shows how
+this behaviour is superceded by information obtained from the
+celtix-server.xml configuration file, thus allowing control over the
+server's behaviour without changing the code.  When the server process
+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 client 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 celtix-client.xml.  Alternatively,
+you can run the client without applying the configuration.
+In this case, the client does not instantiate a handler.
+
+Please review the README in the samples directory before continuing.
+
+
+Prerequisite
+------------
+
+If your environment already includes celtix.jar on the CLASSPATH,
+and the JDK and ant bin directories on the PATH, it is not necessary to
+run the environment script described in the samples directory README.
+If your environment is not properly configured, or if you are planning
+on using wsdl2java, javac, and java to build and run the demos, you must
+set the environment by running the script.
+
+
+Building and running the demo using ant
+---------------------------------------
+
+From the samples/handlers directory, the ant build script can be used to
+build and run the demo.  The server and client targets automatically build
+the demo.
+
+Using either UNIX or Windows:
+
+  ant server 
+  ant client
+
+When using these ant targets, the server process uses the FileLoggingHandler
+and the client process uses the SmallNumberHandler.  Notice that the both
+the client and server consoles display short informative messages.  The server's
+handler also appends information to the file demo.log.  The client handler
+examines the operation parameters and, depending on the parameter values, may
+not forward the request to the server.
+
+Look in the build.xml file to see how an argument to the java executable specifies
+use of the configuration file.  For example:
+
+  <target name="client" description="run demo client" depends="build">
+    <celtixrun classname="demo.handlers.client.Client"
+               param1="${basedir}/wsdl/addNumbers.wsdl"
+               jvmarg1="-Dceltix.config.file=file:///${basedir}/celtix-client.xml"/>
+  </target>
+
+After running the client, terminate the server process.
+
+Now run the server process using the LoggingHandler.
+
+Using either UNIX or Windows:
+
+  ant server2  (in the background or another window)
+  ant client2
+
+The ant targets client2 and server2 do not include the attribute that
+specifies the configuration file.  For example:
+
+  <target name="client2" description="run demo client" depends="build">
+    <celtixrun classname="demo.handlers.client.Client"
+               param1="${basedir}/wsdl/addNumbers.wsdl"/>
+  </target>
+
+Now, the server displays the entire content of each message in its console and
+the client no longer uses a handler.  The @HandlerChain annotation in the
+implementation class indicates that the file demo_handler.xml includes the
+information needed to identify the handler class.
+
+  @HandlerChain(file = "../common/demo_handlers.xml", name = "DemoHandlerChain")
+
+To remove the code generated from the WSDL file and the .class
+files, run:
+
+  ant clean
+
+
+Buildng the demo using wsdl2java and javac
+------------------------------------------
+
+From the samples/handlers directory, first create the target directory
+build/classes and then generate code from the WSDL file.
+
+For UNIX:
+  mkdir -p build/classes
+
+  wsdl2java -d build/classes -compile ./wsdl/addNumbers.wsdl
+
+For Windows:
+  mkdir build\classes
+    Must use back slashes.
+
+  wsdl2java -d build\classes -compile .\wsdl\addNumbers.wsdl
+    May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:  
+  
+  export CLASSPATH=$CLASSPATH:$CELTIX_HOME/lib/celtix.jar:./build/classes
+  javac -d build/classes src/demo/handlers/common/*.java
+  javac -d build/classes src/demo/handlers/client/*.java
+  javac -d build/classes src/demo/handlers/server/*.java
+
+For Windows:
+  set classpath=%classpath%;%CELTIX_HOME%\lib\celtix.jar;.\build\classes
+  javac -d build\classes src\demo\handlers\common\*.java
+  javac -d build\classes src\demo\handlers\client\*.java
+  javac -d build\classes src\demo\handlers\server\*.java
+
+Finally, copy the demo_handlers.xml file from the src/demo/handlers/common
+directory into the build/classes/demo/handlers/common directory.
+
+For UNIX:
+  cp ./src/demo/handlers/common/demo_handlers.xml ./build/classes/demo/handlers/common
+
+For Windows:
+  copy src\demo\handlers\common\demo_handlers.xml build\classes\demo\handlers\common
+
+
+Running the demo using java
+---------------------------
+
+Run the applications using the configuration information in the files
+celtix-server.xml and celtix-client.xml.  The server will use the FileLoggingHandler
+and the client will use the SmallNumberHandler.
+
+From the samples/handlers directory run the commands (entered on a single command line):
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         -Dceltix.config.file=file:///$CELTIX_HOME/samples/handlers/celtix-server.xml
+         demo.handlers.server.Server &
+
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         -Dceltix.config.file=file:///$CELTIX_HOME/samples/handlers/celtix-client.xml
+         demo.handlers.client.Client ./wsdl/addNumbers.wsdl
+
+The server process starts in the background.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+         -Dceltix.config.file=file:///%CELTIX_HOME%\samples\handlers\celtix-server.xml
+         demo.handlers.server.Server
+
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+         -Dceltix.config.file=file:///%CELTIX_HOME%\samples\handlers\celtix-client.xml
+         demo.handlers.client.Client .\wsdl\addNumbers.wsdl
+
+The server process starts in a new command window.
+
+Notice that the FileLoggingHandler, specified in the configuration file
+celtix-server.xml, logs information to the console and makes entries into
+the file demo.log, which is in the samples/handler directory.  Also, the
+SmallNumberHandler, specified in the configuration file celtix-client.xml,
+logs information to the console in which the client application runs.
+
+Now run the server process using the LoggingHandler.  The client does not use a handler.
+
+From the samples/handlers directory run the commands (entered on a single command line):
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         demo.handlers.server.Server &
+
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         demo.handlers.client.Client ./wsdl/addNumbers.wsdl
+
+The server process starts in the background.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+         demo.handlers.server.Server
+
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+         demo.handlers.client.Client .\wsdl\addNumbers.wsdl
+
+The server process starts in a new command window.
+
+After running the client, terminate the server process.
+
+To remove the code generated from the WSDL file and the .class
+files, either delete the build directory and its contents or run:
+
+  ant clean

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml Sat Sep 30 02:27:43 2006
@@ -0,0 +1,44 @@
+<?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.
+-->
+<project name="handler demo" default="build" basedir=".">
+
+    <import file="../common_build.xml"/>
+
+    <target name="client" description="run demo client" depends="build">
+        <cxfrun classname="demo.handlers.client.Client" param1="${basedir}/wsdl/addNumbers.wsdl"/>
+    </target>
+
+    <target name="server" description="run demo server" depends="build">
+        <cxfrun classname="demo.handlers.server.Server" param1="${basedir}/wsdl/addNumbers.wsdl"/>
+    </target>
+
+    <target name="client2" description="run demo client with out handlers" depends="build">
+        <cxfrun classname="demo.handlers.client.Client" param1="${basedir}/wsdl/addNumbers.wsdl"/>
+    </target>
+
+    <target name="server2" description="run demo server with out handlers" depends="build">
+        <cxfrun classname="demo.handlers.server.Server" param1="${basedir}/wsdl/addNumbers.wsdl"/>
+    </target>
+
+    <target name="generate.code">
+        <echo level="info" message="Generating code using wsdl2java..."/>
+        <wsdl2java file="addNumbers.wsdl"/>
+    </target>
+</project>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,86 @@
+/**
+ * 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 demo.handlers.client;
+
+import java.io.File;
+import javax.xml.namespace.QName;
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersFault;
+import org.apache.handlers.AddNumbersService;
+
+
+public final class Client {
+
+    static QName serviceName = new QName("http://apache.org/handlers",
+                                           "AddNumbersService");
+
+    static QName portName = new QName("http://apache.org/handlers",
+                                        "AddNumbersPort");
+    private Client() {
+    }
+
+    public static void main(String[] args) throws Exception {
+
+        if (args.length == 0) {
+            System.err.println("please provide wsdl");
+            System.exit(0);
+        }
+
+        File wsdl = new File(args[0]);
+
+        AddNumbersService service = new AddNumbersService(wsdl.toURL(), serviceName);
+        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+
+        try {
+            String number1 = "10";
+            System.out.printf("Invoking addNumbers\n");
+            port.addNumbers(number1);
+            System.out.printf("Invoking addNumbers done\n");
+            //System.out.printf("The result of adding %d and %d is %d.\n\n", number1, number2, result);
+
+            //Comment below out as int type doesnt work. see jira 136
+
+/*
+            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());
+        }
+
+        System.exit(0);
+    }
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/client/Client.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,115 @@
+/**
+ * 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 demo.handlers.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.objectweb.handlers.types.AddNumbers;
+//import org.objectweb.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");
+        //Comment below out as int type doesnt work. see jira 136
+/*
+        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);
+        }
+        */
+        return true;
+    }
+
+    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/handlers/src/demo/handlers/common/SmallNumberHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/SmallNumberHandler.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml Sat Sep 30 02:27:43 2006
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+		<handler-name>SmallNumberHandler</handler-name>
+		<handler-class>demo.handlers.common.SmallNumberHandler</handler-class>
+	</handler>
+    </handler-chain>
+</handler-chains>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/common/demo_handlers.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,61 @@
+/**
+ * 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 demo.handlers.server;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersFault;
+//import org.objectweb.handlers.types.FaultDetail;
+
+
+@WebService(name = "AddNumbers",
+            targetNamespace = "http://apache.org/handlers",
+            portName = "AddNumbersPort",
+            endpointInterface = "org.apache.handlers.AddNumbers",
+            serviceName = "AddNumbersService")
+@HandlerChain(file = "../common/demo_handlers.xml", name = "DemoHandlerChain")
+public class AddNumbersImpl implements AddNumbers {
+
+
+    /**
+     * @param number1
+     * @param number2
+     * @return The sum
+     * @throws AddNumbersException
+     *             if any of the numbers to be added is negative.
+     */
+    public void addNumbers(String number1) throws AddNumbersFault {
+        System.out.println("addNumbers called....." + number1);
+/*
+        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;
+        */
+        return;
+    }
+
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/AddNumbersImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,43 @@
+/**
+ * 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 demo.handlers.server;
+
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting AddNumbers Server");
+
+        Object implementor = new AddNumbersImpl();
+        String address = "http://localhost:9000/handlers/AddNumbersService/AddNumbersPort";
+        Endpoint.publish(address, implementor);
+    }
+
+    public static void main(String args[]) throws Exception {
+        new Server();
+        System.out.println("Server ready..."); 
+        
+        Thread.sleep(5 * 60 * 1000); 
+        System.out.println("Server exiting");
+        System.exit(0);
+    }
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/src/demo/handlers/server/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl Sat Sep 30 02:27:43 2006
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+    <types>
+        <xsd:schema
+            xmlns="http://www.w3.org/2001/XMLSchema"
+            targetNamespace="http://apache.org/handlers/types"
+            elementFormDefault="qualified">
+
+            <complexType name="addNumbersResponse">
+                <sequence>
+                </sequence>
+            </complexType>
+            <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
+
+            <complexType name="addNumbers">
+                <sequence>
+                    <element name="arg0" type="xsd:string" />
+                </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">
+            <soap:address location="http://localhost:9000/handlers/AddNumbersService/AddNumbersPort" />
+        </port>
+    </service>
+</definitions>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/handlers/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/handlers.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/handlers.xml?view=diff&rev=451565&r1=451564&r2=451565
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/handlers.xml (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/handlers.xml Sat Sep 30 02:27:43 2006
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--Sample XML file generated by XMLSPY v2004 rel. 4 U (http://www.xmlspy.com)-->
-<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
-C:\svn\cxf\trunk\rt\frontend\jaxws\src\main\resources\schemas\configuration\javaee_web_services_1_2.xsd" id="ID000042">
+<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>
 		<handler-name>lh1</handler-name>

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,49 @@
+/**
+ * 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 org.apache.cxf.systest.handlers;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersFault;
+//import org.apache.handlers.types.FaultDetail;
+
+@WebService(name = "AddNumbers", 
+            targetNamespace = "http://apache.org/handlers", 
+            portName = "AddNumbersPort", 
+            endpointInterface = "org.apache.handlers.AddNumbers", 
+            serviceName = "AddNumbersService")
+@HandlerChain(file = "./handlers.xml", name = "TestHandlerChain")
+public class AddNumbersImpl implements AddNumbers {
+
+    /**
+     * @param number1
+     * @param number2
+     * @return The sum
+     * @throws AddNumbersException
+     *             if any of the numbers to be added is negative.
+     */
+    public void addNumbers(String number1) throws AddNumbersFault {
+        System.out.println("addNumbers called....." + number1);
+        return;
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/AddNumbersImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,86 @@
+/**
+ * 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 org.apache.cxf.systest.handlers;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+
+//import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.Endpoint;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.cxf.systest.common.ClientServerSetupBase;
+import org.apache.cxf.systest.common.ClientServerTestBase;
+import org.apache.cxf.systest.common.TestServerBase;
+import org.apache.handlers.AddNumbers;
+import org.apache.handlers.AddNumbersService;
+
+public class HandlerClientServerTest extends ClientServerTestBase {
+
+    static QName serviceName = new QName("http://apache.org/handlers", "AddNumbersService");
+
+    static QName portName = new QName("http://apache.org/handlers", "AddNumbersPort");
+
+    public static class Server extends TestServerBase {
+
+        protected void run() {
+            Object implementor = new AddNumbersImpl();
+            String address = "http://localhost:9025/handlers/AddNumbersService/AddNumbersPort";
+            Endpoint.publish(address, implementor);
+        }
+
+        public static void main(String[] args) {
+            try {
+                Server s = new Server();
+                s.start();
+            } catch (Exception ex) {
+                ex.printStackTrace();
+                System.exit(-1);
+            } finally {
+                System.out.println("done!");
+            }
+        }
+    }
+
+    public static Test suite() throws Exception {
+        TestSuite suite = new TestSuite(HandlerClientServerTest.class);
+        return new ClientServerSetupBase(suite) {
+            public void startServers() throws Exception {
+                assertTrue("server did not launch correctly", launchServer(Server.class));
+            }
+        };
+    }
+
+    public void testInvokeLogicalHandler() throws Exception {
+        URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
+
+        AddNumbersService service = new AddNumbersService(wsdl, serviceName);
+        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+
+        port.addNumbers("20");
+
+        //This assertion can not pass due to jira CXF-136: int type or more than two parameters dont work
+        //assertEquals("2020", result);
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerClientServerTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java Sat Sep 30 02:27:43 2006
@@ -0,0 +1,53 @@
+/**
+ * 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 org.apache.cxf.systest.handlers;
+
+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> {
+    public final boolean handleMessage(LogicalMessageContext messageContext) {
+        return true;
+    }
+
+    public final boolean handleFault(LogicalMessageContext messageContext) {
+        return true;
+    }
+
+    public void close(MessageContext ctx) {
+    }
+
+    public void init(Map config) {
+    }
+
+    public void destroy() {
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/SmallNumberHandler.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/handlers.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/handlers.xml?view=diff&rev=451565&r1=451564&r2=451565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/handlers.xml (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/handlers.xml Sat Sep 30 02:27:43 2006
@@ -1,50 +1,17 @@
 <?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.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xmlns:javaee="http://java.sun.com/xml/ns/javaee"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
-
-    <bean id="org.apache.cxf.jaxws.javaee.HandlerConfigBean" abstract="true">
-        <property name="jaxwshandler">
-            <value>
-                <javaee:jaxwshandler>
-                    <javaee:handler>
-				<javaee:handler-name>lh1</javaee:handler-name>
-				<javaee:handler-class>org.apache.cxf.systest.handlers.TestSOAPHandler</javaee:handler-class>
-				<javaee:init-param>
-					<javaee:param-name>token</javaee:param-name>
-					<javaee:param-value>String</javaee:param-value>
-				</javaee:init-param>
-                    </javaee:handler>
-                    <javaee:handler>
-				<javaee:handler-name>lh2</javaee:handler-name>
-				<javaee:handler-class>org.apache.cxf.systest.handlers.TestSOAPHandler</javaee:handler-class>
-				<javaee:init-param>
-					<javaee:param-name>token</javaee:param-name>
-					<javaee:param-value>String</javaee:param-value>
-				</javaee:init-param>
-                    </javaee:handler>
-                </javaee:jaxwshandler>
-            </value>
-        </property>
-    </bean>
-    
-</beans>
\ No newline at end of file
+<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>
+		<handler-name>lh1</handler-name>
+		<handler-class>org.apache.cxf.systest.handlers.SmallNumberHandler</handler-class>
+		<init-param>
+			<param-name>token</param-name>
+			<param-value>String</param-value>
+		</init-param>
+	</handler>
+    </handler-chain>
+</handler-chains>
\ No newline at end of file

Modified: incubator/cxf/trunk/testutils/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/pom.xml?view=diff&rev=451565&r1=451564&r2=451565
==============================================================================
--- incubator/cxf/trunk/testutils/pom.xml (original)
+++ incubator/cxf/trunk/testutils/pom.xml Sat Sep 30 02:27:43 2006
@@ -245,6 +245,9 @@
                                     <wsdl>${basedir}/src/main/resources/wsdl/attachment_types.wsdl</wsdl>
                                 </wsdlOption>
 
+                                <wsdlOption>
+                                    <wsdl>${basedir}/src/main/resources/wsdl/addNumbers.wsdl</wsdl>
+                                </wsdlOption>
                             </wsdlOptions>
                         </configuration>
                         <goals>

Added: incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl?view=auto&rev=451565
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl (added)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl Sat Sep 30 02:27:43 2006
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+    <types>
+        <xsd:schema
+            xmlns="http://www.w3.org/2001/XMLSchema"
+            targetNamespace="http://apache.org/handlers/types"
+            elementFormDefault="qualified">
+
+            <complexType name="addNumbersResponse">
+                <sequence>
+                </sequence>
+            </complexType>
+            <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
+
+            <complexType name="addNumbers">
+                <sequence>
+                    <element name="arg0" type="xsd:string" />
+                </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">
+            <soap:address location="http://localhost:9025/handlers/AddNumbersService/AddNumbersPort" />
+        </port>
+    </service>
+</definitions>

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message