当前位置: 首页>>代码示例>>Java>>正文


Java AxisOperation.setStyle方法代码示例

本文整理汇总了Java中org.apache.axis2.description.AxisOperation.setStyle方法的典型用法代码示例。如果您正苦于以下问题:Java AxisOperation.setStyle方法的具体用法?Java AxisOperation.setStyle怎么用?Java AxisOperation.setStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axis2.description.AxisOperation的用法示例。


在下文中一共展示了AxisOperation.setStyle方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createSpringService

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
private AxisService createSpringService(QName springServiceName,
                                        MessageReceiver messageReceiver, String supplierName,
                                        String beanName, QName opName) throws AxisFault {

    AxisService service = new AxisService(springServiceName.getLocalPart());

    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(new Parameter(Constants.SERVICE_OBJECT_SUPPLIER, supplierName));
    service.addParameter(new Parameter(Constants.SERVICE_TCCL, Constants.TCCL_COMPOSITE));
    service.addParameter(new Parameter(
            SpringAppContextAwareObjectSupplier.SERVICE_SPRING_BEANNAME, beanName));

    AxisOperation axisOp = new InOutAxisOperation(opName);

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

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:23,代码来源:SpringServiceTest.java

示例2: createSpringServiceforClient

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
public AxisService createSpringServiceforClient(QName springServiceName,
                                                MessageReceiver messageReceiver,
                                                String supplierName,
                                                String beanName,
                                                QName opName)
        throws AxisFault {
    AxisService service = new AxisService(springServiceName.getLocalPart());

    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(new Parameter(Constants.SERVICE_OBJECT_SUPPLIER, supplierName));
    service.addParameter(new Parameter(Constants.SERVICE_TCCL, Constants.TCCL_COMPOSITE));
    service.addParameter(new Parameter(
            SpringAppContextAwareObjectSupplier.SERVICE_SPRING_BEANNAME, beanName));

    AxisOperation axisOp = new OutInAxisOperation(opName);

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

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:23,代码来源:SpringServiceTest.java

示例3: createRedirectReceiverService

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
AxisService createRedirectReceiverService() throws AxisFault {
    AxisService service = new AxisService("RedirectReceiverService");

    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(
            new Parameter(Constants.SERVICE_CLASS, RedirectReceiver.class.getName()));

    AxisOperation axisOp = new InOnlyAxisOperation(new QName("echoOMElementResponse"));

    axisOp.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
    axisOp.setStyle(WSDLConstants.STYLE_RPC);
    service.addOperation(axisOp);
    service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + "echoOMElementResponse",
                                 axisOp);

    AxisOperation axisOp2 = new InOnlyAxisOperation(new QName("fault"));

    axisOp2.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
    axisOp2.setStyle(WSDLConstants.STYLE_RPC);
    service.addOperation(axisOp2);
    service.mapActionToOperation(Constants.AXIS2_NAMESPACE_URI + "/" + "fault", axisOp2);

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:25,代码来源:AddressingSubmissionServiceTest.java

示例4: createSimpleOneWayServiceforClient

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
public static AxisService createSimpleOneWayServiceforClient(QName serviceName,
                                                             String className,
                                                             QName opName)
        throws AxisFault {
    AxisService service = new AxisService(serviceName.getLocalPart());

    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));

    AxisOperation axisOp = new OutOnlyAxisOperation(opName);

    axisOp.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
    axisOp.setStyle(WSDLConstants.STYLE_RPC);
    service.addOperation(axisOp);

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:18,代码来源:AddressingSubmissionServiceTest.java

示例5: createSimpleInOnlyService

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
public static AxisService createSimpleInOnlyService(QName serviceName,
                                                    MessageReceiver messageReceiver,
                                                    QName opName)
        throws AxisFault {
    AxisService service = new AxisService(serviceName.getLocalPart());
    service.setClassLoader(getContextClassLoader_DoPriv());

    AxisOperation axisOp = new InOnlyAxisOperation(opName);

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

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:18,代码来源:Utils.java

示例6: createSimpleService

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
public static AxisService createSimpleService(QName serviceName,
                                              MessageReceiver messageReceiver, String className,
                                              QName opName)
        throws AxisFault {
    AxisService service = new AxisService(serviceName.getLocalPart());

    service.setClassLoader(getContextClassLoader_DoPriv());
    service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));

    AxisOperation axisOp = new InOutAxisOperation(opName);

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

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:20,代码来源:Utils.java

示例7: createSimpleServiceforClient

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
public static AxisService createSimpleServiceforClient(QName serviceName,
                                                       MessageReceiver messageReceiver,
                                                       String className,
                                                       QName opName)
        throws AxisFault {
    AxisService service = new AxisService(serviceName.getLocalPart());

    service.setClassLoader(getContextClassLoader_DoPriv());
    service.addParameter(new Parameter(Constants.SERVICE_CLASS, className));

    AxisOperation axisOp = new OutInAxisOperation(opName);

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

    return service;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:19,代码来源:Utils.java

示例8: setUp

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
protected void setUp() throws Exception {
    AxisService service = new AxisService(serviceName.getLocalPart());
    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(new Parameter(
            Constants.SERVICE_CLASS, EchoSwA.class
            .getName()));
    AxisOperation axisOp = new InOutAxisOperation(operationName);
    axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
    axisOp.setStyle(WSDLConstants.STYLE_DOC);
    service.addOperation(axisOp);
    UtilServer.deployService(service);

}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:14,代码来源:EchoRawSwAFileInputTest.java

示例9: setUp

import org.apache.axis2.description.AxisOperation; //导入方法依赖的package包/类
protected void setUp() throws Exception {
    AxisService service = new AxisService(serviceName.getLocalPart());
    service.setClassLoader(Thread.currentThread().getContextClassLoader());
    service.addParameter(new Parameter(Constants.SERVICE_CLASS,
                                       EchoService.class.getName()));

    AxisOperation axisOp = new OutInAxisOperation(operationName);
    axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
    axisOp.setStyle(WSDLConstants.STYLE_DOC);
    service.addOperation(axisOp);
    UtilServer.deployService(service);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:13,代码来源:EchoRawMTOMFaultReportTest.java


注:本文中的org.apache.axis2.description.AxisOperation.setStyle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。