I am trying to understand the WADL way of documenting APIs. Checking docs http://apigee.com/docs/developer-services/content/wadl-reference
I tried to import a few sample WADL files available on github -
https://github.com/paypal/wadl-library/blob/master/sample-wadl.xml and https://github.com/Qobuz/api-documentation/blob/master/consoles/qobuz-apigee-wadl.xml
For both these it shows "There was an error importing your data. Please consult the logs." How do I check the logs on what is the issue, I am using the apigee free org dev portal.
Solved! Go to Solution.
Hi @Nagashree B the sample-wadl.xml works perfectly fine for me too (see attached screen shots). You may want to get the raw wadl, save it as an XML file locally & then import it from your dev portal. Let us know if you are still running into any issues. @asagar
screen-shot-2015-05-04-at-85039-am.pngscreen-shot-2015-05-04-at-85356-am.png
It's hard to predict the issue without logs. To see logs you need admin privileges to the developer portal. Go to Reports > Recent Log Messages for logs.
Log says -
Notice: Uninitialized string offset: 0 in smartdocs_import_model() (line 211 of/srv/bindings/497dd27615d34231938c728ea36c3655/code/profiles/apigee/modules/custom/devconnect/smartdocs/admin/smartdocs.models.inc).
I am not familiar with that error. Can you please share the WADL?
Hi @Nagashree B, I have seen that & similar errors happen when there in an invalid xml element in the WADL, for eg not having a matching closing element. Can you check to see if your XML is valid? You can use a tool like online XML Validator or something similar. Alternatively please share your WADL file.
XML is valid
Dear @Nagashree B ,
https://github.com/paypal/wadl-library/blob/master/sample-wadl.xml WADL works perfectly fine for me. See rendered smartdocs here.
Here is the wadl file sample-wadl.txt ( Change the extension to .xml since i am unable to upload xml file here)
What version of developer portal are you using ?
Cheers,
Anil Sagar
Hi @Nagashree B the sample-wadl.xml works perfectly fine for me too (see attached screen shots). You may want to get the raw wadl, save it as an XML file locally & then import it from your dev portal. Let us know if you are still running into any issues. @asagar
screen-shot-2015-05-04-at-85039-am.pngscreen-shot-2015-05-04-at-85356-am.png
Hi @Nagashree B did you get your WADL working?
Yep, worked after i used the raw wadl
Nice, let us know if you have any additional questions.
Yes, now got the wadl working.