Package xsul.wsdl

Examples of xsul.wsdl.WsdlDefinitions


                    port = Integer.parseInt(args[1]);
                }
            }
            EchoService service = new EchoService(port);
            service.run();
            WsdlDefinitions wsdl = service.getWsdl();
            File wsdlFile = new File(SAMPLE_WSDL_DIRECTORY, Echo.WSDL_NAME);
            XMLUtil.saveXML(wsdl, wsdlFile);
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
View Full Code Here


                    port = Integer.parseInt(args[1]);
                }
            }
            ArrayAdderService service = new ArrayAdderService(port);
            service.run();
            WsdlDefinitions wsdl = service.getWsdl();
            File wsdlFile = new File(OUTPUT_WSDL_LOCATION);
            XMLUtil.saveXML(wsdl, wsdlFile);
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
View Full Code Here

     */
    private void loadComponents() throws ComponentException {
        // XXX need to use wsdlResolver from xsul, not xsul5, to handle
        // security.
        WsdlResolver wsdlResolver = WsdlResolver.getInstance();
        WsdlDefinitions definitions = wsdlResolver.loadWsdl(this.url);
        List<WSComponent> components = WSComponentFactory.createComponents(WSDLUtil
                .wsdlDefinitions3ToWsdlDefintions5(definitions));
        String urlString = this.url.toString();
        String name = urlString.substring(urlString.lastIndexOf('/') + 1);
        URLComponentReference componentReference = new URLComponentReference(name, components);
View Full Code Here

    public WSComponentRegistry() {

        try {
            URI url = new URI("http://129.79.49.210:8080/axis2/services/AmazonEC2Webservice?wsdl");
            WsdlResolver wsdlResolver = WsdlResolver.getInstance();
            WsdlDefinitions definitions = wsdlResolver.loadWsdl(url);
            List<WSComponent> components = WSComponentFactory.createComponents(WSDLUtil
                    .wsdlDefinitions3ToWsdlDefintions5(definitions));

            this.componentMap = new LinkedHashMap<String, Component>();
View Full Code Here

     *
     * @throws XBayaException
     */
    public void setup() throws XBayaException {
        try {
            WsdlDefinitions definitions = null;
            if (this.wsdlLocation != null && !this.wsdlLocation.equals("")) {
                WsdlResolver resolver = WsdlResolver.getInstance();
                definitions = resolver.loadWsdl(new File(".").toURI(), new URI(this.wsdlLocation));
            } else {
                definitions = this.wsdlDefinitionObject;
View Full Code Here

     *            The URI of the GFac service
     * @throws XBayaException
     */
    public GFacServiceCreator(URI wsdlURI) throws XBayaException {
        try {
            WsdlDefinitions definitions = WsdlResolver.getInstance().loadWsdl(wsdlURI);
            WSIFService service = WSIFServiceFactory.newInstance().getService(definitions);
            WSIFPort port = service.getPort();
            this.gFacOperation = port.createOperation(CREATE_SERVICE_OPERATION);
        } catch (RuntimeException e) {
            String message = "Failed to connect to the Generic Factory: " + wsdlURI;
View Full Code Here

            String wsdl = (String) outputMessage.getObjectPart(WSDL_PART);
            logger.info("WSDL: " + wsdl);

            XmlElement definitionsElement = XMLUtil.stringToXmlElement3(wsdl);

            this.serviceDefinitions = new WsdlDefinitions(definitionsElement);
            return this.serviceDefinitions;
        } catch (RuntimeException e) {
            String message = "Failed to create a service";
            throw new XBayaException(message, e);
        }
View Full Code Here

            URI getWsdlURI = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), gfacPath
                    + "/getWSDL", uri.getQuery(), uri.getFragment());

            logger.info("getWSDL service:" + getWsdlURI.toString());

            WsdlDefinitions concreteWSDL = WsdlResolver.getInstance().loadWsdl(getWsdlURI);

            this.invoker = InvokerFactory.createInvoker(this.portTypeQName, concreteWSDL, null, this.messageBoxURL,
                    null, true);
            this.invoker.setup();
        } catch (XBayaException xe) {
View Full Code Here

        this.dynamicFactoryWSDLLocation = dynamicFactoryWSDLLocation;
    }

    public void createService(String code) throws XBayaException {
        try {
            WsdlDefinitions definitions = null;
            if (this.dynamicFactoryWSDLLocation != null && !this.dynamicFactoryWSDLLocation.equals("")) {
                definitions = WsdlResolver.getInstance().loadWsdl(new File(".").toURI(),
                        new URI(this.dynamicFactoryWSDLLocation));
            }
View Full Code Here

TOP

Related Classes of xsul.wsdl.WsdlDefinitions

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.