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
Maneesh Gupta 11Maneesh Gupta 11 

Cannot download WSDL into SOAPUI

Hello Experts,

I am facing an error while I am trying to download a WSDL into SOAPUI. My apex class is very simple. Took it from Apex developer's guide. Below are the errors I am facing. 

Error: type 'RecordTypesSupported@http://soap.sforce.com/schemas/class/MyWebService' not found.

Error: type 'RelationshipReferenceTo@http://soap.sforce.com/schemas/class/MyWebService' not found.

Error: type 'SearchLayoutButtonsDisplayed@http://soap.sforce.com/schemas/class/MyWebService' not found.

Error: type 'SearchLayoutFieldsDisplayed@http://soap.sforce.com/schemas/class/MyWebService' not found.

Please advise
pconpcon
Are you trying to programatically download the WSDL?  Or did you click the WSDL button next to your class in the class listing?  I'd take a look over this [1] and if after following those instructions you still have problems, let me know.

[1] http://blog.deadlypenguin.com/blog/2012/02/03/salesforce-and-soapui/
Maneesh Gupta 11Maneesh Gupta 11
I clicked on the WSDL button and then saved the WSDL. I tried following the steps in that link .. Was able to successfully add enterprise WSDL to SOAPUI.. but while adding this another WSDL (MyWebService), I am facing this error ..
pconpcon
What version of SoapUI are you using? Did you follow the same steps in the link above? What version of the Enterprise WSDL are you using? (First line of comment at the top) And can you please include the class that you have written?

For example:
 
Salesforce.com Enterprise Web Services API Version 35.0
Generated on 2015-11-16 19:16:47 +0000.

NOTE: When adding code please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.
Maneesh Gupta 11Maneesh Gupta 11
Hi Patrick,

Using API version 35.0
<!-- Salesforce.com Enterprise Web Services API Version 35.0 Generated on 2015-11-16 16:43:17 +0000

Below is the class -
global class MyWebService {
    webService static Id makeContact(String lastName, Account a) {
        Contact c = new Contact(lastName = 'Weissman', AccountId = a.Id);
        insert c;
        return c.id;
    }
}
pconpcon
I am able to take the Enterprise WSDL and the generated WSDL for you class and add them to SoapUI via the steps in the post above.  Can you walk me through exactly the steps you are taking and when you get that error (from a clean start to error)
Maneesh Gupta 11Maneesh Gupta 11
Hi Patrick, I have created a screenshot document for you... struggling to attach it here ..can you help please?

I removed the Salesforce project ..then recreated it .. re-added the enterprise WSDL ..generated the WSDL of my class again .. tried adding it and got that error again ..
Vincent BaggermanVincent Baggerman
Also encountering this issue. Everything's fine when you change the API version of the class containing the web service to 31.0, tried 34.0 and 35.0 and both gave errors.
pconpcon
@Maneesh, you cannot attach documents here.  You can host it externally, or you can add the screenshots directly to the post
Maneesh Gupta 11Maneesh Gupta 11
I changed the API version of the class to 31.0 and it worked :)
Thanks Vincent!

Patrick - do you still need me to share the screenshots?
pconpcon
That is up to you.  I would recommend running the most recent version of the WSDL, but it's all up to you.
Pablo Alberto CaminoPablo Alberto Camino
Hi,

I just run into the same issue. By looking around it seems the only fix is to add the missing type declarations manually to the WSDL.
I found them to be on the Tooling WSDL (User > Setup > Develop > Download your organization-specific WSDL > Tooling WSDL).
A similar case with instructions on how to add missing types was documented here (https://success.salesforce.com/issues_view?id=a1p300000008XKUAA2).

Best!