普元 EOS Platform 7.2开发环境生成webservice客户端代码调用BPS发布的服务,报错

阅读原文

【问题】

在Platform7.2开发环境中,导入BPS发布的WebService服务wsdl,例如“http://127.0.0.1:8070/default/WSProcessInstManagerService?wsdl”,右键自动生成客户端代码,再调用客户端代码调用BPS的WebService接口

调用报错:

org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header
at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:223)
at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:86)
at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:336)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.co.process.party.WSProcessInstManagerServiceServiceStub.createProcessInstance(WSProcessInstManagerServiceServiceStub.java:455)
at com.co.process.party.callWebService.invokeWebService(callWebService.java:35)
at com.co.process.party.coProcessMain_flow.invokePojo0(billProcessMain_flow.java:89)
at com.co.process.party.coProcessMain_flow._action0(billProcessMain_flow.java:188)
at com.co.process.party.coProcessMain_flow.process(billProcessMain_flow.java:217)
at com.primeton.engine.core.impl.process.PageflowInstance.process(PageflowInstance.java:325)

【解答】

在生成的代码调用前需要初始化一下应用环境
import org.apache.axis2.engine.ListenerManager;
ListenerManager.defaultConfigurationContext = null;

相关推荐
目 录 1 文档介绍.......................................................................................................................................3 1.1 文档概述.............................................................................................................................3 1.2 适用范围.............................................................................................................................3 2 环境描述.......................................................................................................................................3 3 配置 EOS WebService服务....................................................................................................3 3.1 配置 WebService 声明.......................................................................................................3 3.1.1 WebLogic8.x环境.....................................................................................................3 3.1.2 JBoss 环境.................................................................................................................4 3.1.3 WebSphere5.x 环境...................................................................................................4 3.2 加入 axis jar包到 CLASSPATH...................................................................................4 3.2.1 WebLogic8.x环境.....................................................................................................4 3.2.2 JBoss 环境.................................................................................................................5 3.2.3 WebSphere5.x 环境...................................................................................................5 3.3 设置调用 WebService 验证码........................................................................................5 4 验证 EOS WebService服务....................................................................................................6 5 如何通过 EOS WebService 服务调用业务逻辑..................................

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:编程工作室 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值