簡體   English   中英

如何在帶有Rails的Savon SOAP請求中獲取請求和響應標頭

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM