I have the below apex class as a SOAP Webservice
global class TestingWebService {
webservice static List<ContentDocument> getContentNotes(date startDate, date endDate) {
ContentDocument[] ContentDocumentToReturn = new ContentDocument[0];
for(ContentDocument contentDoc : [SELECT Id, LatestPublishedVersion.title,LatestPublishedVersion.textPreview, LastModifiedDate,
(SELECT LinkedEntityId FROM ContentDocumentLinks WHERE LinkedEntity.Type='Contact')
FROM ContentDocument WHERE LastModifiedDate >=:startDate AND LastModifiedDate <=:endDate order by lastModifiedDate desc LIMIT 1000]) {
if(!contentDoc.ContentDocumentLinks.isEmpty()) {
ContentDocumentToReturn.add(contentDoc);
}
}
return ContentDocumentToReturn;
}
}
I have generated the WSDL from the apex classes page in Salesforce but when I add the WSDL in SOAP UI to test the web service I got the below list of errors:
After wasting hours on google I got the below link
https://success.salesforce.com/issues_view?id=a1p3A000000eatxQAA this solved all error except the first two as shown in the above picture
Could someone please help me either merge this wsdl with the enterprise WSDL or how to solve the first two errors as shown in the image