Converts an object to a SOAP string