fix wsdl generator

Resolves #3191 by:
* fixing a typo in CWsdlGenerator
* remove one duplicate code block
* use proper bodyStyle attributes and encoding for headers

This is a follow up for PRs #2140 and #2141.