简体   繁体   中英

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?

I'm using savon gem to send a soap request. 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.

It will be great if you can explain in reference with this document:

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

You must add correctly URL to wsdl file:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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