use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample430 method testCallOut.
public void testCallOut() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Simple Callout Mediator for synchronizing web service invocation");
result = client.requestStandardQuote(addUrl, trpUrl, null, "IBM", null);
assertTrue("Client did not get run successfully ", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample432 method testCallOutSecurityWithDifferentPoliciesForInboundAndOutbound.
public void testCallOutSecurityWithDifferentPoliciesForInboundAndOutbound() {
log.info("Running test: Callout mediator security sample with different policies " + "for inbound and outbound flows");
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
result = client.requestStandardQuote(null, trpUrl, null, "IBM", null);
assertTrue("Client did not run successfully ", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample268 method testLocalTransport.
public void testLocalTransport() throws Exception {
String addUrl = "http://localhost:8280/services/LocalTransportProxy";
StockQuoteSampleClient client = getStockQuoteClient();
SampleClientResult result = client.placeOrder(addUrl, null, null, "IBM");
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample100 method testWSSecurity.
public void testWSSecurity() {
String trpUrl = "http://localhost:8280/";
log.info("Running test: Using WS-Security for outgoing messages");
StockQuoteSampleClient client = getStockQuoteClient();
result = client.requestStandardQuote(null, trpUrl, null, "IBM", null);
assertTrue("Client did not run successfully", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample266 method testTCPtoHTTP.
public void testTCPtoHTTP() throws Exception {
String trpUrl = "tcp://localhost:6060/services/StockQuoteProxy";
StockQuoteSampleClient client = getStockQuoteClient();
SampleClientResult result = client.placeOrder(trpUrl, trpUrl, null, "IBM");
assertResponseReceived(result);
}
Aggregations