init(ctx, serverURL, cookie);
}
private void init(ConfigurationContext ctx, String serverURL, String cookie) throws AxisFault {
String serviceUploaderServiceEPR = serverURL + "RuleServiceFileUploadAdmin";
serviceUploaderStub = new RuleServiceFileUploadAdminStub(ctx, serviceUploaderServiceEPR);
ServiceClient client = serviceUploaderStub._getServiceClient();
Options options = client.getOptions();
options.setManageSession(true);
options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);