You need to sign in to do that
Don't have an account?
Maneesh 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
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
[1] http://blog.deadlypenguin.com/blog/2012/02/03/salesforce-and-soapui/
For example:
NOTE: When adding code please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.
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;
}
}
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 ..
Thanks Vincent!
Patrick - do you still need me to share the screenshots?
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!