Invoking operations to a Microsoft WCF services was failing when the request has a complex type.

Requests to a WCF service fail if the request contains a complex type because the method "WSDL.objectToXml" serializes complex types incorrectly.
I modified the the method in order to fix this issue.