Search in sources :

Example 96 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class Sample750 method testXSLTTransformations.

public void testXSLTTransformations() throws Exception {
    String addUrl = "http://localhost:8280/services/StockQuoteProxy";
    StockQuoteSampleClient client = getStockQuoteClient();
    log.info("Running test: Stereotyping XSLT Transformations with Templates");
    SampleClientResult result = client.requestCustomQuote(addUrl, null, null, "IBM");
    assertTrue("Invalid result received", result.responseReceived());
}
Also used : SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult) StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)

Example 97 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class Sample267 method testUDPtoHTTP.

public void testUDPtoHTTP() throws Exception {
    String trpUrl = "udp://localhost:9999?contentType=text/xml";
    StockQuoteSampleClient client = getStockQuoteClient();
    SampleClientResult result = client.placeOrder(null, trpUrl, null, "IBM");
    assertResponseReceived(result);
}
Also used : SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult) StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)

Example 98 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class Sample156 method testServiceIntegration.

public void testServiceIntegration() {
    String addUrl = "http://localhost:8280/services/StockQuoteProxy";
    log.info("Running test: Service Integration with specifying the receiving sequence");
    StockQuoteSampleClient client = getStockQuoteClient();
    SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "IBM", null);
    assertTrue("Client did not get run successfully ", result.responseReceived());
}
Also used : SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult) StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)

Example 99 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class Sample200 method testCallMediator.

public void testCallMediator() throws Exception {
    String addUrl = "http://localhost:8280/services/StockQuoteProxy";
    String policy = "./repository/conf/sample/resources/policy/client_policy_3.xml";
    StockQuoteSampleClient client = getStockQuoteClient();
    log.info("Running test: Call Mediator for Non-Blocking Service Invocation");
    SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "IBM", policy);
    assertTrue("Invalid result received", result.responseReceived());
}
Also used : SampleClientResult(org.apache.synapse.samples.framework.SampleClientResult) StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)

Aggregations

StockQuoteSampleClient (org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)99 SampleClientResult (org.apache.synapse.samples.framework.SampleClientResult)45 OMElement (org.apache.axiom.om.OMElement)23 AxisFault (org.apache.axis2.AxisFault)5 QName (javax.xml.namespace.QName)4 Axis2BackEndServerController (org.apache.synapse.samples.framework.Axis2BackEndServerController)1