In magento1 for any request API, WSDL XML structure can be obtained by giving URL in SOAPUI, storm or any other wsdl xml request processor.

For the same in magento2, to get the WSDL XML structure for any API request if i type the URL ,its giving error.

In magento1 we can get WSDL XML structure like below

enter image description here

but getting below error in magento2

enter image description here

So please let me know how to get magento2 XML structure for any API request


2 Answers 2


in magento2, the API endpoints are protected. So to download the wsdl, you need authentication.

I know (or maybe I did not find it) that SoapUI for example does not support authenticating for WSDL's.

So I downloaded the WSDL through some other client which can send the authentication header and then added it to SOAP UI from the local downloaded WSDL file.

You need to create a new Integration in the Magento Backend (system -> integrations) and then use the access token in your auth header:

Header: Authorization: Bearer [access_token]


  • Can you tell me which is that other client?
    – MagePsycho
    Feb 2, 2017 at 22:19
  • 1
    I mostly use postman for this. It's a powerful chrome plugin Feb 3, 2017 at 6:12

To get magento2 wsdl xml structure you can use this doc : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html You can run any of SOAP WSDL request right in a browser to get a response of xml structure or you can use SOAPUI to do this. It's not recommended to use Storm tool for Magento2 SOAP services.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.