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

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)

  • Can you tell me which is that other client? – MagePsycho Feb 2 '17 at 22:19
  • I mostly use postman for this. It's a powerful chrome plugin – David Verholen Feb 3 '17 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.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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