rubiii/savon — Issue #274: Wrong namespace if value is in WSDL
Author: DriesS
Created: 2012-03-07 10:07:08+00:00
State: open

Hello,

I'm using savon 0.9.9 to get some information from a service but if I use the following code to do the call he put namespaces before the values I entered if these values are in the WSDL list. The code I'm using to do some testing :

```ruby
require "savon"

class SoColissimo

def self.call_action
response = client.request :find_point_retrait do
soap.body = {:password => "test", :city => "london", :test => "not a field in wsdl"}
end
end

protected

def self.client
@@client ||= Savon::Client.new do
wsdl.document = "http://ws.colissimo.fr/pointretrait-ws-cxf/PointRetraitServiceWS?WSDL"
wsdl.element_form_default = :qualified
end
end

end

```
This output the following request xml :

```xml
HTTPI executes HTTP GET using the net_http adapter
SOAP request: http://ws.colissimo.fr/pointretrait-ws-cxf/PointRetraitServiceWS
Content-Length: 486, Content-Type: text/xml;charset=UTF-8,
SOAPAction: "findPointRetrait"

not a field in wsdl
london
test

```

The fields city and password are in the WSDL and for these values he puts ins0 as namespace, how can I bypass this and remove this namespace? I tried with the wsdl.element_form_default = :qualified like in the doc but it doesn't change anything.