I'm having the following question, I'm doing a web- service server with my application ruby -on-rails , I'm using gem wash-out
, I understood how it works and managed to get my web-service to run, but I'd like to know how to test my server, I've already tried several tutorials and none helped me.
For example:
soap_action "novo_cadastro",
:args => {:titulo => :string, :descricao => :string },
:return => :xml
def novo_cadastro
cad = Cadastro.new(titulo: params[:titulo], descricao: params[:descricao])
if cad.save
render xml: cad
else
render :soap => nil
end
end
How to test this?
Thank you.