5

In magento1 for any request API, WSDL XML structure can be obtained by giving URL http://192.168.0.183/magento1131/api/v2_soap/?wsdl=1 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 http://192.168.0.183/NewMagento2/soap?wsdl&services=customerCustomerRepositoryV1 ,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

5
  • 1
    I tried your url and don't get any errors, can you provide stacktrace? Commented Oct 7, 2015 at 7:39
  • @KAndy gist.github.com/kandy/dd6592508c5774d9235d - last comment Commented Oct 7, 2015 at 7:45
  • According to this page, bit.ly/1WP9wCs, the WSDL structure for Customer is magentohost/soap?wsdl&services=customerV1 Commented Oct 8, 2015 at 13:13
  • @SteveJohnson still i'm getting error in SOAPUI, i'm looking for WSDL XML structure Commented Oct 8, 2015 at 13:45
  • @SteveJohnson please see my edited post Commented Oct 8, 2015 at 13:48

2 Answers 2

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]

(http://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-authentication-token.html)

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

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 you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.