Package org.reficio.ws.builder

Examples of org.reficio.ws.builder.SoapOperation


        assertTrue(server.isRunning());
    }

    @Test
    public void testRequestResponse() {
        SoapOperation operation = builder.operation().name("ConversionRate").find();
        SoapContext context = SoapContext.builder().exampleContent(true).build();
        String request = builder.buildInputMessage(operation, context);

        String response = client.post(request);
        assertNotNull(response);
View Full Code Here


        Wsdl parser = Wsdl.parse(wsdlUrl);
        SoapBuilder soapBuilder = parser.binding().name(bindingName).find();

        // get the operation to invoked -> assumption our operation is the first operation in the WSDL's
        SoapOperation operation = soapBuilder.operation().name("GetLastTradePrice").find();

        // construct the request
        String request = soapBuilder.buildInputMessage(operation);
        // post the request to the server
        String response = client.post(request);
View Full Code Here

    @Test
    @Server(wsdl = "classpath:wsdl/currency-convertor.wsdl", binding = "CurrencyConvertorSoap", port = 41414)
    public void testSoapMock_perMethodServer() {
        SoapClient client = SoapClient.builder().endpointUri("http://localhost:41414/service").build();
        SoapBuilder builder = Wsdl.parse(WSDL).binding().localPart("CurrencyConvertorSoap").find();
        SoapOperation operation = builder.operation().name("ConversionRate").find();
        String request = builder.buildInputMessage(operation);

        log.info("\n" + request);

        String response = client.post(request);
View Full Code Here

    @Test
    public void testSoapMock_perClassServer() {
        SoapClient client = SoapClient.builder().endpointUri("http://localhost:51515/service").build();
        SoapBuilder builder = Wsdl.parse(WSDL).binding().localPart("CurrencyConvertorSoap").find();
        SoapOperation operation = builder.operation().name("ConversionRate").find();
        String request = builder.buildInputMessage(operation);

        log.info("\n" + request);

        String response = client.post(request);
View Full Code Here

    @Override
    public Source respond(SoapMessage message) {
        try {
            BindingOperation invokedOperation = soapOperationMatcher.getInvokedOperation(message);
            if (soapOperationMatcher.isRequestResponseOperation(invokedOperation)) {
                SoapOperation operation = SoapUtils.createOperation(builder, binding, invokedOperation, message.getSoapAction());
                return respond(operation, message);
            }
            return null;
        } catch (OperationNotFoundException e) {
            throw new SoapServerException(e);
View Full Code Here

TOP

Related Classes of org.reficio.ws.builder.SoapOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.