Package org.apache.woden

Examples of org.apache.woden.WSDLFactory.newWSDLReader()


  protected void setUp() throws Exception {
    super.setUp();
        System.setProperty(ExtensionRegistry.REGISTRAR_PROPERTY,
                "testcase.extensions.foo.FooExtensionRegistrar");
        WSDLFactory factory = WSDLFactory.newInstance();
        fReader = factory.newWSDLReader();
        testErrorHandler = new TestErrorHandler();
        //Don't set validation on, as the testcase WSDL is not intended to be a valid WSDL 2.0 doc.
        fReader.getErrorReporter().setErrorHandler(testErrorHandler);
       
       
View Full Code Here


    public void testNSUriIsNull() throws Exception {
        URL wsdlURL = getClass().getClassLoader().getResource("testcase/documentation/extension/resources/nonamespace.wsdl");
        assertNotNull("Failed to find nonamespace.wsdl on the classpath",wsdlURL);

        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        ErrorHandler handler = new TestErrorHandler();
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
        reader.getErrorReporter().setErrorHandler(handler);
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
View Full Code Here

    }
   
    protected void setUp() throws Exception {
        super.setUp();
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        fExtReg = reader.getExtensionRegistry();
    }
   
    //Test for each API method.
View Full Code Here

        return readInTheWSDLFile(document);
    }

    private Description readInTheWSDLFile(Document document) throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        if (customWSDLResolver != null) {
            reader.setURIResolver(customWSDLResolver);
        }
        // This turns on WSDL validation which is set off by default.
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
View Full Code Here

  protected void setUp() throws Exception {
    super.setUp();
        System.setProperty(ExtensionRegistry.REGISTRAR_PROPERTY,
                "testcase.extensions.foo.FooExtensionRegistrar");
        WSDLFactory factory = WSDLFactory.newInstance();
        fReader = factory.newWSDLReader();
        testErrorHandler = new TestErrorHandler();
        //Don't set validation on, as the testcase WSDL is not intended to be a valid WSDL 2.0 doc.
        fReader.getErrorReporter().setErrorHandler(testErrorHandler);
       
       
View Full Code Here

        try {
           //If an implementation name is given use that to test against, else use the default one.
           if (implName != null && !implName.equals("")) {
               logger.info("Using woden with implementation from " + implName);
               WSDLFactory factory = WSDLFactory.newInstance(implName);
               reader = factory.newWSDLReader();
           } else {
               logger.info("Using default woden implementation.");
               WSDLFactory factory = WSDLFactory.newInstance();
               reader = factory.newWSDLReader();
           }
View Full Code Here

               WSDLFactory factory = WSDLFactory.newInstance(implName);
               reader = factory.newWSDLReader();
           } else {
               logger.info("Using default woden implementation.");
               WSDLFactory factory = WSDLFactory.newInstance();
               reader = factory.newWSDLReader();
           }

        } catch (WSDLException e) {

            // fail if unable to create a reader
View Full Code Here

        reportWriter.beginWsdl(wsdlLoc);

        try {

            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader reader = factory.newWSDLReader();

            // <-- enable WSDL 2.0 validation (optional)
            reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
           
            //Add errorHandler
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.