Well I'm using Savon to consume a wash_out SOAP server.
Everything seems all right because I can send my SOAP messages and the server can save them into a mysql database.
My problem comes after my client send the request because I'm receiving an HTTP error (406): coming from the request that looks like this:
response = client.call(:crear_articulo) do
message texto: ":3", titulo: ":'("
end
In the server I have the following code: soap_action "crear_articulo", :args => { :texto => :string, :titulo => :string }, :return => :string
And the method that is handling the request is like this:
def crear_articulo
@ar = Articulo.new
@ar.titulo = params[:titulo]
@ar.texto = params[:texto]
if @ar.save
render :soap => "Correcto"
else
render :soap => "Error"
end
end
I guess the error is in the server but, I can't see where it is. Thank you very much.