improvements, tweaks to WSDL-related code. Also fixes the warnings about 'NAN' and 'INF' being already defined.