Search in sources :

Example 1 with MTOMSwASampleClient

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);
}
Also used : MTOMSwASampleClient(org.apache.synapse.samples.framework.clients.MTOMSwASampleClient) SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult)

Example 2 with MTOMSwASampleClient

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);
}
Also used : MTOMSwASampleClient(org.apache.synapse.samples.framework.clients.MTOMSwASampleClient) SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult)

Aggregations

SampleClientResult (org.apache.synapse.samples.framework.SampleClientResult)2 MTOMSwASampleClient (org.apache.synapse.samples.framework.clients.MTOMSwASampleClient)2