Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisDescWSDLComponentFactory


            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();
            }
View Full Code Here


        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;
View Full Code Here

    private void processWSDLFile(InputStream in , DeploymentEngine depengine) throws DeploymentException {
        try {
            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()) {
                // remove <wsdl:service> and <wsdl:binding> elements from the service
View Full Code Here

            if (in == null) {
                throw new Exception("Input Stream is null , fileNot Found");
            }
            WSDLDescription womDescription = WOMBuilderFactory.getBuilder(
                    WSDLConstants.WSDL_1_1)
                    .build(in, new AxisDescWSDLComponentFactory())
                    .getDescription();
            Iterator iterator = womDescription.getServices().keySet().iterator();
            if (iterator.hasNext()) {
                this.service = (AxisService) iterator.next();
            }
View Full Code Here

    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();
View Full Code Here

        if (null == this.service) {
           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
View Full Code Here

        InputStream in= file.getClassLoader().getResourceAsStream(SERVICEWSDL);
        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());
View Full Code Here

            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();
            }
View Full Code Here

        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;
View Full Code Here

            String opName = null;

            if (synCtx.getProperty(SynapseConstants.ENDPOINT_OPERATION) != null) {
                opName = synCtx.getProperty(SynapseConstants.ENDPOINT_OPERATION).toString();
            } else if (synCtx instanceof Axis2MessageContext) {
                AxisOperation operation
                        = ((Axis2MessageContext) synCtx).getAxis2MessageContext().getAxisOperation();
                if (operation != null) {
                    opName = operation.getName().getLocalPart();
                }
                if (opName == null ||
                        SynapseConstants.SYNAPSE_OPERATION_NAME.getLocalPart().equals(opName)) {
                    String soapAction = synCtx.getSoapAction();
                    opName = null;
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.AxisDescWSDLComponentFactory

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.