Package org.apache.axis2.wsdl

Examples of org.apache.axis2.wsdl.WSDLVersionWrapper


                wsdlComponentFactory);
        pump.pump();

        //put the debugging serializer code here!

        return new WSDLVersionWrapper(wsdlDescription, wsdl1Definition);

    }
View Full Code Here


    }

    private WSDLDescription getWOM(String wsdlLocation)
        throws WSDLException, IOException {
        InputStream in = new FileInputStream(new File(wsdlLocation));
        WSDLVersionWrapper wsdlvWrap =
            WOMBuilderFactory.getBuilder(WSDLConstants.WSDL_1_1).build(in);
        return wsdlvWrap.getDescription();
    }
View Full Code Here

    private Log log = LogFactory.getLog(getClass());

    private AxisService processWSDLFile(InputStream in) throws DeploymentException {
        try {
            WOMBuilder builder = WOMBuilderFactory.getBuilder(WSDLConstants.WSDL_1_1);
            WSDLVersionWrapper wsdlVersionWrapper = builder.build(in,
                    new AxisDescWSDLComponentFactory());
            WSDLDescription womDescription = wsdlVersionWrapper.getDescription();

            //removing binding
//            Map bindings = wsdlVersionWrapper.getDefinition().getBindings();
//            Iterator binfingIterator = bindings.keySet().iterator();
//            while (binfingIterator.hasNext()) {
//                Object o = binfingIterator.next();
//                bindings.remove(o) ;
//
//            }
            Iterator iterator = womDescription.getServices().keySet()
                    .iterator();
            if (iterator.hasNext()) {
                // remove <wsdl:service> and <wsdl:binding> elements from the service
                // description we read in as we will be replacing them anyway.
                WSDLServiceImpl serviceimpl = (WSDLServiceImpl)
                        womDescription.getServices().get(iterator.next());
                AxisService service = new AxisService(serviceimpl);
                service.setName(serviceimpl.getName());
                service.setWSDLDefinition(wsdlVersionWrapper.getDefinition());
                return service;
//                depengine.getCurrentFileItem().addService(service);
            }
        } catch (WSDLException e) {
            throw new DeploymentException(e);
View Full Code Here

    }

    public PolicyAttachmentUtil(InputStream wsdlInputStream) {
        try {
            WSDLVersionWrapper build = WOMBuilderFactory.getBuilder(
                    WSDLConstants.WSDL_1_1).build(wsdlInputStream);
            wsdlDescription = build.getDescription();

            populatePolicyRegistry();
            populateSchemaRegistry();

        } catch (WSDLException e) {
View Full Code Here

    super(arg);
  }

  protected void setUp() throws Exception {

    WSDLVersionWrapper wsdlVersionWrapper = null;
        if (null == this.womDescription) {
            InputStream in = new FileInputStream(getTestResourceFile("BookQuote.wsdl"));
            wsdlVersionWrapper = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11).build(in);
      this.womDescription = wsdlVersionWrapper.getDescription();
        }
        if (null == wsdl4jDefinition) {
            this.wsdl4jDefinition = wsdlVersionWrapper.getDefinition();
        }

  }
View Full Code Here

    super(args);
  }

  protected void setUp() throws Exception {
    super.setUp();
    WSDLVersionWrapper wsdlVersionWrapper = null;
    if (null == this.womDescription) {
      InputStream in = new FileInputStream(
          getTestResourceFile("InteropTestDocLit2.wsdl"));
      wsdlVersionWrapper = WOMBuilderFactory.getBuilder(
          WOMBuilderFactory.WSDL11).build(in);
      this.womDescription = wsdlVersionWrapper.getDescription();

    }
    if (null == wsdl4jDefinition) {
      this.wsdl4jDefinition = wsdlVersionWrapper.getDefinition();
    }
  }
View Full Code Here

        super(testName);
    }

    private void initialize() throws Exception {

      WSDLVersionWrapper wsdlVersionWrapper = null;
        if (null == this.womDescription) {
            InputStream in = new FileInputStream(getTestResourceFile("InteropTest.wsdl"));
            wsdlVersionWrapper = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11).build(in);
      this.womDescription = wsdlVersionWrapper.getDescription();
        }
        if (null == wsdl4jDefinition) {
            this.wsdl4jDefinition = wsdlVersionWrapper.getDefinition();
        }
    }
View Full Code Here

  public CreateSchemaTest(String arg) {
    super(arg);
  }

  protected void setUp() throws Exception {
    WSDLVersionWrapper wsdlVersionWrapper = null;
        if (null == this.womDescription) {
            InputStream in = new FileInputStream(getTestResourceFile("BookQuote.wsdl"));
            wsdlVersionWrapper = WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11).build(in);
      this.womDescription = wsdlVersionWrapper.getDescription();
        }
        if (null == wsdl4jDefinition) {
            this.wsdl4jDefinition = wsdlVersionWrapper.getDefinition();
        }
  }
View Full Code Here

    }

    private WSDLDescription getWOM(String wsdlLocation) throws WSDLException ,
            IOException {
        InputStream in = new FileInputStream(new File(wsdlLocation));
        WSDLVersionWrapper wsdlvWrap =  WOMBuilderFactory.getBuilder(WOMBuilderFactory.WSDL11).build(in);
        return wsdlvWrap.getDescription();
    }
View Full Code Here

        Definition wsdl1Definition = this.readInTheWSDLFile(in);
    WSDLPump pump = new WSDLPump(wsdlDescription, wsdl1Definition);
        pump.pump();

        return new WSDLVersionWrapper(wsdlDescription, wsdl1Definition);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.wsdl.WSDLVersionWrapper

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.