简体   繁体   English

如何连接到SOAP / WSDL Web服务?

[英]How to connect to a SOAP/WSDL Web Services?

i am implementing a SOAP/WSDL Web Services. 我正在实现SOAP / WSDL Web服务。

i am trying to use the Service s = Service.create() Routine but it does not connect to the Server. 我正在尝试使用Service s = Service.create()例程,但未连接到服务器。 So is there another way to connect to a SOAP/WSDL Web Service? 那么,还有另一种连接到SOAP / WSDL Web服务的方法吗?

I would suggest to make client using wsimport. 我建议使客户端使用wsimport。

It will create the necessary stubs to call the servce. 它将创建必要的存根以调用服务。

If you are doing this just for testing you can use soapUI. 如果仅出于测试目的执行此操作,则可以使用soapUI。

I would suggest soapUI 我建议soapUI

  1. Download SoapUI from web (just download SoapUI, no need of SoapUI PRO) 从Web下载SoapUI(只需下载SoapUI,无需SoapUI PRO)
  2. click on file and select "New soapUI Project" 点击文件,然后选择“ New soapUI Project”
  3. Give any project name and enter WSDL url ( note that webservice url should be followed by "?wsdl" ) 给出任何项目名称并输入WSDL URL(请注意,webservice URL后应带有“?wsdl”)
  4. It will load the wsdl for you, next enter required parameters in request 它将为您加载wsdl,然后在请求中输入所需的参数
  5. click on play button (Green button, next to webservice url), you will get response in right hand side panel 单击播放按钮(绿色按钮,Web服务网址旁边),您将在右侧面板中获得响应

I hope this will help you 我希望这能帮到您

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM