Package org.apache.ode.axis2.service

Examples of org.apache.ode.axis2.service.ManagementService


            URI baseUri = pconf.getBaseURI().resolve(wsdlDefinition.getDocumentBaseURI());
            InputStream is = baseUri.toURL().openStream();
            WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisPatchedBuilder(is, wsdlServiceName, portName);
            serviceBuilder.setBaseUri(baseUri.toString());
            serviceBuilder.setCustomResolver(new Axis2UriResolver());
            serviceBuilder.setCustomWSLD4JResolver(new Axis2WSDLLocator(baseUri));
            serviceBuilder.setServerSide(true);

            AxisService axisService = serviceBuilder.populateService();
            axisService.setName(serviceName);
            axisService.setWsdlFound(true);
View Full Code Here


        portTypeHW = wsdlHW.getPortType(new QName(wsdlHW.getTargetNamespace(), "HelloPortType"));
        opHello = portTypeHW.getOperation("hello", null, null);
    }

    public void setUp() throws Exception {
        portmapper = new SoapMessageConverter(wsdl1, repoService, portName, true);
    }
View Full Code Here

    }

    public void testBadPortName() {
        try {
            new SoapMessageConverter(wsdl1, repoService, "badPort", true);
            fail("Should have thrown axis error.");
        } catch (AxisFault af) {
            ;// expected
        }
    }
View Full Code Here

        }
    }

    public void testBadServiceName() {
        try {
            new SoapMessageConverter(wsdl1, new QName(wsdl1tns, "foobar"), portName, true);
            fail("Should have thrown axis error.");
        } catch (AxisFault af) {
            ;// expected
        }
    }
View Full Code Here

        assertNotNull(hdr);
    }

    /** Make sure hello world request parses correctly. */
    public void testHelloWorldRequest() throws Exception {
        SoapMessageConverter portmaper1 = new SoapMessageConverter(wsdlHW, new QName(wsdlHW
                .getTargetNamespace(), "HelloService"), "HelloPort", false);

        XMLStreamReader sr = XMLInputFactory.newInstance().createXMLStreamReader(
                getClass().getResourceAsStream("/HelloWorldRequest.soap"));
        StAXSOAPModelBuilder builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(new SOAP11Factory(), sr);
        SOAPEnvelope se = builder.getSOAPEnvelope();

        Element msg = DOMUtils.stringToDOM("<message/>");
        portmaper1.parseSoapRequest(msg, se, opHello);
        System.out.println(DOMUtils.domToString(msg));
    }
View Full Code Here

        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
        wsdl1 = reader.readWSDL(getClass().getResource("/raja1.wsdl").toExternalForm());
        wsdl1tns = wsdl1.getTargetNamespace();
        portType = wsdl1.getPortType(new QName(wsdl1tns,"SimpleServicesPortType"));
        op1 = portType.getOperation("addNumbers", null, null);
        portmapper = new SoapMessageConverter(wsdl1, new QName(wsdl1tns,"SimpleServices"),
                "SimpleServicesHttpPort", true);
    }
View Full Code Here

        _serviceName = serviceName;
        _portName = portName;
        _executorService = executorService;
        _axisConfig = axisConfig;
        _sched = sched;
        _converter = new SoapMessageConverter(definition, serviceName, portName, _isReplicateEmptyNS);
        _server = server;
    }
View Full Code Here

    }

    public void setReplicateEmptyNS(boolean isReplicateEmptyNS) {
        _isReplicateEmptyNS = isReplicateEmptyNS;
        try {
            _converter = new SoapMessageConverter(_definition, _serviceName, _portName, _isReplicateEmptyNS);
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
    }
View Full Code Here

        _txManager = txManager;
        _wsdlDef = def;
        _serviceName = serviceName;
        _portName = portName;
        _serviceRef = EndpointFactory.convertToWSA(createServiceRef(genEPRfromWSDL(_wsdlDef, serviceName, portName)));
        _converter = new SoapMessageConverter(def, serviceName, portName, _isReplicateEmptyNS);

    }
View Full Code Here

        _serviceName = serviceName;
        _portName = portName;
        _executorService = executorService;
        _axisConfig = axisConfig;
        _sched = sched;
        _converter = new SoapMessageConverter(definition, serviceName, portName, _isReplicateEmptyNS);
        _server = server;
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.axis2.service.ManagementService

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.