(a:InternalServiceFault)对象引用未设置为对象的实例

时间:2017-05-21 12:03:37

标签: ruby-on-rails ruby soap wsdl savon

我尝试通过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?

0 个答案:

没有答案
相关问题