rubiii/wasabi — pull request #5 by hoverlover (2012-03-30 03:56:35+00:00)
Title: Get input from message element or portType input.

This PR will enable wasabi to automatically include the proper input message by inspecting the WSDL document. Sometimes, the `operation` name in the `binding` isn't the exact input message that is expected. The real input message is usually specified in a `message` element. This is best shown by example:

``` xml

...

```

In this example, the `operation`'s `input` name is `authenticate`, and the `message` attribute is `tns:authenticate`. Neither of these are the proper, expected input message of `AuthenticateUser`. For this, we need to walk up the `portType`, then to the matching `message` to get the actual input message of `AuthenticateUser`. See Savon PR [#277](https://github.com/rubiii/savon/pull/277) to get the full picture on how this all works together, and enables you to pass a single symbol into the `Savon::Client#request` method and get automatic namespace mapping, as well as the proper operation name -> input message mapping.