[jboss-svn-commits] JBossWS SVN: r995 - in trunk/src/test/java/org/jboss/test/ws/interop/microsoft: . mtom mtom/utf8

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 19 06:26:02 EDT 2006


Author: heiko.braun at jboss.com
Date: 2006-09-19 06:25:51 -0400 (Tue, 19 Sep 2006)
New Revision: 995

Added:
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfbase64Binary.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfstring.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArray.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArrayResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsString.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsStringResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsString.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsStringResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinary.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinaryResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/IMtomTest.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/InputMessageContract.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MtomTestStruct.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/OutputMessageContract.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java
Log:
Updated interop test clients and endpoints

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfbase64Binary.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfbase64Binary.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfbase64Binary.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class ArrayOfbase64Binary {
+    protected byte[][] base64Binary;
+    
+    public ArrayOfbase64Binary() {
+    }
+    
+    public ArrayOfbase64Binary(byte[][] base64Binary) {
+        this.base64Binary = base64Binary;
+    }
+    
+    public byte[][] getBase64Binary() {
+        return base64Binary;
+    }
+    
+    public void setBase64Binary(byte[][] base64Binary) {
+        this.base64Binary = base64Binary;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfbase64Binary.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfstring.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfstring.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfstring.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class ArrayOfstring {
+    protected java.lang.String[] string;
+    
+    public ArrayOfstring() {
+    }
+    
+    public ArrayOfstring(java.lang.String[] string) {
+        this.string = string;
+    }
+    
+    public java.lang.String[] getString() {
+        return string;
+    }
+    
+    public void setString(java.lang.String[] string) {
+        this.string = string;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/ArrayOfstring.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArray.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArray.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArray.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryArrayAsStringArray {
+    protected org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfbase64Binary arrayOfArray;
+    
+    public EchoBinaryArrayAsStringArray() {
+    }
+    
+    public EchoBinaryArrayAsStringArray(org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfbase64Binary arrayOfArray) {
+        this.arrayOfArray = arrayOfArray;
+    }
+    
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfbase64Binary getArrayOfArray() {
+        return arrayOfArray;
+    }
+    
+    public void setArrayOfArray(org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfbase64Binary arrayOfArray) {
+        this.arrayOfArray = arrayOfArray;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArray.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArrayResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArrayResponse.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArrayResponse.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryArrayAsStringArrayResponse {
+    protected org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfstring echoBinaryArrayAsStringArrayResult;
+    
+    public EchoBinaryArrayAsStringArrayResponse() {
+    }
+    
+    public EchoBinaryArrayAsStringArrayResponse(org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfstring echoBinaryArrayAsStringArrayResult) {
+        this.echoBinaryArrayAsStringArrayResult = echoBinaryArrayAsStringArrayResult;
+    }
+    
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfstring getEchoBinaryArrayAsStringArrayResult() {
+        return echoBinaryArrayAsStringArrayResult;
+    }
+    
+    public void setEchoBinaryArrayAsStringArrayResult(org.jboss.test.ws.interop.microsoft.mtom.utf8.ArrayOfstring echoBinaryArrayAsStringArrayResult) {
+        this.echoBinaryArrayAsStringArrayResult = echoBinaryArrayAsStringArrayResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryArrayAsStringArrayResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsString.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsString.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsString.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryAsString {
+    protected byte[] array;
+
+    public EchoBinaryAsString() {
+    }
+
+    public EchoBinaryAsString(byte[] array) {
+        this.array = array;
+    }
+
+    public byte[] getArray() {
+        return array;
+    }
+
+    public void setArray(byte[] array) {
+        this.array = array;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsString.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsStringResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsStringResponse.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsStringResponse.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryAsStringResponse {
+    protected java.lang.String echoBinaryAsStringResult;
+    
+    public EchoBinaryAsStringResponse() {
+    }
+    
+    public EchoBinaryAsStringResponse(java.lang.String echoBinaryAsStringResult) {
+        this.echoBinaryAsStringResult = echoBinaryAsStringResult;
+    }
+    
+    public java.lang.String getEchoBinaryAsStringResult() {
+        return echoBinaryAsStringResult;
+    }
+    
+    public void setEchoBinaryAsStringResult(java.lang.String echoBinaryAsStringResult) {
+        this.echoBinaryAsStringResult = echoBinaryAsStringResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryAsStringResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsString.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsString.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsString.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryFieldAsString {
+    protected org.jboss.test.ws.interop.microsoft.mtom.utf8.MtomTestStruct s;
+    
+    public EchoBinaryFieldAsString() {
+    }
+    
+    public EchoBinaryFieldAsString(org.jboss.test.ws.interop.microsoft.mtom.utf8.MtomTestStruct s) {
+        this.s = s;
+    }
+    
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.MtomTestStruct getS() {
+        return s;
+    }
+    
+    public void setS(org.jboss.test.ws.interop.microsoft.mtom.utf8.MtomTestStruct s) {
+        this.s = s;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsString.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsStringResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsStringResponse.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsStringResponse.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoBinaryFieldAsStringResponse {
+    protected java.lang.String echoBinaryFieldAsStringResult;
+    
+    public EchoBinaryFieldAsStringResponse() {
+    }
+    
+    public EchoBinaryFieldAsStringResponse(java.lang.String echoBinaryFieldAsStringResult) {
+        this.echoBinaryFieldAsStringResult = echoBinaryFieldAsStringResult;
+    }
+    
+    public java.lang.String getEchoBinaryFieldAsStringResult() {
+        return echoBinaryFieldAsStringResult;
+    }
+    
+    public void setEchoBinaryFieldAsStringResult(java.lang.String echoBinaryFieldAsStringResult) {
+        this.echoBinaryFieldAsStringResult = echoBinaryFieldAsStringResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoBinaryFieldAsStringResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinary.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinary.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinary.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoStringAsBinary {
+    protected java.lang.String s;
+    
+    public EchoStringAsBinary() {
+    }
+    
+    public EchoStringAsBinary(java.lang.String s) {
+        this.s = s;
+    }
+    
+    public java.lang.String getS() {
+        return s;
+    }
+    
+    public void setS(java.lang.String s) {
+        this.s = s;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinary.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinaryResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinaryResponse.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinaryResponse.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class EchoStringAsBinaryResponse {
+    protected byte[] echoStringAsBinaryResult;
+    
+    public EchoStringAsBinaryResponse() {
+    }
+    
+    public EchoStringAsBinaryResponse(byte[] echoStringAsBinaryResult) {
+        this.echoStringAsBinaryResult = echoStringAsBinaryResult;
+    }
+    
+    public byte[] getEchoStringAsBinaryResult() {
+        return echoStringAsBinaryResult;
+    }
+    
+    public void setEchoStringAsBinaryResult(byte[] echoStringAsBinaryResult) {
+        this.echoStringAsBinaryResult = echoStringAsBinaryResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/EchoStringAsBinaryResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/IMtomTest.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/IMtomTest.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/IMtomTest.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,19 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+public interface IMtomTest extends java.rmi.Remote {
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryAsStringResponse echoBinaryAsString(org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryAsString parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoStringAsBinaryResponse echoStringAsBinary(org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoStringAsBinary parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryArrayAsStringArrayResponse echoBinaryArrayAsStringArray(org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryArrayAsStringArray parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryFieldAsStringResponse echoBinaryFieldAsString(org.jboss.test.ws.interop.microsoft.mtom.utf8.EchoBinaryFieldAsString parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.mtom.utf8.OutputMessageContract echoBinaryHeaderAsString(org.jboss.test.ws.interop.microsoft.mtom.utf8.InputMessageContract parameters) throws 
+         java.rmi.RemoteException;
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/IMtomTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/InputMessageContract.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/InputMessageContract.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/InputMessageContract.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,13 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class InputMessageContract {
+    
+    public InputMessageContract() {
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/InputMessageContract.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,96 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+import junit.framework.Test;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
+/**
+ *
+ * MTOM test scenarios cover essential combinations of MTOM encoding applied to
+ * different data structures, character encodings and WS-Security.
+ * Scenarios 3.1 – 3.5 cover optimizing binary data in various parts of a message.
+ * Scenario 3.6 exercises UTF-16 encoding together with MTOM.
+ * Scenario 3.7 and 3.8 exercise composition of MTOM with Security.
+ *
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 24, 2006
+ */
+public class MTOMTestCase extends JBossWSTest {
+
+   IMtomTest port;
+
+   public static Test suite()
+   {
+      return JBossWSTestSetup.newTestSetup(MTOMTestCase.class, "jbossws-interop-mtomUTF8-client.jar");
+   }
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (port == null )
+      {
+         InitialContext iniCtx = getInitialContext();
+         Service service = (Service)iniCtx.lookup("java:comp/env/service/interop/MTOMUTF8Service");
+         port = (IMtomTest)service.getPort(IMtomTest.class);
+         configureClient();
+      }
+   }
+
+   private void configureClient() {
+
+      InteropConfigFactory factory = InteropConfigFactory.newInstance();
+      ClientScenario scenario = factory.createClientScenario(System.getProperty("client.scenario"));
+      if(scenario!=null)
+      {
+         log.info("Using scenario: " + scenario);
+         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, scenario.getTargetEndpoint().toString());
+      }
+      else
+      {
+         throw new IllegalStateException("Failed to load client scenario");
+      }
+   }
+
+   /**
+    * Scenario #3.1. Echo Binary As String.
+    *
+    * Request has a XOPed binary that contains utf-8 encoded text,
+    * response contains the passed string.
+    */
+   public void testScenario_3_1() throws Exception
+   {
+      String s = "Hello World";
+      EchoBinaryAsStringResponse response = port.echoBinaryAsString( new EchoBinaryAsString(s.getBytes()));
+      assertNotNull(response);
+      assertEquals(response.getEchoBinaryAsStringResult(), s);
+   }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MTOMTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MtomTestStruct.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MtomTestStruct.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MtomTestStruct.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,36 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class MtomTestStruct {
+    protected byte[] array;
+    protected java.lang.String name;
+    
+    public MtomTestStruct() {
+    }
+    
+    public MtomTestStruct(byte[] array, java.lang.String name) {
+        this.array = array;
+        this.name = name;
+    }
+    
+    public byte[] getArray() {
+        return array;
+    }
+    
+    public void setArray(byte[] array) {
+        this.array = array;
+    }
+    
+    public java.lang.String getName() {
+        return name;
+    }
+    
+    public void setName(java.lang.String name) {
+        this.name = name;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/MtomTestStruct.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/OutputMessageContract.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/OutputMessageContract.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/OutputMessageContract.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+
+public class OutputMessageContract {
+    protected java.lang.String stringValue;
+    
+    public OutputMessageContract() {
+    }
+    
+    public OutputMessageContract(java.lang.String stringValue) {
+        this.stringValue = stringValue;
+    }
+    
+    public java.lang.String getStringValue() {
+        return stringValue;
+    }
+    
+    public void setStringValue(java.lang.String stringValue) {
+        this.stringValue = stringValue;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/OutputMessageContract.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java	2006-09-19 10:23:59 UTC (rev 994)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java	2006-09-19 10:25:51 UTC (rev 995)
@@ -0,0 +1,65 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.interop.microsoft.mtom.utf8;
+
+import java.rmi.RemoteException;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * MTOM test scenarios cover essential combinations of MTOM encoding applied to
+ * different data structures, character encodings and WS-Security.
+ * Scenarios 3.1 – 3.5 cover optimizing binary data in various parts of a message.
+ * Scenario 3.6 exercises UTF-16 encoding together with MTOM.
+ * Scenario 3.7 and 3.8 exercise composition of MTOM with Security.
+ *
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 24, 2006
+ */
+public class TestService implements IMtomTest{
+   public EchoBinaryAsStringResponse echoBinaryAsString(EchoBinaryAsString parameters) throws RemoteException {
+      try
+      {
+         return new EchoBinaryAsStringResponse(new String(parameters.getArray(), "UTF-8"));
+      }
+      catch (UnsupportedEncodingException e)
+      {
+         throw new RemoteException(e.getMessage());
+      }
+   }
+
+   public EchoStringAsBinaryResponse echoStringAsBinary(EchoStringAsBinary parameters) throws RemoteException {
+      return null;
+   }
+
+   public EchoBinaryArrayAsStringArrayResponse echoBinaryArrayAsStringArray(EchoBinaryArrayAsStringArray parameters) throws RemoteException {
+      return null;
+   }
+
+   public EchoBinaryFieldAsStringResponse echoBinaryFieldAsString(EchoBinaryFieldAsString parameters) throws RemoteException {
+      return null;
+   }
+
+   public OutputMessageContract echoBinaryHeaderAsString(InputMessageContract parameters) throws RemoteException {
+      return null;
+   }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/mtom/utf8/TestService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jboss-svn-commits mailing list