Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisService.addOperation()


        axisOp.setMessageReceiver(new MessageReceiver() {
            public void receive(MessageContext messageCtx) {

            }
        });
        service.addOperation(axisOp);
        service.mapActionToOperation(operationName.getLocalPart(), axisOp);

        mc = new MessageContext();
        mc.setConfigurationContext(configConetxt);
        mc.setTransportIn(transportIn);
View Full Code Here


        AxisOperation axisOp = new InOutAxisOperation(opName);

        axisOp.setMessageReceiver(messageReceiver);
        axisOp.setStyle(WSDLService.STYLE_RPC);
        service.addOperation(axisOp);
        service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + opName.getLocalPart(), axisOp);

        return service;
    }
View Full Code Here

        AxisOperation axisOp = new OutInAxisOperation(opName);

        axisOp.setMessageReceiver(messageReceiver);
        axisOp.setStyle(WSDLService.STYLE_RPC);
        service.addOperation(axisOp);

        return service;
    }

    public static ServiceContext fillContextInformation(AxisService axisService,
View Full Code Here

        // to set the operation flows
        if (info != null) {
            info.setOperationPhases(axisOperationTemplate);
        }

        axisService.addOperation(axisOperationTemplate);
    }

    /**
     * Creates an operation description if it is null and copies the flows from
     * the template operation.
View Full Code Here

        // to set the operation flows
        if (info != null) {
            info.setOperationPhases(axisOperationTemplate);
        }

        axisService.addOperation(axisOperationTemplate);
    }

    /**
     * Sends a SOAP elvelope created from an OMElement.
     *
 
View Full Code Here

        Iterator bindings = binding.getBindingOperations().values().iterator();

        while (bindings.hasNext()) {
            WSDLBindingOperation wsdlbop = (WSDLBindingOperation) bindings
                    .next();
            serviceDesc.addOperation(configureOperation(wsdlbop));
        }

        return serviceDesc;
    }
View Full Code Here

            } catch (AxisFault axisFault) {
                logger.error(Messages.getMessage("axisoperationcreateerror", axisFault.getMessage()));
                throw new DeploymentException(
                        Messages.getMessage("axisoperationcreateerror", axisFault.getMessage()));
            }
            axisService.addOperation(axisOperation);
        }
        return axisService;
    }

    private int getMessageExchangePattern(Operation wsdl4jOperation) {
View Full Code Here

                    }
                }
            };
            InOutAxisOperation operation1 = new InOutAxisOperation(new QName("receive"));
            operation1.setMessageReceiver(messageReceiver);
            messageCollectorService.addOperation(operation1);
           
            configContext.getAxisConfiguration().addService(messageCollectorService);
           
            axis2Server = new SimpleHTTPServer(configContext, 7777);
            axis2Server.start();
View Full Code Here

        // later in the convenience API; if you use
        // this constructor then you can't expect any magic!
        AxisService axisService = new AxisService(ANON_SERVICE);
        RobustOutOnlyAxisOperation robustoutoonlyOperation = new RobustOutOnlyAxisOperation(
                ANON_ROBUST_OUT_ONLY_OP);
        axisService.addOperation(robustoutoonlyOperation);

        OutOnlyAxisOperation outOnlyOperation = new OutOnlyAxisOperation(
                ANON_OUT_ONLY_OP);
        axisService.addOperation(outOnlyOperation);
View Full Code Here

                ANON_ROBUST_OUT_ONLY_OP);
        axisService.addOperation(robustoutoonlyOperation);

        OutOnlyAxisOperation outOnlyOperation = new OutOnlyAxisOperation(
                ANON_OUT_ONLY_OP);
        axisService.addOperation(outOnlyOperation);

        OutInAxisOperation outInOperation = new OutInAxisOperation(
                ANON_OUT_IN_OP);
        axisService.addOperation(outInOperation);
        return axisService;
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.