Package org.codehaus.xfire.wsdl11

Examples of org.codehaus.xfire.wsdl11.HeaderTest


        this.service.setFaultSerializer(service.getFaultSerializer());
    }
   
    protected void initFromDefinition(String binding, Definition definition, Class serviceClass) throws Exception
    {
        WSDLServiceBuilder builder = new WSDLServiceBuilder(definition);
        builder.setTransportManager(xfire.getTransportManager());
        builder.build();
       
        Endpoint ep = findEndpoint(binding, builder.getAllServices());
       
        this.url = ep.getUrl();
        this.binding = ep.getBinding();
        this.transport = getXFire().getTransportManager().getTransport(binding);
       
View Full Code Here


       
        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();
       
        if (profile == null) profile = Jsr181Profile.class.getName();
        PluginProfile profileObj =
            (PluginProfile) ClassLoaderUtils.loadClass(profile, getClass()).newInstance();
       
        GenerationContext context = new GenerationContext(codeModel, builder.getDefinition());
        context.setOutputDirectory(dest);
        context.setWsdlLocation(wsdlUri);
        context.setBaseURI(baseURI);
        context.setSchemas(builder.getSchemas());
        context.setExternalBindings(getExternalBindingFiles());
        context.setExplicitAnnotation(isExplicitAnnotation());
        context.setServerStubOverwritten(isOverwrite());
        context.setDescriptorOverwritten(isOverwrite());
        context.setServerStubGenerated(isGenerateServerStubs());
       
        if (binding.equals(JAXB) && jaxbErrorListener != null)
        {
            ((JAXBSchemaSupport)support).setErrorListener(jaxbErrorListener);
        }
        support.initialize(context);

        // The schema generator may replace our code model.
        this.codeModel = context.getCodeModel();
       
        context.setServices(builder.getServices());
        context.setDestinationPackage(getDestinationPackage());
        context.setSchemaGenerator(support);
       
        for (Iterator<GeneratorPlugin> pitr = profileObj.getPlugins().iterator(); pitr.hasNext();)
        {
View Full Code Here

       
        service.setWSDLWriter(writer);

        try
        {
            WSDLServiceConfigurator config = new WSDLServiceConfigurator(service, def, transportManager);
            config.configure();
        }
        catch (Exception e)
        {
            if (e instanceof XFireRuntimeException)
                throw (XFireRuntimeException) e;
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.wsdl11.HeaderTest

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.