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
Madhusudan Singh 15Madhusudan Singh 15 

Not able to generate WSDL2Apex

Hi Folks,

I am trying to generate wsdl2apex for Five9 API but it ig giving error as 'Error: Failed to parse wsdl: Found schema import from location http://ws-i.org/profiles/basic/1.1/swaref.xsd. External schema import not supported'
https://www.dropbox.com/s/k577f06xc6yqjao/AdminWebService.xml?dl=0
I also tried to copying anf pasting the schema of http://ws-i.org/profiles/basic/1.1/swaref.xsd. With that I was able to parse wsdl but Apex class was not creating.

Need forum's help.

Thanks In Advance

Regards
Madhusudan Singh
RakeshRakesh (Salesforce Developers) 
HI Madhusudan,

To generate an Apex class from a WSDL, salesforce provided a documentation. Please refer the below link documentation and follow the instructions to parse the WSDL file to generate the Apex class. If you are getting the same error, here is another link, who encountered the similar error, please go to the below link, it may help you to solve.
Please make it as solved if this helps you.

Thanks,
Rakesh Thota
Madhusudan Singh 15Madhusudan Singh 15
Hi Rakesh,

I tried that also but it didn't worked so finally gave up and used rest webservice(actually it was giving different at every step at last it generated apex class but with many errors).
This time I am coming up with different wsdl, But but with the same problem. Below is my wsdl

https://www.dropbox.com/s/jh32r0yn9olqw03/soap.xml?dl=0

Can you help me in this. and this time i dont have any REST api also.

Regards
Madhusudan Singh