java soap locator_[ERROR] “不支持使用 SOAP 编码。SOAP 扩展元素包含 use=“encoded“ “ 无法解析 WSDL。...

解压,进入D:\axis-1_4\lib

5747df9dd84e77aaa8356dc0c86855ab.png

执行命令

java -cp mail.jar;saaj.jar;jaxrpc.jar;commons-discovery-0.2.jar;commons-logging-1.0.4.jar;axis.jar;activation.jar;wsdl4j-1.5.1.jar org.apache.axis.wsdl.WSDL2Java D:\TmriOutNewAccess.xml -p com.lxw.webservice

5598c5aa618f07902d565af483b47ef9.png

生成的文件

e01dceb3cb6b60bde1b93430b04a36e7.png

调用

public class test {

public static void main(String[] args) throws RemoteException {

TmriJaxRpcOutNewAccessService locator = new TmriJaxRpcOutNewAccessServiceLocator();

TmriOutNewAccessSoapBindingStub stub = (TmriOutNewAccessSoapBindingStub) locator.getTmriOutNewAccess();

String result = stub.queryObjectOut("", "", "", "", "", "", "", "", "");

System.out.println("result:" + result);

}

}

Intellij Idea 下 生成WebServiceClient (WS客户端)参考:https://www.cnblogs.com/felordcn/p/12142597.html

本文地址:https://blog.csdn.net/lw112190/article/details/110920699

希望与广大网友互动??

点此进行留言吧!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值