[英]Error when getting a transaction using Netsuite Ruby Gem - Savon::SOAPFault: (soapenv:Server.userException)
[英]Savon ruby gem getting Savon::SOAPFault on request
我的代码很简单:
client = Savon.client(wsdl: wsdl_url, follow_redirects: true)
response = client.call(:obtener_cotizacion, message: { fecha: '2022-08-02' })
我收到此错误:
Traceback (most recent call last):
8: from bin/console:8:in `<main>'
7: from (irb):82
6: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/client.rb:37:in `call'
5: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/operation.rb:65:in `call'
4: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/operation.rb:76:in `create_response'
3: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/operation.rb:76:in `new'
2: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/response.rb:20:in `initialize'
1: from /app/vendor/bundle/ruby/2.7.0/gems/savon-2.13.0/lib/savon/response.rb:132:in `raise_soap_and_http_errors!'
Savon::SOAPFault ((S:Client) Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: Trying to declare prefix 'xmlns' (illegal as per NS 1.1 #4))
at [row,col {unknown-source}]: [1,585]
我不知道这意味着什么,我从未在其他集成中声明过任何前缀。
任何帮助将不胜感激,谢谢!
本次提交中要引入的错误接缝: https://github.com/savonrb/savon/commit/045082c9d18ed538da072b4a4681e79c16dac17b
您是否尝试过将 Savonrb 降级到之前的版本?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.