IEDA创建WebServiceClient

最初听到webserviceclient一脸懵。。。。不过还是成功了,虽然尝试了很多失败的方法。欧美项目请允许我练习一下英文。
1.First,you need to have a webService Server side available,for example:
http://localhost:9080/services/XXXXXXXXXXXXXX?wsdl
2.IDEA create project.
choose version Apache Axis,The required base jar packages are automatically imported.(I failed to change the version when creating project,maybe because jdk1.8…,I don’t konw.)在这里插入图片描述
next -> Fill in the project name ->finish.
reopen IEDA -> pop up a dialog box -> fill in wsdl url -> OK
在这里插入图片描述

After I created it, there was no java code in the project.Then I must create manually.
在这里插入图片描述
If you generate the TestCase Test class , you will get an error because you didn’t add the JUnit framework IDEA. The solution is simply to add a @test annotation to the class and then use ALT+Enter to select JUnit4 and remove the @test annotation. It’s right,but the TestCase still won’t run.
在这里插入图片描述
This error is exists in main method,you can add code like this:BasicConfigurator.configure();
How do errors resolve without my research.

In the end,rewrite parts of the main method based on business requirements.Mainly the code associated with the service and calling the method.

Good Luck!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值