一个简单的 java SOAP 客户端

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4296432/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 15:29:59  来源:igfitidea点击:

A simple java SOAP client

javasoapsoap-client

提问by Raghu

I'm new to web services and I've been breaking my head trying to find a simple java SOAP client program on the Internet.
All I want to do is send a SOAP message and receive back some response.
There is a website which offers free web-services.

我是 Web 服务的新手,我一直在努力在 Internet 上找到一个简单的 Java SOAP 客户端程序。
我想要做的就是发送一个 SOAP 消息并接收回一些响应。
有一个提供免费网络服务的网站。

http://www.webservicex.net/ws/WSDetails.aspx?WSID=17&CATID=7

http://www.webservicex.net/ws/WSDetails.aspx?WSID=17&CATID=7

You feed in the country name and it gives you the country's ISD code. It's as simple as that.

您输入国家/地区名称,它会为您提供该国家/地区的 ISD 代码。就这么简单。

I want to send the country name to the web service and get back its ISD code using only Javaand without any external jars.

我想将国家/地区名称发送到 Web 服务,并仅使用 Java 而不使用任何外部 jar 来取回其 ISD 代码。

回答by Kris C

If you're looking for a tool to test web-services, most people I know use Soap-UI: http://www.soapui.org/

如果您正在寻找测试 Web 服务的工具,我认识的大多数人都使用 Soap-UI:http: //www.soapui.org/

回答by anirvan

Try SoapUI- it's quite awesome and covers almost all aspects of working w/ web-services..

试试SoapUI- 它非常棒,几乎涵盖了使用 Web 服务工作的所有方面。