Examples of WSDLDescription


Examples of org.apache.wsdl.WSDLDescription

    private CodeGenConfiguration configuration;
  

    public CodeGenerationEngine(CommandLineOptionParser parser) throws CodeGenerationException{
        WSDLDescription wom ;
        try {
            wom = this.getWOM(parser);
        }
        catch (WSDLException e) {
            throw new CodeGenerationException("Error parsing WSDL", e);
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

        boolean foundservice = false;
        try {
            if(in!= null){
                WOMBuilder builder = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11);
                WSDLVersionWrapper wsdlVersionWrapper = builder.build(in, new AxisDescWSDLComponentFactory());
                WSDLDescription  womDescription = wsdlVersionWrapper.getDescription();
                Iterator iterator = womDescription.getServices().keySet().iterator();
                if(iterator.hasNext()){
                    foundservice = true;
                    service = (ServiceDescription)womDescription.getServices().get(iterator.next());
                }
                if(!foundservice){
                    service = new ServiceDescription();
                }
                service.setWSDLDefinition(wsdlVersionWrapper.getDefinition());
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

     */

    private void doFinish() {
 
        try {
            WSDLDescription wom = this.getWOM(page1.getFileName());
            Map optionsMap = fillOptionMap();
            CodeGenConfiguration codegenConfig = new CodeGenConfiguration(wom,
                    optionsMap);
            new CodeGenerationEngine(codegenConfig).generate();
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

                * or give a (custom) progress monitor to the generate() method, so
                * we will be informed by Axis2 about the progress of code generation. 
                */
               WSDL2JavaGenerator generator = new WSDL2JavaGenerator();
               monitor.subTask(CodegenWizardPlugin.getResourceString("generator.readingWOM"));
               WSDLDescription wom = generator.getWOM(wsdlSelectionPage.getFileName());
               monitor.worked(1);
              
               Map optionsMap = generator.fillOptionMap(optionsPage.isAsyncOnlyOn(),
                                         optionsPage.isSyncOnlyOn(),
                                         optionsPage.isServerside(),
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

            InputStream in = new FileInputStream(
                    new File("./test-resources/service.wsdl"));
            if (in == null) {
                throw new Exception("Input Stream is null , fileNot Found");
            }
            WSDLDescription womDescription = WOMBuilderFactory.getBuilder(
                    WOMBuilderFactory.WSDL11)
                    .build(in, new AxisDescWSDLComponentFactory())
                    .getDescription();
            Iterator iterator = womDescription.getServices().keySet().iterator();
            if (iterator.hasNext()) {
                this.service = (ServiceDescription) iterator.next();
            }
            //todo fix me ajith , deepal
            // assertNotNull(this.service);
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

        try {
            if (in != null) {
                WOMBuilder builder = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11);
                WSDLVersionWrapper wsdlVersionWrapper = builder.build(in,
                        new AxisDescWSDLComponentFactory());
                WSDLDescription womDescription = wsdlVersionWrapper.getDescription();
                Iterator iterator = womDescription.getServices().keySet()
                        .iterator();
                if (iterator.hasNext()) {
                    foundservice = true;
                    WSDLServiceImpl serviceimpl = (WSDLServiceImpl)womDescription.getServices().get(iterator.next());
                    service = new ServiceDescription(serviceimpl);
//                    service =
//                            (ServiceDescription) womDescription.getServices()
//                            .get(iterator.next());
                }
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

    public WSDLVersionWrapper build(InputStream in,
                    WSDLComponentFactory wsdlComponentFactory) throws WSDLException {
      if(null == wsdlComponentFactory){
        wsdlComponentFactory = new WSDLDescriptionImpl();
      }
      WSDLDescription wsdlDescription = wsdlComponentFactory.createDescription();

        Definition wsdl1Definition = this.readInTheWSDLFile(in);
        WSDLPump pump = new WSDLPump(wsdlDescription, wsdl1Definition);
        pump.pump();
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

    public WSDLVersionWrapper build(String uri,
                                    WSDLComponentFactory wsdlComponentFactory) throws WSDLException {
      if(null == wsdlComponentFactory){
        wsdlComponentFactory = new WSDLDescriptionImpl();
      }
        WSDLDescription wsdlDescription = wsdlComponentFactory.createDescription();

        Definition wsdl1Definition = this.readInTheWSDLFile(uri);
        WSDLPump pump = new WSDLPump(wsdlDescription,
                wsdl1Definition,
                wsdlComponentFactory);
View Full Code Here

Examples of org.apache.wsdl.WSDLDescription

       this.configuration = config;
       loadExtensions();
    }
   
    public CodeGenerationEngine(CommandLineOptionParser parser) throws CodeGenerationException {
        WSDLDescription wom;
        try {
            wom = this.getWOM(parser);
        } catch (WSDLException e) {
            throw new CodeGenerationException("Error parsing WSDL", e);
        } catch (IOException e1) {
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.