本文整理了Java中org.apache.axis2.deployment.util.Utils.fillAxisService()
方法的一些代码示例,展示了Utils.fillAxisService()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.fillAxisService()
方法的具体详情如下:
包路径:org.apache.axis2.deployment.util.Utils
类名称:Utils
方法名:fillAxisService
[英]This guy will create a AxisService using java reflection
[中]
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ws-axis2
private void setMessageReceivers(Wire wire, AxisService axisService) throws Exception {
Map<String, InvocationChain> interceptors = new HashMap<String, InvocationChain>();
for (InvocationChain chain : wire.getInvocationChains()) {
interceptors.put(chain.getPhysicalOperation().getName(), chain);
}
Utils.fillAxisService(axisService, configurationContext.getAxisConfiguration(), null, null);
for (Iterator<?> i = axisService.getOperations(); i.hasNext();) {
AxisOperation axisOp = (AxisOperation) i.next();
InvocationChain invocationChain = interceptors.get(axisOp.getName().getLocalPart());
MessageReceiver messageReceiver = null;
if (WSDL2Constants.MEP_URI_IN_ONLY.equals(axisOp.getMessageExchangePattern()) ||
WSDL2Constants.MEP_URI_ROBUST_IN_ONLY.equals(axisOp.getMessageExchangePattern())) {
messageReceiver = new InOnlyServiceProxyHandler(invocationChain);
} else {//Default MEP is IN-OUT for backward compatibility
messageReceiver = new InOutServiceProxyHandler(invocationChain);
}
axisOp.setMessageReceiver(messageReceiver);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-runtime-axis2
/**
* Create an AxisService from the Java interface class of the SCA service interface
*/
public static AxisService createJavaAxisService(String endpointURL,
ConfigurationContext configContext,
AbstractContract contract) throws AxisFault {
AxisService axisService = new AxisService();
String path = URI.create(endpointURL).getPath();
axisService.setName(path);
axisService.setServiceDescription("Tuscany configured AxisService for service: " + endpointURL);
axisService.setClientSide(false);
Parameter classParam =
new Parameter(Constants.SERVICE_CLASS,
((JavaInterface)contract.getInterfaceContract().getInterface()).getJavaClass().getName());
axisService.addParameter(classParam);
try {
Utils.fillAxisService(axisService, configContext.getAxisConfiguration(), null, null);
} catch (Exception e) {
throw new RuntimeException(e);
}
return axisService;
}
代码示例来源:origin: org.ow2.petals/petals-se-jsr181
Utils.fillAxisService(
axisService,
this.jsr181Se.getAxisContext().getAxisConfiguration(),
代码示例来源:origin: org.apache.axis2/axis2-kernel
Utils.fillAxisService(service, axisConfig,
excludeops, null);
} else {
ArrayList nonRpcOperations = getNonRPCMethods(service);
Utils.fillAxisService(service, axisConfig,
excludeops, nonRpcOperations);
代码示例来源:origin: apache/axis2-java
Utils.fillAxisService(service, axisConfig,
excludeops, null);
} else {
ArrayList nonRpcOperations = getNonRPCMethods(service);
Utils.fillAxisService(service, axisConfig,
excludeops, nonRpcOperations);
内容来源于网络,如有侵权,请联系作者删除!