Package javax.wsdl.factory

Examples of javax.wsdl.factory.WSDLFactory.newWSDLReader()


        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def = wsdlReader.readWSDL(contextURL, wsdlServicesElement);

        Trc.exitExpandWsdl(def);
        return def;
View Full Code Here


            String oldPropValue = props.getProperty(DEF_FACTORY_PROPERTY_NAME);

            props.setProperty(DEF_FACTORY_PROPERTY_NAME, PRIVATE_DEF_FACTORY_CLASS);

            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader wsdlReader = factory.newWSDLReader();
            wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
            String context = null;
            if (contextURL != null)
                context = contextURL.toString();
            Definition def = wsdlReader.readWSDL(context, wsdlLoc);
View Full Code Here

        WSIFUtils.initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
                WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def =
                wsdlReader.readWSDL(null, wsdl);

        return def;
View Full Code Here

    // xmlSchema reader
    XmlSchemaCollection xmlSchemaCollection = new XmlSchemaCollection();
    xmlSchemaCollection.setBaseUri(wsdl.toString());
    // wsdl
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader reader = wsdlFactory.newWSDLReader();
    Definition definition = reader.readWSDL(wsdl.toString());
    // extract
    processWsdlTypes(definition.getTypes(), xmlSchemaCollection);
  }
 
View Full Code Here

            serviceQname = service.getServiceName();
            serviceInterfaceClass = service.getClass();
            if (wsdlRefAddr != null) {
                try {
                    WSDLFactory wsdlfactory = WSDLFactory.newInstance();
                    WSDLReader reader = wsdlfactory.newWSDLReader();
                    reader.setFeature("javax.wsdl.importDocuments", true);
                    Definition def = reader.readWSDL((new URL(wsdlRefAddr)).toExternalForm());

                    javax.wsdl.Service wsdlservice = def.getService(serviceQname);
                    Map<String,?> ports = wsdlservice.getPorts();
View Full Code Here

                                                   Document wsdlDom )
   throws WSDLException
   {
      WSDLFactory wsdlFactory;
      wsdlFactory = WSDLFactory.newInstance(  );
      WSDLReader wsdlReader = wsdlFactory.newWSDLReader(  );
      return wsdlReader.readWSDL( docBaseUri, wsdlDom );
   }

   /**
    * Loads a WSDL file into a Wsdl4J Definition object based on a File location.
View Full Code Here

    public void setUp() throws Exception {
 
        String wsdlUrl = getClass().getResource(WSDL_PATH).toString();
        LOG.info("the path of wsdl file is " + wsdlUrl);
        WSDLFactory wsdlFactory = WSDLFactory.newInstance();
        WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
        wsdlReader.setFeature("javax.wsdl.verbose", false);
        def = wsdlReader.readWSDL(wsdlUrl);
       
        control = EasyMock.createNiceControl();
        bus = control.createMock(Bus.class);
View Full Code Here

    public void init() throws Exception {
        Assert.notNull(wsdl, "soap.wsdl parameter must be set on the uri");
        if (serviceName == null) {
            description = DOMUtils.readXml(wsdl.getInputStream());
            WSDLFactory wsdlFactory = WSDLFactory.newInstance();
            WSDLReader reader = wsdlFactory.newWSDLReader();
            reader.setFeature("javax.wsdl.verbose", false);
            definition = reader.readWSDL(wsdl.getURL().toString(), description);
            serviceName = (QName) definition.getServices().keySet().iterator().next();
        }
    }
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

    }

    private static void loadWsdl(String wsdlUrl, Map<String, Element> schemaMap,
                                 List<JibxSchemaResolver> resolvers) throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        Definition parentDef = reader.readWSDL(wsdlUrl);

        JibxSchemaHelper util = new JibxSchemaHelper(BusFactory.getDefaultBus(), schemaMap);
        util.getSchemas(parentDef, new SchemaCollection(), resolvers);
    }
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.