tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramku...@apache.org
Subject svn commit: r742927 - 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 Tue, 10 Feb 2009 10:32:16 GMT
Author: ramkumar
Date: Tue Feb 10 10:31:58 2009
New Revision: 742927

URL: http://svn.apache.org/viewvc?rev=742927&view=rev
Log:
Fixes for MTOM TestCase

Added:
    tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.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/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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -20,17 +20,35 @@
 
 import javax.activation.DataHandler;
 import org.osoa.sca.annotations.Reference;
+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;
 
 /**
  * This client program shows how to create an SCA runtime, start it,
  * locate the FileTransfer service and invoke it.
  */
-public class FileTransferClient implements FileTransferService {
+@Service(FileTransferServiceClient.class)
+public class FileTransferClient implements FileTransferServiceClient {
     
-    @Reference
-    public FileTransferService fileTransferWS;
+	@Reference
+    public FileTransferService fileTransferService;
 
-    public String uploadFile(DataHandler attachment) throws Exception {        
-        return fileTransferWS.uploadFile(attachment);
+    public String uploadImageFileForward (Image attachment) throws Exception {
+    	return fileTransferService.uploadImageFile(attachment);
+    }
+    
+    public String uploadSourceFileForward (Source attachment) throws Exception {
+    	return fileTransferService.uploadSourceFile(attachment);
+    }
+    
+    public String uploadDataHandlerFileForward (DataHandler attachment) throws Exception
{
+    	return fileTransferService.uploadDataHandlerFile(attachment);
+    }
+    
+    public String uploadOMElementFileForward (OMElement attachment) throws Exception {
+    	return fileTransferService.uploadOMElementFile(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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -21,34 +21,100 @@
 
 import javax.activation.DataHandler;
 import javax.activation.FileDataSource;
+import java.awt.Image;
+
+import javax.xml.namespace.QName;
+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.binding.ws.axis2.itests.mtom.FileTransferService;
 import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferServiceClient;
+import org.apache.tuscany.sca.databinding.xml.String2Node;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
 
 public class FileTransferMTOMTestCase extends TestCase {
 
     private SCADomain domain;
+    
+    /**
+     * Runs once before the tests
+     */
+    @BeforeClass
+    protected void setUp() throws Exception {
+    	domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");
+    }
+   
+    /**
+     * Runs once after the tests
+     */
+    @AfterClass
+    protected void tearDown() throws Exception {
+    	domain.close();
+    }
 
-    public void testFileTransfer() throws Exception {
-        try {
+    @Test
+    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();
+        }
+    }
+    
+    @Test
+    public void testSourceFileTransfer() throws Exception {
+        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();
+        }
+    }
+    
+    @Test
+    public void testDataHandlerFileTransfer() throws Exception {
+        try {            
             // For testing purpose lets try uploading FileTransferClient.java file.
             DataHandler dataHandler = new DataHandler(new FileDataSource("./LICENSE"));
-            FileTransferService filetransfer = domain.getService(FileTransferService.class,
"FileTransferClientComponent");
-            //dataHandler.writeTo(System.out);
-            assertEquals("File uploaded Sucessfully", filetransfer.uploadFile(dataHandler));
+            
+            FileTransferServiceClient filetransfer = domain.getService(FileTransferServiceClient.class,
"FileTransferClientComponent");
+            assertEquals("File uploaded Sucessfully", filetransfer.uploadDataHandlerFileForward(dataHandler));
           
         } catch (Exception ex){
             ex.printStackTrace();
         }
     }
-
-    @Override
-    protected void setUp() throws Exception {
-        domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");
-    }
-   
-    @Override
-    protected void tearDown() throws Exception {
-        domain.close();
+    
+    @Test
+    public void testOMElementFileTransfer() throws Exception {
+        try {        	
+        	OMFactory factory = OMAbstractFactory.getOMFactory();                        
+            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();
+        }
     }
-
 }

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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -20,13 +20,27 @@
 
 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;
+import org.apache.axiom.om.OMElement;
 
 /**
- * This is the business interface of the HelloWorld greetings service.
+ * This is the business interface of the MTOM FileTransfer service.
  */
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
 @Remotable
 public interface FileTransferService {
 
-    public String uploadFile(DataHandler attachment) throws Exception;
+    public String uploadImageFile(Image attachment) throws Exception;
+    
+    public String uploadSourceFile(Source attachment) throws Exception;
+    
+    public String uploadDataHandlerFile(DataHandler attachment) throws Exception;
+    
+    //@XmlJavaTypeAdapter(value=OMElementXmlAdapter.class)
+    public String uploadOMElementFile(OMElement attachment) throws Exception;
 }
 

Added: 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=742927&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
(added)
+++ tuscany/branches/sca-java-1.x/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java
Tue Feb 10 10:31:58 2009
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom;
+
+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;
+
+/**
+ * This is the client interface of the File Transfer service.
+ */
+public interface FileTransferServiceClient {
+
+    public String uploadImageFileForward (Image attachment) throws Exception;
+    
+    public String uploadSourceFileForward (Source attachment) throws Exception;
+    
+    public String uploadDataHandlerFileForward (DataHandler attachment) throws Exception;
   
+    
+    //@XmlJavaTypeAdapter(value=OMElementXmlAdapter.class)
+    public String uploadOMElementFileForward (OMElement 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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -20,33 +20,35 @@
 
 import org.osoa.sca.annotations.Service;
 import javax.activation.DataHandler;
-import java.io.File;
-import java.io.FileOutputStream;
+import java.awt.Image;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.transform.Source;
+import org.apache.axiom.om.OMElement;
 
 /**
  * This class implements the HelloWorld service.
  */
-@Service(FileTransferService.class)
+@Service(interfaces={FileTransferService.class})
 public class FileTransferServiceImpl implements FileTransferService {
-
-    public String uploadFile(DataHandler attachment) throws Exception {
-        
-        //OMText binaryNode = (OMText) (attachment.getFirstElement()).getFirstOMChild();
-        //DataHandler dataHandler = (DataHandler) binaryNode.getDataHandler();        
-        
-        // Use this code to save the file we have received.
-        /*DataHandler dataHandler = attachment;
-        
-        File file = new File("transferedfile.java");
-        FileOutputStream fileOutputStream = new FileOutputStream(file);
-        dataHandler.writeTo(fileOutputStream);        
-        fileOutputStream.flush();
-        fileOutputStream.close();*/
-        
-        System.out.println("Content type = " + attachment.getContentType() + "\nContent =
");
-        //attachment.writeTo(System.out);
-        
+     
+    public String uploadImageFile(Image attachment) throws Exception {
+    	System.out.println("Content type = " + attachment.toString());        
+        return "File uploaded Sucessfully";
+    }
+    
+    public String uploadSourceFile(Source attachment) throws Exception {
+    	System.out.println("Content type = " + attachment.toString());        
+        return "File uploaded Sucessfully";
+    }
+    
+    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";
     }
-
 }

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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -21,22 +21,65 @@
     targetNamespace="http://filetransfer" 
     xmlns:tns="http://filetransfer" 
     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
-    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
+    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+    xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 	name="filetransfer">
 
     <wsdl:types>
         <schema elementFormDefault="qualified" targetNamespace="http://filetransfer" xmlns="http://www.w3.org/2001/XMLSchema">
-
-            <element name="uploadFile">
+            
+            <element name="uploadImageFile">
                 <complexType>
                     <sequence>
                         <element name="attachment" type="xsd:base64Binary"/>
                     </sequence>
                 </complexType>
             </element>
-
-            <element name="uploadFileResponse">
+            <element name="uploadImageFileResponse">
+                <complexType>
+                    <sequence>
+                        <element name="uploadFileReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadSourceFile">
+                <complexType>
+                    <sequence>
+                        <element name="attachment" type="xsd:base64Binary"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadSourceFileResponse">
+                <complexType>
+                    <sequence>
+                        <element name="uploadFileReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadDataHandlerFile">
+                <complexType>
+                    <sequence>
+                        <element name="attachment" type="xsd:base64Binary"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadDataHandlerFileResponse">
+                <complexType>
+                    <sequence>
+                        <element name="uploadFileReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadOMElementFile">
+                <complexType>
+                    <sequence>
+                        <element name="attachment" type="xsd:base64Binary"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="uploadOMElementFileResponse">
                 <complexType>
                     <sequence>
                         <element name="uploadFileReturn" type="xsd:string"/>
@@ -47,29 +90,88 @@
         </schema>
     </wsdl:types>
 
-    <wsdl:message name="uploadFileRequest">
-        <wsdl:part element="tns:uploadFile" name="parameters"/>
+    <wsdl:message name="uploadImageFileRequest">
+        <wsdl:part element="tns:uploadImageFile" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="uploadImageFileResponse">
+        <wsdl:part element="tns:uploadImageFileResponse" name="parameters"/>
+    </wsdl:message>
+
+    <wsdl:message name="uploadSourceFileRequest">
+        <wsdl:part element="tns:uploadSourceFile" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="uploadSourceFileResponse">
+        <wsdl:part element="tns:uploadSourceFileResponse" name="parameters"/>
+    </wsdl:message>
+    
+    <wsdl:message name="uploadDataHandlerFileRequest">
+        <wsdl:part element="tns:uploadDataHandlerFile" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="uploadDataHandlerFileResponse">
+        <wsdl:part element="tns:uploadDataHandlerFileResponse" name="parameters"/>
     </wsdl:message>
 
-    <wsdl:message name="uploadFileResponse">
-        <wsdl:part element="tns:uploadFileResponse" name="parameters"/>
+    <wsdl:message name="uploadOMElementFileRequest">
+        <wsdl:part element="tns:uploadOMElementFile" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="uploadOMElementFileResponse">
+        <wsdl:part element="tns:uploadOMElementFileResponse" name="parameters"/>
     </wsdl:message>
 
     <wsdl:portType name="FileTransfer">
-        <wsdl:operation name="uploadFile">
-            <wsdl:input message="tns:uploadFileRequest" name="uploadFileRequest"/>
-            <wsdl:output message="tns:uploadFileResponse" name="uploadFileResponse"/>
+        <wsdl:operation name="uploadImageFile">
+            <wsdl:input message="tns:uploadImageFileRequest" name="uploadImageFileRequest"
wsaw:Action="attachment"/>
+            <wsdl:output message="tns:uploadImageFileResponse" name="uploadImageFileResponse"/>
+        </wsdl:operation>
+        <wsdl:operation name="uploadSourceFile">
+            <wsdl:input message="tns:uploadSourceFileRequest" name="uploadSourceFileRequest"
wsaw:Action="attachment"/>
+            <wsdl:output message="tns:uploadSourceFileResponse" name="uploadSourceFileResponse"/>
+        </wsdl:operation>
+        <wsdl:operation name="uploadDataHandlerFile">
+            <wsdl:input message="tns:uploadDataHandlerFileRequest" name="uploadDataHandlerFileRequest"
wsaw:Action="attachment"/>
+            <wsdl:output message="tns:uploadDataHandlerFileResponse" name="uploadDataHandlerFileResponse"/>
+        </wsdl:operation>
+        <wsdl:operation name="uploadOMElementFile">
+            <wsdl:input message="tns:uploadOMElementFileRequest" name="uploadOMElementFileRequest"
wsaw:Action="attachment"/>
+            <wsdl:output message="tns:uploadOMElementFileResponse" name="uploadOMElementFileResponse"/>
         </wsdl:operation>
     </wsdl:portType>
 
     <wsdl:binding name="FileTransferSoapBinding" type="tns:FileTransfer">
-        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-        <wsdl:operation name="uploadFile">
-            <wsdlsoap:operation soapAction=""/>
-            <wsdl:input name="uploadFileRequest">
+        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       
+        <wsdl:operation name="uploadImageFile">
+            <wsdlsoap:operation soapAction="attachment" style="document"/>
+            <wsdl:input name="uploadImageFileRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="uploadImageFileResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="uploadSourceFile">
+            <wsdlsoap:operation soapAction="attachment" style="document"/>
+            <wsdl:input name="uploadSourceFileRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="uploadSourceFileResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="uploadDataHandlerFile">
+            <wsdlsoap:operation soapAction="attachment" style="document"/>
+            <wsdl:input name="uploadDataHandlerFileRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="uploadDataHandlerFileResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="uploadOMElementFile">
+            <wsdlsoap:operation soapAction="attachment" style="document"/>
+            <wsdl:input name="uploadOMElementFileRequest">
                 <wsdlsoap:body use="literal"/>
             </wsdl:input>
-            <wsdl:output name="uploadFileResponse">
+            <wsdl:output name="uploadOMElementFileResponse">
                 <wsdlsoap:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>

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=742927&r1=742926&r2=742927&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
Tue Feb 10 10:31:58 2009
@@ -25,14 +25,17 @@
     <component name="FileTransferServiceComponent">
         <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferServiceImpl"
/>
 	    <service name="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>
     
     <component name="FileTransferClientComponent">
         <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferClient"/>
-        <reference name="fileTransferWS">
+        <reference name="fileTransferService">
+		<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"/>
         </reference>
     </component>



Mime
View raw message