欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI
欢迎使用普元文档库
问题描述:
soapui调用sap提供的WS,使用Request Properties进行用户名和密码传递时报NullPointerException。使用axis2客户端调用时,后台报org.apache.axis2.AxisFault: Error occured when dispatcher message at proxy web service, can't find match inbound.The operation parsed from message is [sap-com:document:sap:soap:functions:mc-style:ZCSM_VERIFY_CUSTOMER:ZcsmVerifyCustomerRequest]
解决办法:
该问题的客户端代码中存在以下问题:
1)注释掉zcsmVerifyCustomer方法中 // _operationClient.getOptions() // .setAction("urn:sap-com:document:sap:soap:functions:mc-style:ZCSM_VERIFY_CUSTOMER:ZcsmVerifyCustomerRequest");
2)修改所有 “zcsmVerifyCustomer” 变量,修改为 “ZcsmVerifyCustomer” 请参照以上方法修改后再进行调用,即可;