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
patelankurbpatelankurb 

Generate Apex code from WSDL

I have tried to generate apex code from wsdl. WSDL file contains multiple portType, binding and service port. While parsing WSDL file I got Error: multiple portType not suppoerted. Let me know how can I solve this problem.
sd2008sd2008

You need to open your wsdl document

remove the portType that can be moved.

for instance

<portype= "1">

 ...

</porttype>

<porttype="2">

...

</porttype>

 

you have to choose

<portype= "1">

 ...

</porttype>

or

<porttype="2">

...

</porttype>

you can not just convert any wsdl document.

patelankurbpatelankurb
Thanks, After removing portType, I got error: anyURI datatype of xml schema not supported. I have replaced anyURI references with string. So WSDL passes step-2(Parsing), it generates two classes and one class exceeds 100000 characters capacity. Is there any way where I can store above 0.1 million characters in Apex class?
Message Edited by patelankurb on 02-01-2009 10:10 PM
sd2008sd2008

my suggest is to look at your wsdl and see if you can further reduce its size.

saasteamsaasteam

I take this topic to ask you help about conversion of a WSDL to Apex.

 

I see that there are some constraints using "Create form WSDL" in Salesforce.com and so I'd like to know if it's possible to use other programs to convert a generic WSDL into Apex code and then I would like to import Apex code into Salesforce.com.

 

Which program/plugin should I have to use?