简体   繁体   English

使用savon gem的SOAP请求中目标名称空间和SOAP端点的用途是什么

[英]What is the use of target namespace and SOAP endpoint in a SOAP request using savon gem

What is the use of target namespace and SOAP endpoint and where to get these in a SOAP request using savon gem? 目标名称空间和SOAP端点的用途是什么,以及在使用savon gem的SOAP请求中从何处获得这些名称空间?

I'm using savon gem to send a soap request. 我正在使用savon gem发送肥皂请求。 From the documentation it says that: 从文档中说:

In case your service doesn't have a WSDL,then Savon needs to know about the SOAP endpoint and target namespace of your service.

client = Savon.client do
  endpoint "http://example.com"
  namespace "http://v1.example.com"
end

It is not quite clear from where I will get SOAP endpoint and target namespace details. 从哪里可以获得SOAP端点和目标名称空间的详细信息尚不清楚。

It will be great if you can explain in reference with this document: 如果您可以参考本文档进行解释,那就太好了:

http://service.smartadserver.com/v29/service.asmx?op=AddInsertion http://service.smartadserver.com/v29/service.asmx?op=AddInsertion

You must add correctly URL to wsdl file: 您必须将正确的URL添加到wsdl文件:

client = Savon.client(
  :wsdl => 'http://service.smartadserver.com/v29/service.asmx?wsdl'
)

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

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