public class JAXWSServiceUploaderClient {
private JAXWSServiceUploaderStub stub;
public JAXWSServiceUploaderClient(ConfigurationContext ctx, String serviceURL, String cookie) throws AxisFault {
stub = new JAXWSServiceUploaderStub(ctx, serviceURL);
Options options = stub._getServiceClient().getOptions();
options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
options.setManageSession(true);
//Increase the time out when sending large attachments