function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

call webservice


I try to call a web service from apex class. Generate from WSDL, enter path and Parse Error.

Failed to parse wsdl: Found more than one wsdl:portType. WSDL with
multiple portType not supported.

What is the issue here? Is this web service not valid for apex?
But, I can call it and work nicely from Visual Studio.

Is this something need to improve by apex?

the wsdl parser in apex only supports one port type per WSDL, you'll need to manully edit the WSDL first to remove the portTypes you're not interested in.