Add wsdl type detection.

For some of the advanced options, we try to detect the type.