Package javax.wsdl.factory

Examples of javax.wsdl.factory.WSDLFactory


    private Definition definition;

    @Before
    public void setUp() throws Exception {
        provider = new SuffixBasedPortTypesProvider();
        WSDLFactory factory = WSDLFactory.newInstance();
        definition = factory.newDefinition();
    }
View Full Code Here


    private DocumentBuilder documentBuilder;

    @Before
    public void setUp() throws Exception {
        provider = new DefaultMessagesProvider();
        WSDLFactory factory = WSDLFactory.newInstance();
        definition = factory.newDefinition();
        DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
        documentBuilderFactory.setNamespaceAware(true);
        documentBuilder = documentBuilderFactory.newDocumentBuilder();
    }
View Full Code Here

    private Definition definition;

    @Before
    public void setUp() throws Exception {
        provider = new Soap12Provider();
        WSDLFactory factory = WSDLFactory.newInstance();
        definition = factory.newDefinition();
    }
View Full Code Here

    private Definition definition;

    @Before
    public void setUp() throws Exception {
        provider = new Soap11Provider();
        WSDLFactory factory = WSDLFactory.newInstance();
        definition = factory.newDefinition();
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        provider = new SuffixBasedMessagesProvider();
        provider.setFaultSuffix("Foo");
        WSDLFactory factory = WSDLFactory.newInstance();
        definition = factory.newDefinition();
        DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
        documentBuilderFactory.setNamespaceAware(true);
        documentBuilder = documentBuilderFactory.newDocumentBuilder();
    }
View Full Code Here

    public Source getSource() {
        synchronized (monitor) {
            Assert.notNull(definition, "definition must not be null");
            if (document == null) {
                try {
                    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
                    WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
                    document = wsdlWriter.getDocument(definition);
                }
                catch (WSDLException ex) {
                    throw new WsdlDefinitionException(ex.getMessage(), ex);
                }
View Full Code Here

        assertNotNull(mockPort);
    }

    public void testBuildBookQuoteProxy() throws Exception {
        File wsdl = new File(basedir, "src/test-resources/BookQuote.wsdl");
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        Definition definition = reader.readWSDL(wsdl.toURI().toString());
        SchemaInfoBuilder schemaInfoBuilder = new SchemaInfoBuilder(null, definition);
        File jaxrpcMapping = new File(basedir, "src/test-resources/BookQuote.xml");
        JavaWsdlMappingDocument mappingDocument = JavaWsdlMappingDocument.Factory.parse(jaxrpcMapping);
        JavaWsdlMappingType mapping = mappingDocument.getJavaWsdlMapping();
View Full Code Here

    }

    public static Definition readWsdl(URL url) throws OpenEJBException {
        Definition definition;
        try {
            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader reader = factory.newWSDLReader();
            reader.setFeature("javax.wsdl.verbose", true);
            reader.setFeature("javax.wsdl.importDocuments", true);
            WsdlResolver wsdlResolver = new WsdlResolver(new URL(url, ".").toExternalForm(), new InputSource(url.openStream()));
            definition = reader.readWSDL(wsdlResolver);
        } catch (IOException e) {
View Full Code Here

            base = baseUri.substring(0, baseUri.toLowerCase().indexOf("?xsd="));
            xsd = baseUri.substring(baseUri.toLowerCase().indexOf("?xsd=") + 5);
        }

        if (!mp.containsKey(wsdl)) {
            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader reader = factory.newWSDLReader();
            reader.setFeature("javax.wsdl.importDocuments", true);
            reader.setFeature("javax.wsdl.verbose", false);
            Definition def = reader.readWSDL(wsdlUri);
            updateDefinition(def, mp, smp, base);
            updateServices(this.service.getName(), this.service.getEndpointName(), def, base);
            mp.put("", def);
        }

        Element rootElement;

        if (xsd == null) {
            Definition def = mp.get(wsdl);

            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLWriter writer = factory.newWSDLWriter();

            rootElement = writer.getDocument(def).getDocumentElement();
        } else {
            SchemaReference si = smp.get(xsd);
            rootElement = si.getReferencedSchema().getElement();
View Full Code Here

        Definition wsdlDefinition = null;
        URL wsdlURL = getWsdlURL(wsdlLocation, configurationBaseUrl, classLoader);
        InputStream wsdlStream = null;
        try {
            wsdlStream = wsdlURL.openStream();
            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader reader = factory.newWSDLReader();
            reader.setFeature("javax.wsdl.importDocuments", true);
            reader.setFeature("javax.wsdl.verbose", false);
            SimpleWSDLLocator wsdlLocator = new SimpleWSDLLocator(wsdlURL.toString());
            wsdlDefinition = reader.readWSDL(wsdlLocator);
        } finally {
View Full Code Here

TOP

Related Classes of javax.wsdl.factory.WSDLFactory

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.