use of org.apache.synapse.samples.framework.clients.MTOMSwASampleClient in project wso2-synapse by wso2.
the class Sample51 method testSWAOptimization.
public void testSWAOptimization() {
String ep = "http://localhost:8280/services/MTOMSwASampleService";
String currentLocation = System.getProperty("user.dir") + File.separator;
String filename = FilenameUtils.normalize(currentLocation + "repository/conf/sample/resources/mtom/asf-logo.gif");
MTOMSwASampleClient client = getMTOMSwASampleClient();
log.info("Running test:SwA optimization and request/response correlation ");
SampleClientResult result = client.sendUsingSWA(filename, ep);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.clients.MTOMSwASampleClient in project wso2-synapse by wso2.
the class Sample51 method testMTOMOptimization.
public void testMTOMOptimization() {
String ep = "http://localhost:8280/services/MTOMSwASampleService";
String currentLocation = System.getProperty("user.dir") + File.separator;
String filename = FilenameUtils.normalize(currentLocation + "repository/conf/sample/resources/mtom/asf-logo.gif");
MTOMSwASampleClient client = getMTOMSwASampleClient();
log.info("Running test: MTOM optimization and request/response correlation ");
SampleClientResult result = client.sendUsingMTOM(filename, ep);
assertResponseReceived(result);
}
Aggregations