tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramku...@apache.org
Subject svn commit: r745779 - in /tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test: java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/ resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/
Date Thu, 19 Feb 2009 08:36:37 GMT
Author: ramkumar
Date: Thu Feb 19 08:36:37 2009
New Revision: 745779

URL: http://svn.apache.org/viewvc?rev=745779&view=rev
Log:
Fixes for TUSCANY-2840-Part3

Added:
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java
Modified:
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java
Thu Feb 19 08:36:37 2009
@@ -23,7 +23,6 @@
 import org.osoa.sca.annotations.Service;
 import java.awt.Image;
 import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.impl.llom.OMElementImpl;
 import javax.xml.transform.Source;
 
 /**
@@ -51,4 +50,8 @@
     public String uploadOMElementFileForward (OMElement attachment) throws Exception {
     	return fileTransferService.uploadOMElementFile(attachment);
     }
+    
+    public String sendMyExceptionForward (MyException attachment) throws Exception {
+    	return fileTransferService.sendMyException(attachment);
+    }
 }

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
Thu Feb 19 08:36:37 2009
@@ -27,11 +27,11 @@
 import javax.xml.transform.Source;
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.impl.llom.OMElementImpl;
 import org.apache.axiom.om.OMText;
 import javax.xml.transform.dom.DOMSource;
 import org.apache.axiom.om.OMFactory;
 import java.awt.image.BufferedImage;
+
 import junit.framework.TestCase;
 import org.apache.tuscany.sca.host.embedded.SCADomain;
 import org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferServiceClient;
@@ -43,6 +43,7 @@
 public class FileTransferMTOMTestCase extends TestCase {
 
     private SCADomain domain;
+    private FileTransferServiceClient filetransfer;
     
     /**
      * Runs once before the tests
@@ -50,6 +51,7 @@
     @BeforeClass
     protected void setUp() throws Exception {
     	domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");
+    	filetransfer = domain.getService(FileTransferServiceClient.class, "FileTransferClientComponent");
     }
    
     /**
@@ -64,8 +66,6 @@
     public void testImageFileTransfer() throws Exception {
         try {        	
             Image image = new BufferedImage(80, 24, BufferedImage.TYPE_INT_RGB);
-            
-            FileTransferServiceClient filetransfer = domain.getService(FileTransferServiceClient.class,
"FileTransferClientComponent");
             assertEquals("File uploaded Sucessfully", filetransfer.uploadImageFileForward(image));
           
         } catch (Exception ex){
             ex.printStackTrace();
@@ -77,8 +77,6 @@
         try {        	 
         	String xml = "<a>A<b>B</b><c>C</c></a>";
             Source source = new DOMSource(new String2Node().transform(xml, null));
-            
-            FileTransferServiceClient filetransfer = domain.getService(FileTransferServiceClient.class,
"FileTransferClientComponent");
             assertEquals("File uploaded Sucessfully", filetransfer.uploadSourceFileForward(source));
           
         } catch (Exception ex){
             ex.printStackTrace();
@@ -88,10 +86,8 @@
     @Test
     public void testDataHandlerFileTransfer() throws Exception {
         try {            
-            // For testing purpose lets try uploading FileTransferClient.java file.
+            // For testing purpose lets try uploading LICENSE file.
             DataHandler dataHandler = new DataHandler(new FileDataSource("./LICENSE"));
-            
-            FileTransferServiceClient filetransfer = domain.getService(FileTransferServiceClient.class,
"FileTransferClientComponent");
             assertEquals("File uploaded Sucessfully", filetransfer.uploadDataHandlerFileForward(dataHandler));
           
         } catch (Exception ex){
             ex.printStackTrace();
@@ -102,17 +98,23 @@
     public void testOMElementFileTransfer() throws Exception {
         try {        	
         	OMFactory factory = OMAbstractFactory.getOMFactory();                        
-            OMElement imageElement = factory.createOMElement(new QName("image"));   
+            OMElement imageElement = factory.createOMElement(new QName("image"));       
  
             
-            // For testing purpose lets try uploading FileTransferClient.java file.
             DataHandler dataHandler = new DataHandler(new FileDataSource("./LICENSE"));
             
             OMText textData = factory.createOMText(dataHandler, true);
             imageElement.addChild(textData);
-                       
-            FileTransferServiceClient filetransfer = domain.getService(FileTransferServiceClient.class,
"FileTransferClientComponent");
             assertEquals("File uploaded Sucessfully", filetransfer.uploadOMElementFileForward(imageElement));
-            
+        } catch (Exception ex){
+            ex.printStackTrace();
+        }
+    }
+    
+    @Test
+    public void testSendMyException() throws Exception {
+        try {        	
+            MyException exp = new MyExceptionImpl();
+            assertEquals("File uploaded Sucessfully", filetransfer.sendMyExceptionForward(exp));
           
         } catch (Exception ex){
             ex.printStackTrace();
         }

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java
Thu Feb 19 08:36:37 2009
@@ -20,8 +20,6 @@
 
 import org.osoa.sca.annotations.Remotable;
 import javax.activation.DataHandler;
-import javax.jws.soap.SOAPBinding;
-
 import java.awt.Image;
 import javax.xml.transform.Source;
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@@ -30,7 +28,6 @@
 /**
  * This is the business interface of the MTOM FileTransfer service.
  */
-@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
 @Remotable
 public interface FileTransferService {
 
@@ -38,9 +35,12 @@
     
     public String uploadSourceFile(Source attachment) throws Exception;
     
-    public String uploadDataHandlerFile(DataHandler attachment) throws Exception;
+    public String uploadDataHandlerFile(DataHandler attachment) throws Exception;    
     
-    //@XmlJavaTypeAdapter(value=OMElementXmlAdapter.class)
     public String uploadOMElementFile(OMElement attachment) throws Exception;
+    
+    //This method uses an user defined interface MyException as parameter type.
+    public String sendMyException(@XmlJavaTypeAdapter(MyExceptionAdapter.class) MyException
attachment) 
+    																				throws Exception;
 }
 

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
Thu Feb 19 08:36:37 2009
@@ -35,7 +35,8 @@
     
     public String uploadDataHandlerFileForward (DataHandler attachment) throws Exception;
   
     
-    //@XmlJavaTypeAdapter(value=OMElementXmlAdapter.class)
     public String uploadOMElementFileForward (OMElement attachment) throws Exception;
+    
+    public String sendMyExceptionForward (MyException attachment) throws Exception;
 }
 

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java
Thu Feb 19 08:36:37 2009
@@ -21,7 +21,6 @@
 import org.osoa.sca.annotations.Service;
 import javax.activation.DataHandler;
 import java.awt.Image;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 import javax.xml.transform.Source;
 import org.apache.axiom.om.OMElement;
 
@@ -44,11 +43,15 @@
     public String uploadDataHandlerFile(DataHandler attachment) throws Exception {
     	System.out.println("Content type = " + attachment.toString());        
         return "File uploaded Sucessfully";
-    }
+    }    
     
-    //@XmlJavaTypeAdapter(value=OMElementXmlAdapter.class)
     public String uploadOMElementFile(OMElement attachment) throws Exception {
-    	System.out.println("Content type = " + attachment.toString());        
-        return "File uploaded Sucessfully";
+    	System.out.println("Content type = " + attachment.toString());       
+    	return "File uploaded Sucessfully";
+    }
+    
+    public String sendMyException(MyException attachment) throws Exception {
+    	System.out.println("Content type = " + attachment.toString());       
+    	return "File uploaded Sucessfully";
     }
 }

Added: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java?rev=745779&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java
(added)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java
Thu Feb 19 08:36:37 2009
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom;
+
+//@XmlJavaTypeAdapter(MyExceptionAdapter.class)
+public interface MyException {
+	
+	public String getMessage();
+	
+}

Added: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java?rev=745779&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java
(added)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java
Thu Feb 19 08:36:37 2009
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class MyExceptionAdapter extends XmlAdapter<MyExceptionImpl, MyException> {
   
+	public MyException unmarshal(MyExceptionImpl v) {
+		return v;
+	}
+	
+	public MyExceptionImpl marshal(MyException v) { 
+		return (MyExceptionImpl)v;
+	}
+}

Added: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java?rev=745779&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java
(added)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java
Thu Feb 19 08:36:37 2009
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom;
+
+public class MyExceptionImpl extends Exception implements MyException {
+	
+	public String getMessage() {
+		return "good job......";
+	}
+}

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl
Thu Feb 19 08:36:37 2009
@@ -40,7 +40,7 @@
             <element name="uploadImageFileResponse">
                 <complexType>
                     <sequence>
-                        <element name="uploadFileReturn" type="xsd:string"/>
+                        <element name="uploadImageFileReturn" type="xsd:string"/>
                     </sequence>
                 </complexType>
             </element>
@@ -54,7 +54,7 @@
             <element name="uploadSourceFileResponse">
                 <complexType>
                     <sequence>
-                        <element name="uploadFileReturn" type="xsd:string"/>
+                        <element name="uploadSourceFileReturn" type="xsd:string"/>
                     </sequence>
                 </complexType>
             </element>
@@ -68,7 +68,7 @@
             <element name="uploadDataHandlerFileResponse">
                 <complexType>
                     <sequence>
-                        <element name="uploadFileReturn" type="xsd:string"/>
+                        <element name="uploadDataHandlerFileReturn" type="xsd:string"/>
                     </sequence>
                 </complexType>
             </element>
@@ -82,7 +82,21 @@
             <element name="uploadOMElementFileResponse">
                 <complexType>
                     <sequence>
-                        <element name="uploadFileReturn" type="xsd:string"/>
+                        <element name="uploadOMElementFileReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="sendMyException">
+                <complexType>
+                    <sequence>
+                        <element name="attachment" type="xsd:anyType"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="sendMyExceptionResponse">
+                <complexType>
+                    <sequence>
+                        <element name="sendMyExceptionReturn" type="xsd:string"/>
                     </sequence>
                 </complexType>
             </element>
@@ -117,6 +131,13 @@
     <wsdl:message name="uploadOMElementFileResponse">
         <wsdl:part element="tns:uploadOMElementFileResponse" name="parameters"/>
     </wsdl:message>
+    
+    <wsdl:message name="sendMyExceptionRequest">
+        <wsdl:part element="tns:sendMyException" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="sendMyExceptionResponse">
+        <wsdl:part element="tns:sendMyExceptionResponse" name="parameters"/>
+    </wsdl:message>
 
     <wsdl:portType name="FileTransfer">
         <wsdl:operation name="uploadImageFile">
@@ -135,6 +156,10 @@
             <wsdl:input message="tns:uploadOMElementFileRequest" name="uploadOMElementFileRequest"
wsaw:Action="attachment"/>
             <wsdl:output message="tns:uploadOMElementFileResponse" name="uploadOMElementFileResponse"/>
         </wsdl:operation>
+        <wsdl:operation name="sendMyException">
+            <wsdl:input message="tns:sendMyExceptionRequest" name="sendMyExceptionRequest"/>
+            <wsdl:output message="tns:sendMyExceptionResponse" name="sendMyExceptionResponse"/>
+        </wsdl:operation>
     </wsdl:portType>
 
     <wsdl:binding name="FileTransferSoapBinding" type="tns:FileTransfer">
@@ -175,6 +200,15 @@
                 <wsdlsoap:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="sendMyException">
+            <wsdlsoap:operation soapAction="" style="document"/>
+            <wsdl:input name="sendMyExceptionRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="sendMyExceptionResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
     </wsdl:binding>
 
     <wsdl:service name="FileTransferService">

Modified: tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite?rev=745779&r1=745778&r2=745779&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite
(original)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite
Thu Feb 19 08:36:37 2009
@@ -25,8 +25,8 @@
     <component name="FileTransferServiceComponent">
         <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferServiceImpl"
/>
 	    <service name="FileTransferService">
-              <interface.java interface="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService"/>
-	        <!--interface.wsdl interface="http://filetransfer#wsdl.interface(FileTransfer)"
/-->
+	    	<interface.java interface="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService"/>
+	        <!-- interface.wsdl interface="http://filetransfer#wsdl.interface(FileTransfer)"
/-->
 	        <binding.ws uri="http://localhost:8085/FileTransferService" requires="MTOM"/>
 	    </service>
     </component>
@@ -34,8 +34,7 @@
     <component name="FileTransferClientComponent">
         <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferClient"/>
         <reference name="fileTransferService">
-		<interface.java interface="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService"/>
-            <!--interface.wsdl interface="http://filetransfer#wsdl.interface(FileTransfer)"
/-->
+			<interface.java interface="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService"/>
             <binding.ws uri="http://localhost:8085/FileTransferService" requires="MTOM"/>
         </reference>
     </component>



Mime
View raw message