roundlake/wash_out — Issue #8: The empty arguments problem.
Author: esycheva
Created: 2012-02-17 14:00:32+00:00
State: open

Hi!

I have the following code

in my api controller

soap_action "BlockAccount",
:args => {:ils => :string, :asr_id => :string},
:return => {:asr_id => :string, :ils => :string},
:to => :block_account

def block_account
render :soap => {:ils => params[:ils], :asr_id => params[:asr_id]}
end

The request to the my service,

```xml

test
test

```

response

test
test

it works fine, but

the request with empty arguments

response

{:"@xsi:type"=>"xsd:string"}
{:"@xsi:type"=>"xsd:string"}

The value '{:"@xsi:type"=>"xsd:string"}' is unexpected for me.

When I get the request with empty argument, params[:argument] returns "{:"@xsi:type"=>"xsd:string"}'.