Consuming webservice using savon gem

Hello folks,

I’m trying to consume a webservice using the savon gem as follow, but I get as response: “Savon::SOAPFault Exception: (soapenv:Server.userException) org.xml.sax.SAXException: Found character data inside an array element while deserializing”

If you type ‘client.operations’ in the byebug, you can get the operations. Parameters look fine, but I don’t know what is going on…

require 'savon'
require 'byebug'

def scraper
	client = Savon.client(wsdl: '')
	#ruby response =, message: {codigoSerie: 10813, data: '07/02/2018'}), message: {codigoSerie: 1, dataInicio: '01/01/2018'})



def testing
puts ‘aa’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs