Correct the encoding of SOAP action arguments.

Also adds a test for this, and the decoding of the response arguments.