目标名称空间和SOAP端点的用途是什么?在使用savon gem的SOAP请求中从哪里获得它们?
我正在使用savon gem发送soap请求。从文档中可以看出:
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
我不太清楚从哪里获得SOAP端点和目标名称空间的详细信息。
如果您能参考本文档来解释一下,那就太好了:
http://service.smartadserver.com/v29/service.asmx?op=AddInsertion
发布于 2014-07-03 14:17:14
您必须将URL正确添加到wsdl文件:
client = Savon.client(
:wsdl => 'http://service.smartadserver.com/v29/service.asmx?wsdl'
)
https://stackoverflow.com/questions/24546543
复制