fix wsdl generator

Resolves #3191 by:
* fixing a typo in CWsdlGenerator
* remove one duplicate code block
* use proper bodyStyle attributes and encoding for headers