本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}