Package org.codehaus.xfire.util

Examples of org.codehaus.xfire.util.Resolver


        if (baseURI != null && new File(baseURI).exists())
        {
            baseURI = new File(baseURI).toURI().toString();
        }

        Resolver resolver = new Resolver(baseURI, wsdl);

        if (resolver.getInputStream() == null)
        {
            throw new XFireException("Could not find wsdl " + wsdl + " with a base URI of " + baseURI
                                     + ".");
        }
       
        String wsdlUri = resolver.getURI().toString();
        if (baseURI == null)
        {
            baseURI = wsdlUri;
        }
       
        log.info("Generating code for WSDL at " + wsdlUri + " with a base URI of " + baseURI);
       
        InputSource source = new InputSource(resolver.getInputStream());
        source.setSystemId(wsdlUri);
        WSDLServiceBuilder builder = new WSDLServiceBuilder(baseURI, source);
        builder.setBindingProvider(support.getBindingProvider());
        builder.setForceBare(forceBare);
        builder.build();
View Full Code Here


        StringTokenizer st = new StringTokenizer(externalBindings, ",");
        while (st.hasMoreTokens())
        {
            String name = st.nextToken();
        
            Resolver resolver = new Resolver(baseURI, name);

            if (resolver.getInputStream() == null)
                throw new IllegalStateException("Could not find binding file " + name);
           
            files.put(resolver.getURI().toString(), resolver.getInputStream());
        }
        return files;
    }
View Full Code Here

     * @see javax.wsdl.xml.WSDLLocator#getImportInputSource(java.lang.String,
     *      java.lang.String)
     */
    public InputSource getImportInputSource(String arg0, String name)
    {
        Resolver resolver;
        InputSource result = null;

        // Set the last imported value.
        lastimport = name;
        try
        {
            resolver = new Resolver(baseURI, name);
            InputStream is = resolver.getInputStream();
            if (is != null)
                result = new InputSource(resolver.getInputStream());
        }
        catch (IOException e)
        {
            LOG.warn("Source: " + name + " failed to find input source with exception: ", e);
        }
View Full Code Here

       
        if (wsdlURL != null)
        {
            String home = (String) getXfire().getProperty(XFire.XFIRE_HOME);
           
            Resolver resolver = new Resolver(home, wsdlURL);
           
            URL url = resolver.getURL();
            if (url == null)
            {
                throw new XFireRuntimeException("Could not resolve WSDL URL " + wsdlURL);
            }
           
View Full Code Here

        try {
            int i = 0;
            for (Iterator itr = schemaLocations.iterator(); itr.hasNext();) {
                String schemaLocation = (String) itr.next();
                schemaSources[i] = new StreamSource(new Resolver(schemaLocation).getInputStream());
                i++;
            }
           
            schema = factory.newSchema(schemaSources);
        }
View Full Code Here

    {
        InputStream is;
        if (wsdlUrl != null)
            is = wsdlUrl.openStream();
        else
            is = new Resolver(baseString, wsdlString).getInputStream();

        copy(is, out, 8096 );
    }
View Full Code Here

            if (serviceName != null && namespace != null)
            {
                name = new QName(namespace, serviceName);
            }
           
            Resolver resolver = new Resolver(_wsdlDocumentUrl);

            URI uri = resolver.getURI();
            if (uri == null)
            {
                throw new XFireRuntimeException("Could not resolve uri " + uri);
            }
           
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.util.Resolver

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.