+ Start a Discussion
SimplySfdcSimplySfdc 

call webservice

Hi,

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.

http://www.abn.business.gov.au/ABRXMLSearch/ABRXMLSearch.asmx?WSDL

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?


sq
SuperfellSuperfell
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.