You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/06/14 23:01:27 UTC

svn commit: r190655 [1/2] - in /incubator/beehive/trunk/system-controls: src/webservice/org/apache/beehive/controls/system/webservice/generator/ test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/ test/src/webservice/schemas/ test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/ test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/ test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/ test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex2/ test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex3/ test/src/webservice/servers/webapp/WEB-INF/webservices/web/webparam/ test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/ test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/

Author: ekoneil
Date: Tue Jun 14 14:01:25 2005
New Revision: 190655

URL: http://svn.apache.org/viewcvs?rev=190655&view=rev
Log:
Add new service control tests.  Note, most of these are currently disabled.

These are patches from BEEHIVE-806 and BEEHIVE-807 from Chad Schoettger.

The tests will be re-enabled as SC bugs are fixed.

BB: self
DRT: Beehive / service control pass


Added:
    incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralBareSample.wsdl
    incubator/beehive/trunk/system-controls/test/src/webservice/schemas/RpcLiteralSample.wsdl
    incubator/beehive/trunk/system-controls/test/src/webservice/schemas/WebParamDocumentLiteralSample.wsdl
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/StateType.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/Address.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/AddressException.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/AddressHolder.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/MessageHandler.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/Phone.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/webparam/StateType.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex2/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex2/DocumentLiteralBareSample.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex3/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/complex3/RpcLiteralSample.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/webparam/
    incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/webservices/web/webparam/WebParamDocumentLiteralSample.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/DocLitBareWebServiceTest.java   (with props)
    incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/RpcLitWebServiceTest.java   (with props)
Modified:
    incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/ExtensionMaker.java
    incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/JcxGenFromDocLitBareWsdlTest.java
    incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/dlwservice/DocLitWrapWebServiceTest.java

Modified: incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/ExtensionMaker.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/ExtensionMaker.java?rev=190655&r1=190654&r2=190655&view=diff
==============================================================================
--- incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/ExtensionMaker.java (original)
+++ incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/ExtensionMaker.java Tue Jun 14 14:01:25 2005
@@ -45,22 +45,20 @@
 /**
  *
  */
-public class ExtensionMaker {
+public final class ExtensionMaker {
 
     private static final FileFilter FILE_FILTER_WSDL = new WSDLFilter();
 
     private static final String[] standardImports = {
-            "org.apache.beehive.controls.api.bean.ControlExtension",
-            "org.apache.beehive.controls.system.webservice.ServiceControl",
-            "org.apache.beehive.controls.system.webservice.ServiceControl.Location",
-            "org.apache.beehive.controls.system.webservice.ServiceControl.WSDL", };
-
-    File mOutputDir;
-
-    String mWSDLPath = "<path to WSDL>";
-
-    String packageName = null;
-
+        "org.apache.beehive.controls.api.bean.ControlExtension",
+        "org.apache.beehive.controls.system.webservice.ServiceControl",
+        "org.apache.beehive.controls.system.webservice.ServiceControl.Location",
+        "org.apache.beehive.controls.system.webservice.ServiceControl.WSDL"
+    };
+
+    private File mOutputDir;
+    private String mWSDLPath = "<path to WSDL>";
+    private String packageName = null;
     private String serviceURL = null;
 
     public ExtensionMaker(File outputDir) {
@@ -88,7 +86,7 @@
     public void writeJCX(BeehiveWsTypeMetadata wsm) throws Exception {
         String serviceName = wsm.getWsServiceName();
 
-        // TODO: Should the class generation depend on Axis?
+        /* todo: Should the class generation depend on Axis? */
         if (packageName == null) {
             packageName = Utils.makePackageName(wsm.getWsTargetNamespace());
         }
@@ -219,6 +217,10 @@
             if (paramName == null) {
                 paramName = "param" + paramPos;
             }
+            else if (GeneratorUtils.isJavaReservedWord(paramName)) {
+                paramName = GeneratorUtils.transformJavaReservedWord(paramName);
+            }
+
             pw.print(paramName);
             paramPos++;
         }

Added: incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java (added)
+++ incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed 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.beehive.controls.system.webservice.generator;
+
+import java.util.Arrays;
+
+/**
+ * Utilities for service control generation.
+ */
+final class GeneratorUtils {
+
+    private static final char JAVA_RESERVEDWORD_PREFIX = '_';
+
+    /**
+     * List of java reserved words.  Must be kept sorted in ascending order.
+     */
+    private static final String javaReservedWords[] =
+    {
+        "abstract",   "assert",    "boolean",      "break",      "byte",
+        "case",       "catch",     "char",         "class",      "const",
+        "continue",   "default",   "do",           "double",     "else",
+        "extends",    "false",     "final",        "finally",    "float",
+        "for",        "goto",      "if",           "implements", "import",
+        "instanceof", "int",       "interface",    "long",       "native",
+        "new",        "null",      "package",      "private",    "protected",
+        "public",     "return",    "short",        "static",     "strictfp",
+        "super",      "switch",    "synchronized", "this",       "throw",
+        "throws",     "transient", "true",         "try",        "void",
+        "volatile",   "while"
+    };
+
+    /**
+     * Is the value of checkString a java reserved word?
+     *
+     * @param checkString String value to check.
+     * @return true if checkString exactly matches a java reserved word
+     */
+    static boolean isJavaReservedWord(String checkString) {
+        return Arrays.binarySearch(javaReservedWords, checkString) >= 0;
+    }
+
+    /**
+     * Transform a Java reserved word into a string which is safe to use in a Java source file.
+     *
+     * @param javaReservedWord reserved word to transform.
+     * @return The transformed reserved word.
+     */
+    static String transformJavaReservedWord(String javaReservedWord) {
+        return JAVA_RESERVEDWORD_PREFIX + javaReservedWord;
+    }
+}

Propchange: incubator/beehive/trunk/system-controls/src/webservice/org/apache/beehive/controls/system/webservice/generator/GeneratorUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/JcxGenFromDocLitBareWsdlTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/JcxGenFromDocLitBareWsdlTest.java?rev=190655&r1=190654&r2=190655&view=diff
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/JcxGenFromDocLitBareWsdlTest.java (original)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/jcxgen-tests/tests/org/apache/beehive/controls/system/webservice/units/jcxgen/JcxGenFromDocLitBareWsdlTest.java Tue Jun 14 14:01:25 2005
@@ -1,85 +1,84 @@
-/*
- * 
- * Copyright 2004 The Apache Software Foundation
- * 
- * Licensed 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.beehive.controls.system.webservice.units.jcxgen;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import org.apache.beehive.controls.system.webservice.ServiceControl;
-import org.apache.beehive.wsm.databinding.GenericHolder;
-
-import javax.xml.rpc.holders.IntHolder;
-import java.lang.reflect.Method;
-
-public class JcxGenFromDocLitBareWsdlTest extends TestCase {
-    private final Class genJcx = jcxgentest.DocumentLiteralBareSampleService.class;
-
-
-    public void testLocationAnnotation() throws Exception {
-        ServiceControl.Location loc =
-                (ServiceControl.Location) genJcx.getAnnotation(ServiceControl.Location.class);
-
-        assertEquals(1, loc.urls().length);
-        assertEquals("http://localhost:8080/wsm-samplesWS/web/complex/DocumentLiteralBareSample.jws", loc.urls()[0]);
-    }
-
-    public void testWSDLAnnotation() throws Exception {
-        ServiceControl.WSDL wsdl =
-                (ServiceControl.WSDL) genJcx.getAnnotation(ServiceControl.WSDL.class);
-
-        assertEquals("DocumentLiteralBareSample.wsdl", wsdl.path());
-        assertEquals("DocumentLiteralBareSampleService", wsdl.service());
-    }
-
-    public void testMethodSignatures() throws Exception {
-        testMethodSignature("changeAddressInBody", "int", GenericHolder.class);
-        testMethodSignature("changeAddressInHeader", "int", GenericHolder.class);
-        testMethodSignature("createAddressInBody", "void", GenericHolder.class, IntHolder.class);
-        testMethodSignature("createAddressInHeader", "void", GenericHolder.class, IntHolder.class);
-        testMethodSignature("returnAddressFromBody", "doclitbar.web.complex.Address", doclitbar.web.complex.Address.class);
-        testMethodSignature("returnAddressFromHeader", "doclitbar.web.complex.Address", doclitbar.web.complex.Address.class);
-        testMethodSignature("throwAddressException", "int", int.class);
-
-    }
-
-    private void testMethodSignature(String methodName, String returnClassName, Class... params) throws Exception {
-        Method m = null;
-        try {
-            m = genJcx.getMethod(methodName, params);
-        } catch (NoSuchMethodException e) {
-            fail("Could not find method '" + methodName + "(" + params + ")");
-        }
-        assertEquals(returnClassName, m.getReturnType().getName());
-    }
-
-
-    public JcxGenFromDocLitBareWsdlTest(String name) throws Exception {
-        super(name);
-    }
-
-    public static Test suite() {
-        return new TestSuite(JcxGenFromDocLitBareWsdlTest.class);
-    }
-
-    public static void main(String[] args) {
-        junit.textui.TestRunner.run(suite());
-    }
-}
-
-
-
+/*
+ * 
+ * Copyright 2004 The Apache Software Foundation
+ * 
+ * Licensed 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.beehive.controls.system.webservice.units.jcxgen;
+
+import java.lang.reflect.Method;
+import javax.xml.rpc.holders.IntHolder;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import org.apache.beehive.controls.system.webservice.ServiceControl;
+import org.apache.beehive.wsm.databinding.GenericHolder;
+
+public class JcxGenFromDocLitBareWsdlTest
+    extends TestCase {
+    private final Class genJcx = jcxgentest.DocumentLiteralBareSampleService.class;
+
+    public void testLocationAnnotation() throws Exception {
+        ServiceControl.Location loc =
+                (ServiceControl.Location) genJcx.getAnnotation(ServiceControl.Location.class);
+
+        assertEquals(1, loc.urls().length);
+        assertEquals("http://localhost:8080/wsm-samplesWS/web/complex/DocumentLiteralBareSample.jws", loc.urls()[0]);
+    }
+
+    public void testWSDLAnnotation() throws Exception {
+        ServiceControl.WSDL wsdl =
+                (ServiceControl.WSDL) genJcx.getAnnotation(ServiceControl.WSDL.class);
+
+        assertEquals("DocumentLiteralBareSample.wsdl", wsdl.path());
+        assertEquals("DocumentLiteralBareSampleService", wsdl.service());
+    }
+
+    public void testMethodSignatures() throws Exception {
+        testMethodSignature("changeAddressInBody", "int", GenericHolder.class);
+        testMethodSignature("changeAddressInHeader", "int", GenericHolder.class);
+        testMethodSignature("createAddressInBody", "void", GenericHolder.class, IntHolder.class);
+        testMethodSignature("createAddressInHeader", "void", GenericHolder.class, IntHolder.class);
+        testMethodSignature("returnAddressFromBody", "doclitbar.web.complex.Address", doclitbar.web.complex.Address.class);
+        testMethodSignature("returnAddressFromHeader", "doclitbar.web.complex.Address", doclitbar.web.complex.Address.class);
+        testMethodSignature("throwAddressException", "int", int.class);
+    }
+
+    private void testMethodSignature(String methodName, String returnClassName, Class... params) throws Exception {
+        Method m = null;
+        try {
+            m = genJcx.getMethod(methodName, params);
+        } catch (NoSuchMethodException e) {
+            fail("Could not find method '" + methodName + "(" + params + ")");
+        }
+        assertEquals(returnClassName, m.getReturnType().getName());
+    }
+
+    public JcxGenFromDocLitBareWsdlTest(String name)
+        throws Exception {
+        super(name);
+    }
+
+    public static Test suite() {
+        return new TestSuite(JcxGenFromDocLitBareWsdlTest.class);
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(suite());
+    }
+}
+
+
+

Added: incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralBareSample.wsdl
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralBareSample.wsdl?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralBareSample.wsdl (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/schemas/DocumentLiteralBareSample.wsdl Tue Jun 14 14:01:25 2005
@@ -0,0 +1,372 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://complex2.web" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://complex2.web" xmlns:intf="http://complex2.web" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2
+Built on May 03, 2005 (02:20:24 EDT)-->
+ <wsdl:types>
+  <schema elementFormDefault="qualified" targetNamespace="http://complex2.web" xmlns="http://www.w3.org/2001/XMLSchema">
+   <complexType name="Phone">
+    <sequence>
+     <element name="areaCode" nillable="true" type="xsd:int"/>
+     <element name="exchange" nillable="true" type="xsd:string"/>
+     <element name="number" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="StateType">
+    <sequence>
+     <element name="state" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="Address">
+    <sequence>
+     <element name="city" nillable="true" type="xsd:string"/>
+     <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+     <element name="state" nillable="true" type="impl:StateType"/>
+     <element name="streetName" nillable="true" type="xsd:string"/>
+     <element name="streetNum" nillable="true" type="xsd:int"/>
+     <element name="zip" nillable="true" type="xsd:int"/>
+    </sequence>
+   </complexType>
+   <element name="in_param_body" type="impl:Address"/>
+   <element name="ReturnAddressFromBodyResult" type="impl:Address"/>
+   <element name="in_param_header" type="impl:Address"/>
+   <element name="ReturnAddressFromHeaderResult" type="impl:Address"/>
+   <element name="ReturnCreateAddressInBodyResult" type="xsd:int"/>
+   <element name="out_param_body" type="impl:Address"/>
+   <element name="out_param_header" type="impl:Address"/>
+   <element name="ReturnCreateAddressInHeaderResult" type="xsd:int"/>
+   <element name="inout_param_body" type="impl:Address"/>
+   <element name="ChangeAddressInBodyResult" type="xsd:int"/>
+   <element name="inout_param_body1" type="impl:Address"/>
+   <element name="inout_param_header" type="impl:Address"/>
+   <element name="inout_param_header1" type="impl:Address"/>
+   <element name="ChangeAddressInHeaderResult" type="xsd:int"/>
+   <element name="in_param" type="xsd:int"/>
+   <element name="ThrowAddressExceptionResult" type="xsd:int"/>
+   <complexType name="AddressException">
+    <sequence/>
+   </complexType>
+   <element name="fault" type="impl:AddressException"/>
+  </schema>
+ </wsdl:types>
+
+   <wsdl:message name="returnAddressFromBodyRequest">
+
+      <wsdl:part element="impl:in_param_body" name="in_param_body"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromBodyResponse">
+
+      <wsdl:part element="impl:ReturnAddressFromBodyResult" name="ReturnAddressFromBodyResult"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInHeaderRequest">
+
+      <wsdl:part element="impl:inout_param_header" name="inout_param_header"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInHeaderResponse">
+
+      <wsdl:part element="impl:inout_param_header1" name="inout_param_header"/>
+
+      <wsdl:part element="impl:ChangeAddressInHeaderResult" name="ChangeAddressInHeaderResult"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInBodyResponse">
+
+      <wsdl:part element="impl:ReturnCreateAddressInBodyResult" name="ReturnCreateAddressInBodyResult"/>
+
+      <wsdl:part element="impl:out_param_body" name="out_param_body"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInHeaderRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInBodyRequest">
+
+      <wsdl:part element="impl:inout_param_body" name="inout_param_body"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="AddressException">
+
+      <wsdl:part element="impl:fault" name="fault"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInBodyRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInHeaderResponse">
+
+      <wsdl:part element="impl:out_param_header" name="out_param_header"/>
+
+      <wsdl:part element="impl:ReturnCreateAddressInHeaderResult" name="ReturnCreateAddressInHeaderResult"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInBodyResponse">
+
+      <wsdl:part element="impl:ChangeAddressInBodyResult" name="ChangeAddressInBodyResult"/>
+
+      <wsdl:part element="impl:inout_param_body1" name="inout_param_body"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromHeaderResponse">
+
+      <wsdl:part element="impl:ReturnAddressFromHeaderResult" name="ReturnAddressFromHeaderResult"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="throwAddressExceptionRequest">
+
+      <wsdl:part element="impl:in_param" name="in_param"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="throwAddressExceptionResponse">
+
+      <wsdl:part element="impl:ThrowAddressExceptionResult" name="ThrowAddressExceptionResult"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromHeaderRequest">
+
+      <wsdl:part element="impl:in_param_header" name="in_param_header"/>
+
+   </wsdl:message>
+
+   <wsdl:portType name="DocumentLiteralBareSample">
+
+      <wsdl:operation name="returnAddressFromBody" parameterOrder="in_param_body">
+
+         <wsdl:input message="impl:returnAddressFromBodyRequest" name="returnAddressFromBodyRequest"/>
+
+         <wsdl:output message="impl:returnAddressFromBodyResponse" name="returnAddressFromBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="returnAddressFromHeader" parameterOrder="in_param_header">
+
+         <wsdl:input message="impl:returnAddressFromHeaderRequest" name="returnAddressFromHeaderRequest"/>
+
+         <wsdl:output message="impl:returnAddressFromHeaderResponse" name="returnAddressFromHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInBody" parameterOrder="out_param_body">
+
+         <wsdl:input message="impl:createAddressInBodyRequest" name="createAddressInBodyRequest"/>
+
+         <wsdl:output message="impl:createAddressInBodyResponse" name="createAddressInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInHeader" parameterOrder="out_param_header">
+
+         <wsdl:input message="impl:createAddressInHeaderRequest" name="createAddressInHeaderRequest"/>
+
+         <wsdl:output message="impl:createAddressInHeaderResponse" name="createAddressInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInBody" parameterOrder="inout_param_body">
+
+         <wsdl:input message="impl:changeAddressInBodyRequest" name="changeAddressInBodyRequest"/>
+
+         <wsdl:output message="impl:changeAddressInBodyResponse" name="changeAddressInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInHeader" parameterOrder="inout_param_header">
+
+         <wsdl:input message="impl:changeAddressInHeaderRequest" name="changeAddressInHeaderRequest"/>
+
+         <wsdl:output message="impl:changeAddressInHeaderResponse" name="changeAddressInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="throwAddressException" parameterOrder="in_param">
+
+         <wsdl:input message="impl:throwAddressExceptionRequest" name="throwAddressExceptionRequest"/>
+
+         <wsdl:output message="impl:throwAddressExceptionResponse" name="throwAddressExceptionResponse"/>
+
+         <wsdl:fault message="impl:AddressException" name="AddressException"/>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="DocumentLiteralBareSampleSoapBinding" type="impl:DocumentLiteralBareSample">
+
+      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="returnAddressFromBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="returnAddressFromBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="returnAddressFromBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="returnAddressFromHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="returnAddressFromHeaderRequest">
+
+            <wsdlsoap:body parts="" use="literal"/>
+
+            <wsdlsoap:header message="impl:returnAddressFromHeaderRequest" namespace="http://complex2.web" part="in_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="returnAddressFromHeaderResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createAddressInBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="createAddressInBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createAddressInHeaderRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="createAddressInHeaderResponse">
+
+            <wsdlsoap:body parts="ReturnCreateAddressInHeaderResult" use="literal"/>
+
+            <wsdlsoap:header message="impl:createAddressInHeaderResponse" namespace="http://complex2.web" part="out_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="changeAddressInBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="changeAddressInBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="changeAddressInHeaderRequest">
+
+            <wsdlsoap:body parts="" use="literal"/>
+
+            <wsdlsoap:header message="impl:changeAddressInHeaderRequest" namespace="http://complex2.web" part="inout_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="changeAddressInHeaderResponse">
+
+            <wsdlsoap:body parts="ChangeAddressInHeaderResult" use="literal"/>
+
+            <wsdlsoap:header message="impl:changeAddressInHeaderResponse" namespace="http://complex2.web" part="inout_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="throwAddressException">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="throwAddressExceptionRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="throwAddressExceptionResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="AddressException">
+
+            <wsdlsoap:fault name="AddressException" use="literal"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="DocumentLiteralBareSampleService">
+
+      <wsdl:port binding="impl:DocumentLiteralBareSampleSoapBinding" name="DocumentLiteralBareSample">
+
+         <wsdlsoap:address location="http://localhost:8080/ServiceControlDRT/web/complex2/DocumentLiteralBareSample.jws"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

Added: incubator/beehive/trunk/system-controls/test/src/webservice/schemas/RpcLiteralSample.wsdl
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/RpcLiteralSample.wsdl?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/schemas/RpcLiteralSample.wsdl (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/schemas/RpcLiteralSample.wsdl Tue Jun 14 14:01:25 2005
@@ -0,0 +1,356 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://complex3.web" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://complex3.web" xmlns:intf="http://complex3.web" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2
+Built on May 03, 2005 (02:20:24 EDT)-->
+ <wsdl:types>
+  <schema targetNamespace="http://complex3.web" xmlns="http://www.w3.org/2001/XMLSchema">
+   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+   <complexType name="Phone">
+    <sequence>
+     <element name="areaCode" nillable="true" type="xsd:int"/>
+     <element name="exchange" nillable="true" type="xsd:string"/>
+     <element name="number" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="StateType">
+    <sequence>
+     <element name="state" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="Address">
+    <sequence>
+     <element name="city" nillable="true" type="xsd:string"/>
+     <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+     <element name="state" nillable="true" type="impl:StateType"/>
+     <element name="streetName" nillable="true" type="xsd:string"/>
+     <element name="streetNum" nillable="true" type="xsd:int"/>
+     <element name="zip" nillable="true" type="xsd:int"/>
+    </sequence>
+   </complexType>
+   <complexType name="AddressException">
+    <sequence/>
+   </complexType>
+  </schema>
+ </wsdl:types>
+
+   <wsdl:message name="AddressException">
+
+      <wsdl:part name="fault" type="impl:AddressException"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInHeaderRequest">
+
+      <wsdl:part name="inout_param_header" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInBodyResponse">
+
+      <wsdl:part name="ReturnCreateAddressInBodyResult" type="xsd:int"/>
+
+      <wsdl:part name="out_param_body" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromHeaderResponse">
+
+      <wsdl:part name="ReturnAddressFromHeaderResult" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInHeaderRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInBodyResponse">
+
+      <wsdl:part name="ChangeAddressInBodyResult" type="xsd:int"/>
+
+      <wsdl:part name="inout_param_body" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="throwAddressExceptionResponse">
+
+      <wsdl:part name="ThrowAddressExceptionResult" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromBodyRequest">
+
+      <wsdl:part name="in_param_body" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromBodyResponse">
+
+      <wsdl:part name="ReturnAddressFromBodyResult" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="returnAddressFromHeaderRequest">
+
+      <wsdl:part name="in_param_header" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInHeaderResponse">
+
+      <wsdl:part name="inout_param_header" type="impl:Address"/>
+
+      <wsdl:part name="ChangeAddressInHeaderResult" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInBodyRequest">
+
+   </wsdl:message>
+
+   <wsdl:message name="throwAddressExceptionRequest">
+
+      <wsdl:part name="in_param" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createAddressInHeaderResponse">
+
+      <wsdl:part name="out_param_header" type="impl:Address"/>
+
+      <wsdl:part name="ReturnCreateAddressInHeaderResult" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="changeAddressInBodyRequest">
+
+      <wsdl:part name="inout_param_body" type="impl:Address"/>
+
+   </wsdl:message>
+
+   <wsdl:portType name="RpcLiteralSample">
+
+      <wsdl:operation name="returnAddressFromBody" parameterOrder="in_param_body">
+
+         <wsdl:input message="impl:returnAddressFromBodyRequest" name="returnAddressFromBodyRequest"/>
+
+         <wsdl:output message="impl:returnAddressFromBodyResponse" name="returnAddressFromBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="returnAddressFromHeader" parameterOrder="in_param_header">
+
+         <wsdl:input message="impl:returnAddressFromHeaderRequest" name="returnAddressFromHeaderRequest"/>
+
+         <wsdl:output message="impl:returnAddressFromHeaderResponse" name="returnAddressFromHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInBody" parameterOrder="out_param_body">
+
+         <wsdl:input message="impl:createAddressInBodyRequest" name="createAddressInBodyRequest"/>
+
+         <wsdl:output message="impl:createAddressInBodyResponse" name="createAddressInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInHeader" parameterOrder="out_param_header">
+
+         <wsdl:input message="impl:createAddressInHeaderRequest" name="createAddressInHeaderRequest"/>
+
+         <wsdl:output message="impl:createAddressInHeaderResponse" name="createAddressInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInBody" parameterOrder="inout_param_body">
+
+         <wsdl:input message="impl:changeAddressInBodyRequest" name="changeAddressInBodyRequest"/>
+
+         <wsdl:output message="impl:changeAddressInBodyResponse" name="changeAddressInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInHeader" parameterOrder="inout_param_header">
+
+         <wsdl:input message="impl:changeAddressInHeaderRequest" name="changeAddressInHeaderRequest"/>
+
+         <wsdl:output message="impl:changeAddressInHeaderResponse" name="changeAddressInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="throwAddressException" parameterOrder="in_param">
+
+         <wsdl:input message="impl:throwAddressExceptionRequest" name="throwAddressExceptionRequest"/>
+
+         <wsdl:output message="impl:throwAddressExceptionResponse" name="throwAddressExceptionResponse"/>
+
+         <wsdl:fault message="impl:AddressException" name="AddressException"/>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="RpcLiteralSampleSoapBinding" type="impl:RpcLiteralSample">
+
+      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="returnAddressFromBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="returnAddressFromBodyRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="returnAddressFromBodyResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="returnAddressFromHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="returnAddressFromHeaderRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" parts="" use="literal"/>
+
+            <wsdlsoap:header message="impl:returnAddressFromHeaderRequest" namespace="http://complex3.web" part="in_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="returnAddressFromHeaderResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createAddressInBodyRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="createAddressInBodyResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createAddressInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createAddressInHeaderRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="createAddressInHeaderResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" parts="ReturnCreateAddressInHeaderResult" use="literal"/>
+
+            <wsdlsoap:header message="impl:createAddressInHeaderResponse" namespace="http://complex3.web" part="out_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="changeAddressInBodyRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="changeAddressInBodyResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="changeAddressInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="changeAddressInHeaderRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" parts="" use="literal"/>
+
+            <wsdlsoap:header message="impl:changeAddressInHeaderRequest" namespace="http://complex3.web" part="inout_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="changeAddressInHeaderResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" parts="ChangeAddressInHeaderResult" use="literal"/>
+
+            <wsdlsoap:header message="impl:changeAddressInHeaderResponse" namespace="http://complex3.web" part="inout_param_header" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="throwAddressException">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="throwAddressExceptionRequest">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="throwAddressExceptionResponse">
+
+            <wsdlsoap:body namespace="http://complex3.web" use="literal"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="AddressException">
+
+            <wsdlsoap:fault name="AddressException" use="literal"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="RpcLiteralSampleService">
+
+      <wsdl:port binding="impl:RpcLiteralSampleSoapBinding" name="RpcLiteralSample">
+
+         <wsdlsoap:address location="http://localhost:8080/ServiceControlDRT/web/complex3/RpcLiteralSample.jws"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

Added: incubator/beehive/trunk/system-controls/test/src/webservice/schemas/WebParamDocumentLiteralSample.wsdl
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/WebParamDocumentLiteralSample.wsdl?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/schemas/WebParamDocumentLiteralSample.wsdl (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/schemas/WebParamDocumentLiteralSample.wsdl Tue Jun 14 14:01:25 2005
@@ -0,0 +1,518 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://webparam.web" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webparam.web" xmlns:intf="http://webparam.web" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2
+Built on May 03, 2005 (02:20:24 EDT)-->
+ <wsdl:types>
+  <schema elementFormDefault="qualified" targetNamespace="http://webparam.web" xmlns="http://www.w3.org/2001/XMLSchema">
+   <element name="sayHelloInBody">
+    <complexType>
+     <sequence>
+      <element name="name_in" type="xsd:string"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="sayHelloInBodyResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="xsd:string"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="name_in" type="xsd:string"/>
+   <element name="sayHelloInHeader">
+    <complexType>
+     <sequence/>
+    </complexType>
+   </element>
+   <element name="sayHelloInHeaderResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="xsd:string"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="getPhoneNumberInBody">
+    <complexType>
+     <sequence>
+      <element name="address" type="impl:Address"/>
+     </sequence>
+    </complexType>
+   </element>
+   <complexType name="Phone">
+    <sequence>
+     <element name="areaCode" nillable="true" type="xsd:int"/>
+     <element name="exchange" nillable="true" type="xsd:string"/>
+     <element name="number" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="StateType">
+    <sequence>
+     <element name="state" nillable="true" type="xsd:string"/>
+    </sequence>
+   </complexType>
+   <complexType name="Address">
+    <sequence>
+     <element name="city" nillable="true" type="xsd:string"/>
+     <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+     <element name="state" nillable="true" type="impl:StateType"/>
+     <element name="streetName" nillable="true" type="xsd:string"/>
+     <element name="streetNum" nillable="true" type="xsd:int"/>
+     <element name="zip" nillable="true" type="xsd:int"/>
+    </sequence>
+   </complexType>
+   <element name="getPhoneNumberInBodyResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="address" type="impl:Address"/>
+   <element name="getPhoneNumberInHeader">
+    <complexType>
+     <sequence/>
+    </complexType>
+   </element>
+   <element name="getPhoneNumberInHeaderResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="area_code" type="xsd:int"/>
+   <element name="phone_in" type="impl:Phone"/>
+   <element name="createPhoneNumberInHeader">
+    <complexType>
+     <sequence/>
+    </complexType>
+   </element>
+   <element name="createPhoneNumberInHeaderResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="phone_in1" type="impl:Phone"/>
+   <element name="createPhoneNumberInBodyHeader">
+    <complexType>
+     <sequence>
+      <element name="areaCode" type="xsd:int"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="createPhoneNumberInBodyHeaderResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="createPhoneNumberInBody">
+    <complexType>
+     <sequence>
+      <element name="areaCode" type="xsd:int"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="createPhoneNumberInBodyResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="address1" type="impl:Address"/>
+   <element name="updatePhoneNumbers">
+    <complexType>
+     <sequence>
+      <element name="phone" type="impl:Phone"/>
+     </sequence>
+    </complexType>
+   </element>
+   <element name="address2" type="impl:Address"/>
+   <element name="address3" type="impl:Address"/>
+   <element name="updatePhoneNumbersResponse">
+    <complexType>
+     <sequence>
+      <element name="return" type="xsd:int"/>
+     </sequence>
+    </complexType>
+   </element>
+  </schema>
+ </wsdl:types>
+
+   <wsdl:message name="sayHelloInHeaderResponse">
+
+      <wsdl:part element="impl:sayHelloInHeaderResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="getPhoneNumberInHeaderRequest">
+
+      <wsdl:part element="impl:address" name="address"/>
+
+      <wsdl:part element="impl:getPhoneNumberInHeader" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="updatePhoneNumbersRequest">
+
+      <wsdl:part element="impl:address1" name="address1"/>
+
+      <wsdl:part element="impl:updatePhoneNumbers" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInHeaderRequest">
+
+      <wsdl:part element="impl:area_code" name="area_code"/>
+
+      <wsdl:part element="impl:phone_in" name="phone_in"/>
+
+      <wsdl:part element="impl:createPhoneNumberInHeader" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInBodyHeaderResponse">
+
+      <wsdl:part element="impl:createPhoneNumberInBodyHeaderResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="updatePhoneNumbersResponse">
+
+      <wsdl:part element="impl:address2" name="address1"/>
+
+      <wsdl:part element="impl:address3" name="address2"/>
+
+      <wsdl:part element="impl:updatePhoneNumbersResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="getPhoneNumberInBodyRequest">
+
+      <wsdl:part element="impl:getPhoneNumberInBody" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInBodyResponse">
+
+      <wsdl:part element="impl:createPhoneNumberInBodyResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="sayHelloInBodyResponse">
+
+      <wsdl:part element="impl:sayHelloInBodyResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="sayHelloInHeaderRequest">
+
+      <wsdl:part element="impl:name_in" name="name_in"/>
+
+      <wsdl:part element="impl:sayHelloInHeader" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="getPhoneNumberInBodyResponse">
+
+      <wsdl:part element="impl:getPhoneNumberInBodyResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="getPhoneNumberInHeaderResponse">
+
+      <wsdl:part element="impl:getPhoneNumberInHeaderResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInHeaderResponse">
+
+      <wsdl:part element="impl:createPhoneNumberInHeaderResponse" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInBodyHeaderRequest">
+
+      <wsdl:part element="impl:phone_in1" name="phone_in"/>
+
+      <wsdl:part element="impl:createPhoneNumberInBodyHeader" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="sayHelloInBodyRequest">
+
+      <wsdl:part element="impl:sayHelloInBody" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="createPhoneNumberInBodyRequest">
+
+      <wsdl:part element="impl:createPhoneNumberInBody" name="parameters"/>
+
+   </wsdl:message>
+
+   <wsdl:portType name="WebParamDocumentLiteralSample">
+
+      <wsdl:operation name="sayHelloInBody">
+
+         <wsdl:input message="impl:sayHelloInBodyRequest" name="sayHelloInBodyRequest"/>
+
+         <wsdl:output message="impl:sayHelloInBodyResponse" name="sayHelloInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="sayHelloInHeader">
+
+         <wsdl:input message="impl:sayHelloInHeaderRequest" name="sayHelloInHeaderRequest"/>
+
+         <wsdl:output message="impl:sayHelloInHeaderResponse" name="sayHelloInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="getPhoneNumberInBody">
+
+         <wsdl:input message="impl:getPhoneNumberInBodyRequest" name="getPhoneNumberInBodyRequest"/>
+
+         <wsdl:output message="impl:getPhoneNumberInBodyResponse" name="getPhoneNumberInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="getPhoneNumberInHeader">
+
+         <wsdl:input message="impl:getPhoneNumberInHeaderRequest" name="getPhoneNumberInHeaderRequest"/>
+
+         <wsdl:output message="impl:getPhoneNumberInHeaderResponse" name="getPhoneNumberInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInHeader">
+
+         <wsdl:input message="impl:createPhoneNumberInHeaderRequest" name="createPhoneNumberInHeaderRequest"/>
+
+         <wsdl:output message="impl:createPhoneNumberInHeaderResponse" name="createPhoneNumberInHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInBodyHeader">
+
+         <wsdl:input message="impl:createPhoneNumberInBodyHeaderRequest" name="createPhoneNumberInBodyHeaderRequest"/>
+
+         <wsdl:output message="impl:createPhoneNumberInBodyHeaderResponse" name="createPhoneNumberInBodyHeaderResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInBody">
+
+         <wsdl:input message="impl:createPhoneNumberInBodyRequest" name="createPhoneNumberInBodyRequest"/>
+
+         <wsdl:output message="impl:createPhoneNumberInBodyResponse" name="createPhoneNumberInBodyResponse"/>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="updatePhoneNumbers">
+
+         <wsdl:input message="impl:updatePhoneNumbersRequest" name="updatePhoneNumbersRequest"/>
+
+         <wsdl:output message="impl:updatePhoneNumbersResponse" name="updatePhoneNumbersResponse"/>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="WebParamDocumentLiteralSampleSoapBinding" type="impl:WebParamDocumentLiteralSample">
+
+      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="sayHelloInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="sayHelloInBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="sayHelloInBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="sayHelloInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="sayHelloInHeaderRequest">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:sayHelloInHeaderRequest" namespace="http://webparam.web" part="name_in" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="sayHelloInHeaderResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="getPhoneNumberInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="getPhoneNumberInBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="getPhoneNumberInBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="getPhoneNumberInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="getPhoneNumberInHeaderRequest">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:getPhoneNumberInHeaderRequest" namespace="http://webparam.web" part="address" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="getPhoneNumberInHeaderResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createPhoneNumberInHeaderRequest">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:createPhoneNumberInHeaderRequest" namespace="http://webparam.web" part="area_code" use="literal">
+
+            </wsdlsoap:header>
+
+            <wsdlsoap:header message="impl:createPhoneNumberInHeaderRequest" namespace="http://webparam.web" part="phone_in" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="createPhoneNumberInHeaderResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInBodyHeader">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createPhoneNumberInBodyHeaderRequest">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:createPhoneNumberInBodyHeaderRequest" namespace="http://webparam.web" part="phone_in" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="createPhoneNumberInBodyHeaderResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="createPhoneNumberInBody">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="createPhoneNumberInBodyRequest">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="createPhoneNumberInBodyResponse">
+
+            <wsdlsoap:body use="literal"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="updatePhoneNumbers">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="updatePhoneNumbersRequest">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:updatePhoneNumbersRequest" namespace="http://webparam.web" part="address1" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:input>
+
+         <wsdl:output name="updatePhoneNumbersResponse">
+
+            <wsdlsoap:body parts="parameters" use="literal"/>
+
+            <wsdlsoap:header message="impl:updatePhoneNumbersResponse" namespace="http://webparam.web" part="address1" use="literal">
+
+            </wsdlsoap:header>
+
+            <wsdlsoap:header message="impl:updatePhoneNumbersResponse" namespace="http://webparam.web" part="address2" use="literal">
+
+            </wsdlsoap:header>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="WebParamDocumentLiteralSampleService">
+
+      <wsdl:port binding="impl:WebParamDocumentLiteralSampleSoapBinding" name="WebParamDocumentLiteralSample">
+
+         <wsdlsoap:address location="http://localhost:8080/ServiceControlDRT/web/webparam/WebParamDocumentLiteralSample.jws"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,61 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Address implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private int streetNum;
+    private String streetName;
+    private String city;
+    private StateType state;
+    private int zip;
+    private Phone phoneNumber;
+
+    public Address() { }
+
+    public Address(int streetNum, String streetName, String city, StateType state, int zip, Phone phoneNumber) {
+
+        this.streetNum = streetNum;
+        this.streetName = streetName;
+        this.city = city;
+        this.state = state;
+        this.zip = zip;
+        this.phoneNumber = phoneNumber;
+    }
+
+    public String getCity() { return city; }
+    public void setCity(String city) { this.city = city; }
+
+    public Phone getPhoneNumber() { return phoneNumber; }
+    public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber = phoneNumber; }
+
+    public StateType getState() { return state; }
+    public void setState(StateType state) { this.state = state; }
+
+    public String getStreetName() { return streetName; }
+    public void setStreetName(String streetName) { this.streetName = streetName; }
+
+    public int getStreetNum() { return streetNum; }
+    public void setStreetNum(int streetNum) { this.streetNum = streetNum; }
+
+    public int getZip() { return zip; }
+    public void setZip(int zip) { this.zip = zip; }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Address.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,27 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressException extends Exception implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    public AddressException() { }
+    public AddressException(String msg) { super(msg); }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,26 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressHolder implements javax.xml.rpc.holders.Holder, java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    public Address value;
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/AddressHolder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,90 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.xml.rpc.handler.Handler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+import javax.xml.soap.SOAPMessage;
+
+public class MessageHandler implements Handler {
+    
+    private static final String ORIGINAL = "original";
+    private static final String MODIFIED = "ORIGINAL";
+
+    private HandlerInfo info;
+    private String modified;
+    private String original;
+
+    public void init(HandlerInfo handlerInfo) {
+
+        info = handlerInfo;
+        
+        original = (String) info.getHandlerConfig().get("original");
+        if (null == original || 0 == original.length()) {
+            original = ORIGINAL;
+        }
+        
+        modified = (String) info.getHandlerConfig().get("modified");
+        if (null == modified || 0 == modified.length()) {
+            modified = MODIFIED;
+        }
+    }
+
+    public void destroy() {
+        // empty
+    }
+
+    public QName[] getHeaders() {
+        return info.getHeaders();
+    }
+
+    public boolean handleRequest(MessageContext mc) {
+        boolean result = false;
+        try {
+            System.out.println("*** MessageHandler: handling message; initialized with <original>=" + original + ", <modified>=" + modified);
+            SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
+            String value = message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
+            if ((null != value) && value.equals(original)) {
+                message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
+                System.out.println("*** Replacing: " + original + " with: " + modified);
+            } 
+            else {
+                System.out.println("*** Not replacing: " + original);
+            }
+            result = true;
+        }
+        catch (Throwable t) {
+            t.printStackTrace();
+        }
+        return result;
+    }
+
+    public boolean handleResponse(MessageContext mc) {
+        return true;
+    }
+
+    public boolean handleFault(MessageContext mc) {
+        return true;
+    }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/MessageHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,46 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Phone implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+    
+    private int areaCode;
+    private String exchange;
+    private String number;
+
+    public Phone() { super(); }
+
+    public Phone(int areaCode, String exchange, String number) {
+
+        this.areaCode = areaCode;
+        this.exchange = exchange;
+        this.number = number;
+    }
+
+    public int getAreaCode() { return areaCode; }
+    public void setAreaCode(int areaCode) { this.areaCode = areaCode; }
+
+    public String getExchange() { return exchange; }
+    public void setExchange(String exchange) { this.exchange = exchange; }
+
+    public String getNumber() { return number; }
+    public void setNumber(String number) { this.number = number; }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/Phone.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,33 @@
+package org.apache.beehive.doclitbare;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class StateType implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private String state;
+   
+    public StateType() { }
+
+    public StateType(String state) { this.state = state; }
+
+    public String getState() { return state; }
+    public void setState(String state) { this.state = state; }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/doclitbare/StateType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,61 @@
+package org.apache.beehive.rpclit;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Address implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private int streetNum;
+    private String streetName;
+    private String city;
+    private StateType state;
+    private int zip;
+    private Phone phoneNumber;
+
+    public Address() { }
+
+    public Address(int streetNum, String streetName, String city, StateType state, int zip, Phone phoneNumber) {
+
+        this.streetNum = streetNum;
+        this.streetName = streetName;
+        this.city = city;
+        this.state = state;
+        this.zip = zip;
+        this.phoneNumber = phoneNumber;
+    }
+
+    public String getCity() { return city; }
+    public void setCity(String city) { this.city = city; }
+
+    public Phone getPhoneNumber() { return phoneNumber; }
+    public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber = phoneNumber; }
+
+    public StateType getState() { return state; }
+    public void setState(StateType state) { this.state = state; }
+
+    public String getStreetName() { return streetName; }
+    public void setStreetName(String streetName) { this.streetName = streetName; }
+
+    public int getStreetNum() { return streetNum; }
+    public void setStreetNum(int streetNum) { this.streetNum = streetNum; }
+
+    public int getZip() { return zip; }
+    public void setZip(int zip) { this.zip = zip; }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Address.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,27 @@
+package org.apache.beehive.rpclit;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressException extends Exception implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    public AddressException() { }
+    public AddressException(String msg) { super(msg); }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,26 @@
+package org.apache.beehive.rpclit;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class AddressHolder implements javax.xml.rpc.holders.Holder, java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    public Address value;
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/AddressHolder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,90 @@
+package org.apache.beehive.rpclit;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.xml.rpc.handler.Handler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+import javax.xml.soap.SOAPMessage;
+
+public class MessageHandler implements Handler {
+    
+    private static final String ORIGINAL = "original";
+    private static final String MODIFIED = "ORIGINAL";
+
+    private HandlerInfo info;
+    private String modified;
+    private String original;
+
+    public void init(HandlerInfo handlerInfo) {
+
+        info = handlerInfo;
+        
+        original = (String) info.getHandlerConfig().get("original");
+        if (null == original || 0 == original.length()) {
+            original = ORIGINAL;
+        }
+        
+        modified = (String) info.getHandlerConfig().get("modified");
+        if (null == modified || 0 == modified.length()) {
+            modified = MODIFIED;
+        }
+    }
+
+    public void destroy() {
+        // empty
+    }
+
+    public QName[] getHeaders() {
+        return info.getHeaders();
+    }
+
+    public boolean handleRequest(MessageContext mc) {
+        boolean result = false;
+        try {
+            System.out.println("*** MessageHandler: handling message; initialized with <original>=" + original + ", <modified>=" + modified);
+            SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
+            String value = message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
+            if ((null != value) && value.equals(original)) {
+                message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
+                System.out.println("*** Replacing: " + original + " with: " + modified);
+            } 
+            else {
+                System.out.println("*** Not replacing: " + original);
+            }
+            result = true;
+        }
+        catch (Throwable t) {
+            t.printStackTrace();
+        }
+        return result;
+    }
+
+    public boolean handleResponse(MessageContext mc) {
+        return true;
+    }
+
+    public boolean handleFault(MessageContext mc) {
+        return true;
+    }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/MessageHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java?rev=190655&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java Tue Jun 14 14:01:25 2005
@@ -0,0 +1,46 @@
+package org.apache.beehive.rpclit;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ * $Header:$
+ */
+
+public class Phone implements java.io.Serializable {
+
+    private static final long serialVersionUID = 1L;
+    
+    private int areaCode;
+    private String exchange;
+    private String number;
+
+    public Phone() { super(); }
+
+    public Phone(int areaCode, String exchange, String number) {
+
+        this.areaCode = areaCode;
+        this.exchange = exchange;
+        this.number = number;
+    }
+
+    public int getAreaCode() { return areaCode; }
+    public void setAreaCode(int areaCode) { this.areaCode = areaCode; }
+
+    public String getExchange() { return exchange; }
+    public void setExchange(String exchange) { this.exchange = exchange; }
+
+    public String getNumber() { return number; }
+    public void setNumber(String number) { this.number = number; }
+}

Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/rpclit/Phone.java
------------------------------------------------------------------------------
    svn:eol-style = native