cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r449958 [1/2] - in /incubator/cxf/trunk: distribution/src/main/release/samples/hello_world_xml_bare/ distribution/src/main/release/samples/hello_world_xml_bare/src/ distribution/src/main/release/samples/hello_world_xml_bare/src/demo/ distri...
Date Tue, 26 Sep 2006 09:15:20 GMT
Author: tli
Date: Tue Sep 26 02:15:18 2006
New Revision: 449958

URL: http://svn.apache.org/viewvc?view=rev&rev=449958
Log:
add mtom, xml_bare, xml_wrapp demo

Added:
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/README.txt   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/build.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/Client.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/GreeterImpl.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/Server.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/hello_world.wsdl   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/README.txt   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/build.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/Client.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/GreeterImpl.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/Server.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/hello_world.wsdl   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/me.bmp   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/HelloImpl.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/Server.java   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/mtom_xop.wsdl   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/wsi-swa.xsd   (with props)
Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/mtom/ClientServerMtomXopTest.java

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/README.txt?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/README.txt Tue Sep 26 02:15:18 2006
@@ -0,0 +1,154 @@
+Hello World Demo using BARE Style in XML Binding
+=============================================
+
+This demo illustrates how cxf works with xml binding instead of soap
+binding. And this specific demo shows you how xml binding works
+with the doc-lit bare style
+
+Please review the README in the samples directory before
+continuing.
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf.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/hello_world_xml_bare directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+  ant build
+  ant server
+  ant client
+    
+
+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/hello_world_xml_bare 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/hello_world.wsdl
+
+For Windows:
+  mkdir build\classes
+    Must use back slashes.
+
+  wsdl2java -d build\classes -compile .\wsdl\hello_world.wsdl
+    May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:  
+  
+  export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf.jar:./build/classes
+  javac -d build/classes src/demo/hw/client/*.java
+  javac -d build/classes src/demo/hw/server/*.java
+
+For Windows:
+  set classpath=%classpath%;%CXF_HOME%\lib\cxf.jar;.\build\classes
+  javac -d build\classes src\demo\hw\client\*.java
+  javac -d build\classes src\demo\hw\server\*.java
+
+
+
+Running the demo using java
+---------------------------
+
+From the samples/hello_world_xml_bare directory run the commands, entered 
+on a single command line:
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.server.Server &
+
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client ./wsdl/hello_world.wsdl
+
+The server process starts in the background.  After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+         demo.hw.server.Server
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client .\wsdl\hello_world.wsdl
+
+A new command windows opens for the server process.  After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+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
+
+
+
+Building and running the demo in a servlet container
+----------------------------------------------------
+
+From the samples/hello_world_xml_bare directory, the ant build script
+can be used to create the war file that is deployed into the
+servlet container.
+
+Build the war file with the command:
+
+  ant war
+    
+
+The war file will be included in the directory
+samples/hello_world_xml_bare/build/war.  Simply copy the war file into
+the servlet container's deployment directory.  For example,
+with Tomcat copy the war file into the directory
+<installationDirectory>/webapps.  The servlet container will
+extract the war and deploy the application.
+
+Make sure already copy all jars from CXF_HOME/lib to
+<TomcatInstallationDirectory>/shared/lib
+
+Using ant, run the client application with the command:
+
+  ant client-servlet -Dbase.url=http://localhost:#
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.
+
+Using java, run the client application with the command:
+
+  For UNIX:
+    
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+  For Windows:
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/build.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/build.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,50 @@
+<?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="hello world demo" default="build" basedir=".">
+
+    <import file="../common_build.xml"/>        
+        
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.hw.client.Client"
+            param1="${basedir}/wsdl/hello_world.wsdl" 
+            param2="${op}" 
+            param3="${param}"/>
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <cxfrun classname="demo.hw.server.Server" 
+            param1="${basedir}/wsdl/hello_world.wsdl"/>
+    </target>
+        
+    <target name="generate.code">
+        <echo level="info" message="Generating code using wsdl2java..."/>
+        <wsdl2java file="hello_world.wsdl"/>
+    </target>
+    
+    <target name="war" depends="build">
+        <cxfwar wsdl="hello_world.wsdl" filename="helloworld.war"/>
+	</target>
+
+    <target name="client-servlet" description="run demo client hitting servlet" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.hw.client.Client" param1="${base.url}/helloworld/cxf/hello_world" param2="${op}" param3="${param}"/>
+    </target> 
+</project>

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/Client.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/client/Client.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,99 @@
+/**
+ * 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.hw.client;
+
+import java.io.File;
+import java.net.URL;
+import javax.xml.namespace.QName;
+
+import org.apache.hello_world_xml_http.bare.Greeter;
+import org.apache.hello_world_xml_http.bare.XMLService;
+import org.apache.hello_world_xml_http.bare.types.MyComplexStructType;
+
+// import org.apache.hello_world_xml_http.bare.PingMeFault;
+
+public final class Client {
+
+    private static final QName SERVICE_NAME = new QName("http://apache.org/hello_world_xml_http/bare",
+            "XMLService");
+
+    private static final QName PORT_NAME = 
+        new QName("http://apache.org/hello_world_xml_http/bare", "XMLPort");
+
+    private Client() {
+    }
+
+    public static void main(String args[]) throws Exception {
+
+        if (args.length == 0) {
+            System.out.println("please specify wsdl");
+            System.exit(1);
+        }
+
+        URL wsdlURL;
+        File wsdlFile = new File(args[0]);
+        if (wsdlFile.exists()) {
+            wsdlURL = wsdlFile.toURL();
+        } else {
+            wsdlURL = new URL(args[0]);
+        }
+
+        System.out.println(wsdlURL);
+        XMLService service = new XMLService(wsdlURL, SERVICE_NAME);
+        Greeter greeter = (Greeter) service.getPort(PORT_NAME, Greeter.class);
+
+        System.out.println("Invoking sayHi...");
+        System.out.println("server responded with: " + greeter.sayHi());
+        System.out.println();
+
+        System.out.println("Invoking greetMe...");
+        System.out.println("server responded with: " + greeter.greetMe(System.getProperty("user.name")));
+        System.out.println();
+
+        MyComplexStructType argument = new MyComplexStructType();
+        MyComplexStructType retVal = null;
+
+        String str1 = "this is element 1";
+        String str2 = "this is element 2";
+        int int1 = 42;
+
+        argument.setElem1(str1);
+        argument.setElem2(str2);
+        argument.setElem3(int1);
+        System.out.println("Invoking sendReceiveData...");
+
+        retVal = greeter.sendReceiveData(argument);
+
+        System.out.println("Response from sendReceiveData operation :");
+        System.out.println("Element-1 : " + retVal.getElem1());
+        System.out.println("Element-2 : " + retVal.getElem2());
+        System.out.println("Element-3 : " + retVal.getElem3());
+        System.out.println();
+
+        /*
+         * try { System.out.println("Invoking pingMe, expecting exception...");
+         * port.pingMe(); } catch (PingMeFault ex) {
+         * System.out.println("Expected exception: PingMeFault has occurred: " +
+         * ex.getMessage()); }
+         */
+        System.exit(0);
+    }
+
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/GreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/GreeterImpl.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/GreeterImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/GreeterImpl.java Tue Sep 26 02:15:18 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.
+ */
+
+package demo.hw.server;
+
+import org.apache.hello_world_xml_http.bare.Greeter;
+import org.apache.hello_world_xml_http.bare.types.MyComplexStructType;
+
+@javax.jws.WebService(serviceName = "XMLService", 
+                portName = "XMLPort",
+                endpointInterface = "org.apache.hello_world_xml_http.bare.Greeter",
+                targetNamespace = "http://apache.org/hello_world_xml_http/bare")
+
+@javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
+
+public class GreeterImpl implements Greeter {
+
+    public String greetMe(String me) {
+        // TODO Auto-generated method stub
+        System.out.println("received calling greetMe!");
+        return "Hello " + me;        
+    }
+
+    public String sayHi() {
+        // TODO Auto-generated method stub
+        System.out.println("received calling sayHi!");
+        return "Bonjour";
+    }
+
+    public MyComplexStructType sendReceiveData(MyComplexStructType in) {
+        // TODO Auto-generated method stub
+        System.out.println("received calling sendReceiveData!");
+        return in;
+    }
+
+    public String testMultiParamPart(MyComplexStructType in2, String in1) {
+        // TODO Auto-generated method stub
+        in2.setElem1(in1);
+        return "Bonjour";
+    }
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/Server.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/src/demo/hw/server/Server.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,42 @@
+/**
+ * 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.hw.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+
+        Object implementor = new GreeterImpl();
+        String address = "http://localhost:9000/XMLService/XMLPort";
+        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/hello_world_xml_bare/src/demo/hw/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,31 @@
+<?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.
+-->
+<endpoints>
+
+    <endpoint
+        name="hello_world"
+        interface="org.apache.hello_world_soap_http.Greeter"
+        implementation="demo.hw.server.GreeterImpl"
+        wsdl="WEB-INF/wsdl/hello_world.wsdl"
+        service="{http://apache.org/hello_world_soap_http}SOAPService"
+        port="{http://apache.org/hello_world_soap_http}SOAPPort"
+        url-pattern="/hello_world" />
+
+</endpoints>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/hello_world.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/hello_world.wsdl?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/hello_world.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_bare/wsdl/hello_world.wsdl Tue Sep 26 02:15:18 2006
@@ -0,0 +1,133 @@
+<?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.
+-->
+<wsdl:definitions name="HelloWorld" targetNamespace="http://apache.org/hello_world_xml_http/bare" 
+		  xmlns="http://schemas.xmlsoap.org/wsdl/"
+		  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+		  xmlns:xformat="http://cxf.apache.org/bindings/xformat" 
+		  xmlns:tns="http://apache.org/hello_world_xml_http/bare"
+		  xmlns:x1="http://apache.org/hello_world_xml_http/bare/types"
+		  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    
+    <wsdl:types>
+	<schema targetNamespace="http://apache.org/hello_world_xml_http/bare/types" 
+		xmlns="http://www.w3.org/2001/XMLSchema" 
+		elementFormDefault="qualified">
+
+	    <element name="responseType" type="xsd:string"/>
+	    <element name="requestType" type="xsd:string"/>      
+	    <element name="myComplexStruct" type="x1:myComplexStructType"/>     
+	    
+	    <complexType name="myComplexStructType">
+		<sequence>
+		    <element name="elem1" type="xsd:string"/>
+		    <element name="elem2" type="xsd:string"/>
+		    <element name="elem3" type="xsd:int"/>
+		</sequence>
+	    </complexType>
+	</schema>
+    </wsdl:types>
+    
+    <wsdl:message name="sayHiRequest"/>
+    
+    <wsdl:message name="sayHiResponse">
+	<wsdl:part type="xsd:string" name="out"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeRequest">
+	<wsdl:part element="x1:requestType" name="me"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeResponse">
+	<wsdl:part element="x1:responseType" name="theResponse"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataRequest">
+	<wsdl:part type="x1:myComplexStructType" name="in"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataResponse">
+	<wsdl:part type="x1:myComplexStructType" name="out"/>
+    </wsdl:message>
+
+    <wsdl:message name="multiParamPartRequest">
+	<wsdl:part element="x1:requestType" name="in1"/>
+	<wsdl:part element="x1:myComplexStruct" name="in2"/>
+    </wsdl:message>
+    
+    <wsdl:message name="multiParamPartResponse">
+	<wsdl:part element="x1:responseType" name="out1"/>
+    </wsdl:message>
+
+    <wsdl:portType name="Greeter">
+	<wsdl:operation name="sayHi">
+	    <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+	    <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="greetMe">
+	    <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/>
+	    <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input message="tns:sendReceiveDataRequest" name="SendReceiveDataRequest"/>
+	    <wsdl:output message="tns:sendReceiveDataResponse" name="SendReceiveDataResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="testMultiParamPart" parameterOrder="in2 in1">
+	    <wsdl:input message="tns:multiParamPartRequest" name="multiParamPartRequest"/>
+	    <wsdl:output message="tns:multiParamPartResponse" name="multiParamPartResponse"/>
+	</wsdl:operation>
+    </wsdl:portType>
+    
+    <wsdl:binding name="Greeter_XMLBinding" type="tns:Greeter">
+
+	<xformat:binding/>
+
+	<wsdl:operation name="sayHi">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:sayHi"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="greetMe">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+	<wsdl:operation name="testMultiParamPart">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:multiParamRootReq"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+    </wsdl:binding>
+    
+    <wsdl:service name="XMLService">
+	<wsdl:port binding="tns:Greeter_XMLBinding" name="XMLPort">
+	    <http:address location="http://localhost:9000/XMLService/XMLPort"/>
+	</wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/README.txt?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/README.txt Tue Sep 26 02:15:18 2006
@@ -0,0 +1,154 @@
+Hello World Demo using WRAPPED Style in XML Binding
+=============================================
+
+This demo illustrates how cxf works with xml binding instead of soap
+binding. And this specific demo shows you how xml binding works
+with the doc-lit wrapped style.
+
+Please review the README in the samples directory before
+continuing.
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf.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/hello_world_xml_wrapped directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+  ant build
+  ant server
+  ant client
+    
+
+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/hello_world_xml_wrapped 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/hello_world.wsdl
+
+For Windows:
+  mkdir build\classes
+    Must use back slashes.
+
+  wsdl2java -d build\classes -compile .\wsdl\hello_world.wsdl
+    May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:  
+  
+  export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf.jar:./build/classes
+  javac -d build/classes src/demo/hw/client/*.java
+  javac -d build/classes src/demo/hw/server/*.java
+
+For Windows:
+  set classpath=%classpath%;%CXF_HOME%\lib\cxf.jar;.\build\classes
+  javac -d build\classes src\demo\hw\client\*.java
+  javac -d build\classes src\demo\hw\server\*.java
+
+
+
+Running the demo using java
+---------------------------
+
+From the samples/hello_world_xml_wrapped directory run the commands, entered 
+on a single command line:
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.server.Server &
+
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client ./wsdl/hello_world.wsdl
+
+The server process starts in the background.  After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+         demo.hw.server.Server
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client .\wsdl\hello_world.wsdl
+
+A new command windows opens for the server process.  After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+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
+
+
+
+Building and running the demo in a servlet container
+----------------------------------------------------
+
+From the samples/hello_world_xml_wrapped directory, the ant build script
+can be used to create the war file that is deployed into the
+servlet container.
+
+Build the war file with the command:
+
+  ant war
+    
+
+The war file will be included in the directory
+samples/hello_world_xml_wrapped/build/war.  Simply copy the war file into
+the servlet container's deployment directory.  For example,
+with Tomcat copy the war file into the directory
+<installationDirectory>/webapps.  The servlet container will
+extract the war and deploy the application.
+
+Make sure already copy all jars from CXF_HOME/lib to
+<TomcatInstallationDirectory>/shared/lib
+
+Using ant, run the client application with the command:
+
+  ant client-servlet -Dbase.url=http://localhost:#
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.
+
+Using java, run the client application with the command:
+
+  For UNIX:
+    
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+  For Windows:
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/build.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/build.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,50 @@
+<?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="hello world demo" default="build" basedir=".">
+
+    <import file="../common_build.xml"/>        
+        
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.hw.client.Client"
+            param1="${basedir}/wsdl/hello_world.wsdl" 
+            param2="${op}" 
+            param3="${param}"/>
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <cxfrun classname="demo.hw.server.Server" 
+            param1="${basedir}/wsdl/hello_world.wsdl"/>
+    </target>
+        
+    <target name="generate.code">
+        <echo level="info" message="Generating code using wsdl2java..."/>
+        <wsdl2java file="hello_world.wsdl"/>
+    </target>
+    
+    <target name="war" depends="build">
+        <cxfwar wsdl="hello_world.wsdl" filename="helloworld.war"/>
+	</target>
+
+    <target name="client-servlet" description="run demo client hitting servlet" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.hw.client.Client" param1="${base.url}/helloworld/cxf/hello_world" param2="${op}" param3="${param}"/>
+    </target> 
+</project>

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/Client.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/client/Client.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,87 @@
+/**
+ * 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.hw.client;
+
+import java.io.File;
+import java.net.URL;
+import javax.xml.namespace.QName;
+
+import org.apache.hello_world_xml_http.wrapped.Greeter;
+import org.apache.hello_world_xml_http.wrapped.XMLService;
+
+// import org.apache.hello_world_xml_http.wrapped.PingMeFault;
+
+public final class Client {
+
+    public static final QName SERVICE_NAME = new QName("http://apache.org/hello_world_xml_http/wrapped",
+            "XMLService");
+
+    public static final QName PORT_NAME = 
+        new QName("http://apache.org/hello_world_xml_http/wrapped", "XMLPort");
+
+    private Client() {
+    }
+
+    public static void main(String args[]) throws Exception {
+
+        if (args.length == 0) {
+            System.out.println("please specify wsdl");
+            System.exit(1);
+        }
+
+        URL wsdlURL;
+        File wsdlFile = new File(args[0]);
+        if (wsdlFile.exists()) {
+            wsdlURL = wsdlFile.toURL();
+        } else {
+            wsdlURL = new URL(args[0]);
+        }
+
+        System.out.println(wsdlURL);
+        XMLService ss = new XMLService(wsdlURL, SERVICE_NAME);
+        Greeter port = ss.getXMLPort();
+        String resp;
+
+        System.out.println("Invoking sayHi...");
+        resp = port.sayHi();
+        System.out.println("Server responded with: " + resp);
+        System.out.println();
+
+        System.out.println("Invoking greetMe...");
+        resp = port.greetMe(System.getProperty("user.name"));
+        System.out.println("Server responded with: " + resp);
+        System.out.println();
+
+        System.out.println("Invoking greetMeOneWay...");
+        port.greetMeOneWay(System.getProperty("user.name"));
+        System.out.println("No response from server as method is OneWay");
+        System.out.println();
+
+        /*
+         * try { System.out.println("Invoking pingMe, expecting exception...");
+         * port.pingMe(); } catch (PingMeFault ex) {
+         * System.out.println("Expected exception: " + ex.getMessage()); }
+         */
+
+        System.exit(0);
+
+    }
+
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/GreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/GreeterImpl.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/GreeterImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/GreeterImpl.java Tue Sep 26 02:15:18 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.
+ */
+
+package demo.hw.server;
+
+import org.apache.hello_world_xml_http.wrapped.Greeter;
+import org.apache.hello_world_xml_http.wrapped.PingMeFault;
+import org.apache.hello_world_xml_http.wrapped.types.FaultDetail;
+
+@javax.jws.WebService(serviceName = "XMLService", 
+                      portName = "XMLPort",
+                      endpointInterface = "org.apache.hello_world_xml_http.wrapped.Greeter",
+                      targetNamespace = "http://apache.org/hello_world_xml_http/wrapped")
+
+@javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
+
+public class GreeterImpl implements Greeter {
+
+    public String greetMe(String me) {
+        System.out.println("received calling greetMe!");
+        return "Hello " + me;
+    }
+
+    public void greetMeOneWay(String me) {
+        System.out.println("Executing operation greetMeOneWay\n");
+        System.out.println("Hello there " + me);
+    }
+
+    public String sayHi() {
+        System.out.println("received calling sayHi!");
+        return "Bonjour";
+    }
+
+    public void pingMe() throws PingMeFault {
+        System.out.println("received calling PingMeFault!");
+        FaultDetail faultDetail = new FaultDetail();
+        faultDetail.setMajor((short)2);
+        faultDetail.setMinor((short)1);
+        throw new PingMeFault("PingMeFault raised by server", faultDetail);
+    }
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/Server.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/src/demo/hw/server/Server.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,41 @@
+/**
+ * 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.hw.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+        Object implementor = new GreeterImpl();
+        String address = "http://localhost:9000/XMLService/XMLPort";
+        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/hello_world_xml_wrapped/src/demo/hw/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,31 @@
+<?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.
+-->
+<endpoints>
+
+    <endpoint
+        name="hello_world"
+        interface="org.apache.hello_world_soap_http.Greeter"
+        implementation="demo.hw.server.GreeterImpl"
+        wsdl="WEB-INF/wsdl/hello_world.wsdl"
+        service="{http://apache.org/hello_world_soap_http}SOAPService"
+        port="{http://apache.org/hello_world_soap_http}SOAPPort"
+        url-pattern="/hello_world" />
+
+</endpoints>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/hello_world.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/hello_world.wsdl?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/hello_world.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/hello_world_xml_wrapped/wsdl/hello_world.wsdl Tue Sep 26 02:15:18 2006
@@ -0,0 +1,168 @@
+<?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.
+-->
+<wsdl:definitions name="HelloWorld"
+	targetNamespace="http://apache.org/hello_world_xml_http/wrapped"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+	xmlns:tns="http://apache.org/hello_world_xml_http/wrapped"
+	xmlns:x1="http://apache.org/hello_world_xml_http/wrapped/types"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xformat="http://cxf.apache.org/bindings/xformat"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+	<wsdl:types>
+		<schema
+			targetNamespace="http://apache.org/hello_world_xml_http/wrapped/types"
+			xmlns="http://www.w3.org/2001/XMLSchema"
+			elementFormDefault="qualified">
+			<element name="sayHi">
+				<complexType />
+			</element>
+			<element name="sayHiResponse">
+				<complexType>
+					<sequence>
+						<element name="responseType" type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+
+			<element name="greetMe">
+				<complexType>
+					<sequence>
+						<element name="requestType" type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="greetMeResponse">
+				<complexType>
+					<sequence>
+						<element name="responseType" type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="greetMeOneWay">
+				<complexType>
+					<sequence>
+						<element name="requestType" type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+
+			<element name="pingMe">
+				<complexType />
+			</element>
+			<element name="pingMeResponse">
+				<complexType />
+			</element>
+			<element name="faultDetail">
+				<complexType>
+					<sequence>
+						<element name="minor" type="xsd:short" />
+						<element name="major" type="xsd:short" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="sayHiRequest">
+		<wsdl:part element="x1:sayHi" name="in" />
+	</wsdl:message>
+	<wsdl:message name="sayHiResponse">
+		<wsdl:part element="x1:sayHiResponse" name="out" />
+	</wsdl:message>
+	<wsdl:message name="greetMeRequest">
+		<wsdl:part element="x1:greetMe" name="in" />
+	</wsdl:message>
+	<wsdl:message name="greetMeResponse">
+		<wsdl:part element="x1:greetMeResponse" name="out" />
+	</wsdl:message>
+	<wsdl:message name="greetMeOneWayRequest">
+		<wsdl:part element="x1:greetMeOneWay" name="in" />
+	</wsdl:message>
+
+	<wsdl:message name="pingMeRequest">
+		<wsdl:part name="in" element="x1:pingMe" />
+	</wsdl:message>
+	<wsdl:message name="pingMeResponse">
+		<wsdl:part name="out" element="x1:pingMeResponse" />
+	</wsdl:message>
+	<wsdl:message name="pingMeFault">
+		<wsdl:part name="faultDetail" element="x1:faultDetail" />
+	</wsdl:message>
+
+	<wsdl:portType name="Greeter">
+		<wsdl:operation name="sayHi">
+			<wsdl:input message="tns:sayHiRequest" name="sayHiRequest" />
+			<wsdl:output message="tns:sayHiResponse"
+				name="sayHiResponse" />
+		</wsdl:operation>
+
+		<wsdl:operation name="greetMe">
+			<wsdl:input message="tns:greetMeRequest"
+				name="greetMeRequest" />
+			<wsdl:output message="tns:greetMeResponse"
+				name="greetMeResponse" />
+		</wsdl:operation>
+
+		<wsdl:operation name="greetMeOneWay">
+			<wsdl:input message="tns:greetMeOneWayRequest"
+				name="greetMeOneWayRequest" />
+		</wsdl:operation>
+
+		<wsdl:operation name="pingMe">
+			<wsdl:input name="pingMeRequest"
+				message="tns:pingMeRequest" />
+			<wsdl:output name="pingMeResponse"
+				message="tns:pingMeResponse" />
+			<wsdl:fault name="pingMeFault" message="tns:pingMeFault" />
+		</wsdl:operation>
+
+	</wsdl:portType>
+	<wsdl:binding name="Greeter_XMLBinding" type="tns:Greeter">
+		<xformat:binding />
+
+		<wsdl:operation name="sayHi">
+			<wsdl:input name="sayHiRequest" />
+			<wsdl:output name="sayHiResponse" />
+		</wsdl:operation>
+
+		<wsdl:operation name="greetMe">
+			<wsdl:input name="greetMeRequest" />
+			<wsdl:output name="greetMeResponse" />
+		</wsdl:operation>
+
+		<wsdl:operation name="greetMeOneWay">
+			<wsdl:input name="greetMeOneWayRequest" />
+		</wsdl:operation>
+
+		<wsdl:operation name="pingMe">
+			<wsdl:input />
+			<wsdl:output />
+			<wsdl:fault name="pingMeFault" />
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="XMLService">
+		<wsdl:port binding="tns:Greeter_XMLBinding" name="XMLPort">
+			<http:address
+				location="http://localhost:9000/XMLService/XMLPort" />
+		</wsdl:port>		
+	</wsdl:service>
+</wsdl:definitions>
+

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt Tue Sep 26 02:15:18 2006
@@ -0,0 +1,155 @@
+MTOM Demo for SWA & XOP
+=============================================
+
+This is the demo for using attachment in soap. It illustrate
+the usage of Soap message with Attachment and XML-binary 
+Optimized Packaging.
+
+Please review the README in the samples directory before
+continuing.
+
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf.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/mtom directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+  ant build
+  ant server
+  ant client
+    
+
+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/mtom 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/mtom_xop.wsdl
+
+For Windows:
+  mkdir build\classes
+    Must use back slashes.
+
+  wsdl2java -d build\classes -compile .\wsdl\mtom_xop.wsdl
+    May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:  
+  
+  export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf.jar:./build/classes
+  javac -d build/classes src/demo/mtom/client/*.java
+  javac -d build/classes src/demo/mtom/server/*.java
+
+For Windows:
+  set classpath=%classpath%;%CXF_HOME%\lib\cxf.jar;.\build\classes
+  javac -d build\classes src\demo\mtom\client\*.java
+  javac -d build\classes src\demo\mtom\server\*.java
+
+
+
+Running the demo using java
+---------------------------
+
+From the samples/mtom directory run the commands, entered on a
+single command line:
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.server.Server &
+
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client ./wsdl/mtom_xop.wsdl
+
+The server process starts in the background.  After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+         demo.hw.server.Server
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client .\wsdl\mtom_xop.wsdl
+
+A new command windows opens for the server process.  After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+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
+
+
+
+Building and running the demo in a servlet container
+----------------------------------------------------
+
+From the samples/mtom directory, the ant build script
+can be used to create the war file that is deployed into the
+servlet container.
+
+Build the war file with the command:
+
+  ant war
+    
+
+The war file will be included in the directory
+samples/mtom/build/war.  Simply copy the war file into
+the servlet container's deployment directory.  For example,
+with Tomcat copy the war file into the directory
+<installationDirectory>/webapps.  The servlet container will
+extract the war and deploy the application.
+
+Make sure already copy all jars from CXF_HOME/lib to
+<TomcatInstallationDirectory>/shared/lib
+
+Using ant, run the client application with the command:
+
+  ant client-servlet -Dbase.url=http://localhost:#
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.
+
+Using java, run the client application with the command:
+
+  For UNIX:
+    
+    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+         demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+  For Windows:
+
+    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+       demo.hw.client.Client http://localhost:#/helloworld/cxf/hello_world
+
+Where # is the TCP/IP port used by the servlet container,
+e.g., 8080.

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,51 @@
+<?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="mtom demo" default="build" basedir=".">
+
+    <import file="../common_build.xml"/>        
+        
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.mtom.client.Client"
+            param1="${basedir}/wsdl/mtom_xop.wsdl" 
+            param2="${op}" 
+            param3="${basedir}/src/demo/mtom/client/me.bmp"/>
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <cxfrun classname="demo.mtom.server.Server" 
+            param1="${basedir}/wsdl/mtom_xop.wsdl"/>
+    </target>
+        
+    <target name="generate.code">
+        <echo level="info" message="Generating code using wsdl2java..."/>
+        <wsdl2java file="mtom_xop.wsdl"/>
+    </target>
+    
+    <target name="war" depends="build">
+        <cxfwar wsdl="mtom_xop.wsdl" filename="mtom.war"/>
+	</target>
+
+    <target name="client-servlet" description="run demo client hitting servlet" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.mtom.client.Client" param1="${base.url}/mtom/cxf/mime_test" param2="${op}" 
+		param3="${basedir}/src/demo/mtom/client/me.bmp"/>
+    </target> 
+</project>

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

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,112 @@
+/**
+ * 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.mtom.client;
+
+import java.awt.Image;
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStream;
+import java.net.URL;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.imageio.ImageIO;
+import javax.mail.util.ByteArrayDataSource;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+
+import org.apache.cxf.mime.Hello;
+import org.apache.cxf.mime.HelloService;
+
+public final class Client {
+
+    private static final QName SERVICE_NAME 
+        = new QName("http://cxf.apache.org/mime", "HelloService");
+
+    private static final QName PORT_NAME 
+        = new QName("http://cxf.apache.org/mime", "HelloPort");
+
+    private Client() {
+    } 
+
+    public static void main(String args[]) throws Exception {
+
+        Client client = new Client();
+        
+        if (args.length == 0) { 
+            System.out.println("please specify wsdl");
+            System.exit(1); 
+        }
+        URL wsdlURL;
+        File wsdlFile = new File(args[0]);
+        File bmpFile = new File(args[2]);
+        if (wsdlFile.exists()) {
+            wsdlURL = wsdlFile.toURL();
+        } else {
+            wsdlURL = new URL(args[0]);
+        }        
+        System.out.println(wsdlURL);
+
+        HelloService ss = new HelloService(wsdlURL, SERVICE_NAME);
+        Hello port = (Hello) ss.getPort(PORT_NAME, Hello.class);
+
+        ByteArrayDataSource bads = new ByteArrayDataSource(getResourceStream(wsdlFile),
+                                                           "Application/octet-stream");
+        DataHandler dh = new DataHandler(bads);
+        System.out.println("Start test the Soap Message with Attachment!");
+        System.out.println("sending out the Client.java file content as attachment to server");
+        DataHandler dhResp = port.claimForm(dh);
+        DataSource ds = dhResp.getDataSource();
+        InputStream in = ds.getInputStream();
+        System.out.println("get back the mtom_xop.wsdl file content as attachment back from server");
+        System.out.println("start print the Client.java content:");
+        for (int i = in.read(); i != -1; i = in.read()) {
+            System.out.write(i);
+        }
+        System.out.println("finished print the mtom_xop.wsdl content.");        
+        
+
+        InputStream pre = getResourceStream(bmpFile);
+        long fileSize = 0;
+        for (int i = pre.read(); i != -1; i = pre.read()) {
+            fileSize++;
+        }
+        Holder<byte[]> param = new Holder<byte[]>();
+        param.value = new byte[(int) fileSize];
+        System.out.println("Start test the XML-binary Optimized Packaging!");
+        System.out.println("Sending out the me.bmp Image content to server, data size is " + fileSize);
+        getResourceStream(bmpFile).read(param.value);
+        String target = new String(param.value);
+        Holder<String> name = new Holder<String>("call detail");
+        port.detail(name, param);
+        System.out.println("received byte[] back from server, the size is " + param.value.length);
+        
+        Image image = ImageIO.read(new ByteArrayInputStream(param.value));        
+        System.out.println("build image with the returned byte[] back from server successfully");
+
+        System.exit(0); 
+    }
+
+    private static InputStream getResourceStream(File file) throws Exception {
+        InputStream in = new FileInputStream(file);
+        return in;
+    }
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/me.bmp
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/me.bmp?view=auto&rev=449958
==============================================================================
Binary file - no diff available.

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/me.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/HelloImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/HelloImpl.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/HelloImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/HelloImpl.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,54 @@
+/**
+ * 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.mtom.server;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+import org.apache.cxf.mime.Hello;
+
+@WebService(serviceName = "HelloService",
+                portName = "HelloPort",
+                endpointInterface = "org.apache.cxf.mime.Hello",
+                targetNamespace = "http://cxf.apache.org/mime")
+
+public class HelloImpl implements Hello {
+
+    public DataHandler claimForm(DataHandler data) {
+        System.out.println("Received data handler from client");
+        System.out.println("The data handler content type is " + data.getContentType());
+        return data;
+    }
+
+    public void detail(Holder<String> name, Holder<byte[]> attachinfo) {
+        System.out.println("Received image holder data from client");
+        System.out.println("The image holder data length is " + attachinfo.value.length);        
+        name.value = "return detail + " + name.value;        
+    }
+
+    public void echoData(String body, Holder<byte[]> data) {
+    }
+
+    public void echoDataWithEnableMIMEContent(String body, Holder<byte[]> data) {
+        System.out.println(body);
+    }
+
+}

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/Server.java?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/server/Server.java Tue Sep 26 02:15:18 2006
@@ -0,0 +1,41 @@
+/**
+ * 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.mtom.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+        Object implementor = new HelloImpl();
+        String address = "http://localhost:9000/mime-test";
+        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/mtom/src/demo/mtom/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml Tue Sep 26 02:15:18 2006
@@ -0,0 +1,31 @@
+<?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.
+-->
+<endpoints>
+
+    <endpoint
+        name="hello_world"
+        interface="org.apache.hello_world_soap_http.Greeter"
+        implementation="demo.hw.server.GreeterImpl"
+        wsdl="WEB-INF/wsdl/hello_world.wsdl"
+        service="{http://apache.org/hello_world_soap_http}SOAPService"
+        port="{http://apache.org/hello_world_soap_http}SOAPPort"
+        url-pattern="/hello_world" />
+
+</endpoints>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/cxf-servlet.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/mtom_xop.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/mtom_xop.wsdl?view=auto&rev=449958
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/mtom_xop.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/wsdl/mtom_xop.wsdl Tue Sep 26 02:15:18 2006
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="SOAPBuilders-mime-cr-test" xmlns:types="http://cxf.apache.org/mime/types"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://cxf.apache.org/mime"
+    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://cxf.apache.org/mime">
+
+    <wsdl:types>
+        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cxf.apache.org/mime/types"
+            xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified"
+            xmlns:ref="http://ws-i.org/profiles/basic/1.1/xsd">
+            <import namespace="http://ws-i.org/profiles/basic/1.1/xsd" schemaLocation="wsi-swa.xsd" />
+            <complexType name="DetailType">
+                <sequence>
+                    <element name="name" type="xsd:string" />
+                    <element name="attachinfo" type="xsd:base64Binary" />
+                </sequence>
+            </complexType>
+            <element name="claimForm" type="ref:swaRef" />
+            <element name="claimFormResponse" type="ref:swaRef" />
+            <element name="Detail" type="types:DetailType" />
+            <element name="DetailResponse" type="types:DetailType" />
+            <element name="body" type="string" />
+            <element name="mimeBody" type="string" />
+        </schema>
+
+    </wsdl:types>
+
+    <wsdl:message name="echoDataIn">
+        <wsdl:part name="body" element="types:body" />
+        <wsdl:part name="data" type="xsd:base64Binary" />
+    </wsdl:message>
+
+    <wsdl:message name="echoDataOut">
+        <wsdl:part name="data" type="xsd:base64Binary" />
+    </wsdl:message>
+
+    <wsdl:message name="echoDataMimeIn">
+        <wsdl:part name="body" element="types:mimeBody" />
+        <wsdl:part name="data" type="xsd:base64Binary" />
+    </wsdl:message>
+
+    <wsdl:message name="echoDataMimeOut">
+        <wsdl:part name="data" type="xsd:base64Binary" />
+    </wsdl:message>
+
+    <wsdl:message name="HelloIn">
+        <wsdl:part name="data" element="types:Detail" />
+    </wsdl:message>
+
+    <wsdl:message name="HelloOut">
+        <wsdl:part name="data" element="types:DetailResponse" />
+    </wsdl:message>
+
+    <wsdl:message name="claimFormIn">
+        <wsdl:part name="data" element="types:claimForm" />
+    </wsdl:message>
+
+    <wsdl:message name="claimFormOut">
+        <wsdl:part name="data" element="types:claimFormResponse" />
+    </wsdl:message>
+
+    <wsdl:portType name="Hello">
+        <!-- wsdl mime test with enableMTOMContent disabled(default) -->
+        <wsdl:operation name="echoData">
+            <wsdl:input message="tns:echoDataIn" />
+            <wsdl:output message="tns:echoDataOut" />
+        </wsdl:operation>
+
+        <!-- wsdl mime test with enableMIMEContent enabled -->
+        <wsdl:operation name="echoDataWithEnableMIMEContent">
+            <wsdl:input message="tns:echoDataMimeIn" />
+            <wsdl:output message="tns:echoDataMimeOut" />
+        </wsdl:operation>
+
+        <!-- wsdl mime test with enableMIMEContent enabled -->
+        <wsdl:operation name="Detail">
+            <wsdl:input message="tns:HelloIn" />
+            <wsdl:output message="tns:HelloOut" />
+        </wsdl:operation>
+
+        <!-- swaref test -->
+        <wsdl:operation name="claimForm">
+            <wsdl:input message="tns:claimFormIn" />
+            <wsdl:output message="tns:claimFormOut" />
+        </wsdl:operation>
+
+    </wsdl:portType>
+
+    <wsdl:binding name="HelloBinding" type="tns:Hello">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+
+        <wsdl:operation name="echoData">
+            <soap:operation soapAction="" />
+            <wsdl:input>
+                <mime:multipartRelated>
+                    <mime:part>
+                        <soap:body parts="body" use="literal" />
+                    </mime:part>
+                    <mime:part>
+                        <mime:content part="data" type="image/jpeg" />
+                    </mime:part>
+                </mime:multipartRelated>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:multipartRelated>
+                    <mime:part>
+                        <soap:body parts="" use="literal" />
+                    </mime:part>
+                    <mime:part>
+                        <mime:content part="data" type="image/jpeg" />
+                    </mime:part>
+                </mime:multipartRelated>
+            </wsdl:output>
+        </wsdl:operation>
+
+        <wsdl:operation name="echoDataWithEnableMIMEContent">
+            <soap:operation soapAction="" />
+            <wsdl:input>
+                <mime:multipartRelated>
+                    <mime:part>
+                        <soap:body parts="body" use="literal" />
+                    </mime:part>
+                    <mime:part>
+                        <mime:content part="data" type="image/bmp" />
+                    </mime:part>
+                </mime:multipartRelated>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:multipartRelated>
+                    <mime:part>
+                        <soap:body parts="" use="literal" />
+                    </mime:part>
+                    <mime:part>
+                        <mime:content part="data" type="image/bmp" />
+                    </mime:part>
+                </mime:multipartRelated>
+            </wsdl:output>
+        </wsdl:operation>
+
+        <wsdl:operation name="Detail">
+            <soap:operation soapAction="" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:multipartRelated>
+                    <mime:part>
+                        <soap:body parts="" use="literal" />
+                    </mime:part>
+                    <mime:part>
+                        <mime:content part="data" type="text/xml" />
+                    </mime:part>
+                </mime:multipartRelated>
+            </wsdl:output>
+        </wsdl:operation>
+
+        <wsdl:operation name="claimForm">
+            <soap:operation soapAction="" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+        </wsdl:operation>
+
+    </wsdl:binding>
+
+    <wsdl:service name="HelloService">
+        <wsdl:port name="HelloPort" binding="tns:HelloBinding">
+            <soap:address location="http://localhost:9000/mime-test" />
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>
\ No newline at end of file

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

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



Mime
View raw message