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客户端和响应对象获取请求和响应的头部?
答案 0 :(得分:0)
有了这个请求
response = client.call :get_state, xml: @message
你可以致电:
response.header
和
response.body
从服务器获得答案..