我正在嘗試使用Savon - rubygem創建SOAPClient。Savon:使用wsse驗證的WCF Soap服務:AddressFilter不匹配在EndpointDispatcher
它是一個WCF soap服務,通過https進行WSSE身份驗證。這裏是我試過的代碼:
require 'savon'
client = Savon::Client.new do
wsdl.document = "https://svc.sxxxxxify.com:8081/ConfSet.svc?wsdl"
config.soap_version = 2
wsse.credentials "[email protected]", "test123"
end
p client.wsdl.soap_actions
response = client.request :get_user_clients
p response
但我得到這個錯誤:
http://www.w3.org/2005/08/addressing/soap/fault2012-10-26T06:07:42.247Z2012-10-26T06:12:42.247Zs:Sendera:DestinationUnreachableThe message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.
。
The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree. (Savon::SOAP::Fault)
請幫我解決這個問題
是否savon支持WS-A。我如何通過使用savon進行ws-addressing? –