How to use objects with xsi:types in Savon
问题 I'm trying to use Savon to make some SOAP requests, but I'm afraid I need to go beyond the basics somewhat. I need to send something along the lines of: <env:Body> <wsdl:methodName> <parameter xsi:type='ValueClass'>value</parameter> </wsdl:methodName> </env:Body> Now, if I didn't have to specify that xsi:type, it would be a simple matter of: client.method_name { |soap| soap.body = {:parameter => 'value'} } The problem is the xsi:type in the parameter; due to the way the web service I'm using