[英]Rails 3.1 Savon soap request giving Timeout::Error: Timeout::Error ut using curl i get response
[英]How to get request and response header in Savon SOAP request with rails
client = Savon.client(wsdl: "http://localhost:8080/soap_test/services/StationDirectorySoapServerPort?wsdl")
使用此調用,我確實請求SOAP服務
client.operations
@message ="xml input"
response = client.call :get_state, xml: @message
如何從Savon客戶端和響應對象獲取請求和響應的標頭?
與此請求
response = client.call :get_state, xml: @message
您可以致電:
response.header
和
response.body
從服務器獲取答案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.