You need to sign in to do that
Don't have an account?
Solees
Using Salesforce Partner WSDL to connect to Salesforce
Hello friends, i'm having an issue when trying to use the Partner WSDL to query information from account from one Salesforce ORG to another via Apex. I'm using the WSDL2Apex to convert the XML and I get a success "Login" but i get the following error using "Query" if I use "SELECT Id, Name FROM Account" .
System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element Name
The problem I think is that the next line never gets converted in Apex:
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
Is there a solution for this? How can I make this less ironic? How is it possible that a Salesforce generated WSDL cannot be imported into Salesforce and work well?
System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element Name
The problem I think is that the next line never gets converted in Apex:
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
Is there a solution for this? How can I make this less ironic? How is it possible that a Salesforce generated WSDL cannot be imported into Salesforce and work well?
Check it out:
All Answers
This question has been answered in the below link.
https://developer.salesforce.com/forums?id=906F00000008xERIAY
Hope this helps you!
Thanks and Regards
Sandhya
Check it out: