我尝试通过savon连接肥皂,我收到一个错误:
(a:InternalServiceFault) Object reference not set to an instance of an object.
Extracted source (around line #85):
def raise_soap_and_http_errors!
raise soap_fault if soap_fault?
raise http_error if http_error?
end
这是我的代码:
client = Savon.client(wsdl: 'http://moghim24.ir:8080/Moghim24Scripts/Moghim24Services.svc?wsdl')
response = client.call(:open_tempfllist) do
message fd: '96/01/01'.to_s, ld: '97/01/01'.to_s, cust: '1005'.to_s, pass: '233344'.to_s
end
render :json => response.body
错误发生在raise soap_fault if soap_fault?