Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
6 years, 8 months ago
Please help me edit Paypal WSDL because of its XSD schema imports. I needed to run it over to WSDL2Apex of Salesforce. And with import, it would return an error:
Error: Failed to parse wsdl: Found schema import from location CoreComponentTypes.xsd. External schema import not supported
I've found a good workaround through this answer:
Schema error while trying to upload a WSDL but I don't know how to do it with the following files below and I need assistance.
If you will look at
Paypal SOAP API docs, you will see that it requires eBay Business Language (eBL) base and core components:
The PayPal Web Services schema and its underlying eBay Business Language (eBL) base and core components are required for developing applications with the PayPal Web Services API.
Please help me integrate the eBL base and core components into Paypal WSDL. Here are the files:
Sep 29, 2016 at 3:28
Lynnell Neri Lynnell Neri
163 1 1 silver badge 11 11 bronze badges
That's an interesting WSDL that presents a number of challenges to import into Salesforce.
I've been able to generate the Apex classes for it using the
FuseIT SFDC Explorer Wsdl2Apex functionality (Disclosure: This is a free tool made publicly available by my current employer).
I needed to make a number of modifications to get it to generate correctly:
Download and save a local version of
https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl Download and save a local version of
In the WSDL, modify the import statements to have the full path to the XSDs. Use the local file path for EnhancedDataTypes.xsd
<import namespace="urn:ebay:apis:CoreComponentTypes" schemaLocation="https://www.sandbox.paypal.com/wsdl/CoreComponentTypes.xsd"/>
<import namespace="urn:ebay:apis:eBLBaseComponents" schemaLocation="https://www.sandbox.paypal.com/wsdl/eBLBaseComponents.xsd"/>
<import namespace="urn:ebay:apis:EnhancedDataTypes" schemaLocation="C:\Users\IAmAFish\Documents\EnhancedDataTypes.xsd"/>
Modify EnhancedDataTypes.xsd to comment out the unsupported elements under the EnhancedPaymentDataType complexType. Basically everything from the opening annotation to the closing sequence. The annotation and sequence throw all sorts of errors around "The 'annotation' element is not supported in this context"
Here is the output I generated:
Sep 29, 2016 at 20:12
Daniel Ballinger Daniel Ballinger
101k 38 38 gold badges 259 259 silver badges 578 578 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only