Package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom

Examples of org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService.uploadFile()


    public void testFileTransfer() throws Exception {
        // For testing purpose lets try uploading FileTransferClient.java file.
        DataHandler dataHandler = new DataHandler(new FileDataSource("FileTransferClient.java"));
        FileTransferService filetransfer = domain.getService(FileTransferService.class, "FileTransferServiceComponent");
        assertEquals("File uploaded Sucessfully", filetransfer.uploadFile(dataHandler));
    }

    @Override
    protected void setUp() throws Exception {
        domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.