org.apache.axis2.jaxws.sample.mtom
Class SampleMTOMTests

java.lang.Object
  extended by org.apache.axis2.jaxws.sample.mtom.SampleMTOMTests

public class SampleMTOMTests
extends java.lang.Object

A sample client that uses MTOM to send an image using both the JAX-WS Dispatch and the Proxy.


Constructor Summary
SampleMTOMTests()
           
 
Method Summary
static void main(java.lang.String[] args)
          Command Line Program Entry Point
 void parseArgs(java.lang.String[] args)
          Read and interpret the command-line arguments.
 void setOptions(java.lang.String uri, java.lang.Boolean soapdef, java.lang.String fileName)
          Set multiple class variables and init content.
 java.lang.String testMtomWithDispatch(java.lang.String result)
          Tests sending an image with MTOM, using the JAX-WS Dispatch API.
 java.lang.String testMtomWithProxy(java.lang.String result)
          Tests sending an image with MTOM, using a JAX-WS Dynamic Proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleMTOMTests

public SampleMTOMTests()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Command Line Program Entry Point

Parameters:
args - - see printUsage output
Throws:
java.lang.Exception

parseArgs

public void parseArgs(java.lang.String[] args)
Read and interpret the command-line arguments. See printUsage output for supported parameters

Parameters:
args - String[] From the Command Line

setOptions

public void setOptions(java.lang.String uri,
                       java.lang.Boolean soapdef,
                       java.lang.String fileName)
                throws java.lang.Exception
Set multiple class variables and init content.

Parameters:
uri - - String - base service URI
soapdef - - Boolean - true for SOAP 1.2
fileName - - source file to send
Throws:
java.lang.Exception

testMtomWithDispatch

public java.lang.String testMtomWithDispatch(java.lang.String result)
                                      throws java.lang.Exception
Tests sending an image with MTOM, using the JAX-WS Dispatch API.

Parameters:
result - - String - used to pass back results to servlet.
Returns:
String - the input string or null
Throws:
java.lang.Exception

testMtomWithProxy

public java.lang.String testMtomWithProxy(java.lang.String result)
                                   throws java.lang.Exception
Tests sending an image with MTOM, using a JAX-WS Dynamic Proxy.

Parameters:
result - - String - used to pass back results to servlet.
Returns:
String - the input string or null
Throws:
java.lang.Exception