Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calling Amazon URL with XML response

former_member184588
Active Participant
0 Likes
725

Hello,

I would like to call a specific amazon-services via http://webservices.amazon.de/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=myAC&AssociateTag=a... but this is not a web service (I think).

Could someone tell me have to call the URL and how I can handle the response? With a web service or bapi it wouldnu2019t be a problem but I donu2019t know to handle thisu2026

I will try it out with CL_HTTP_CLIENT (hint of Thomas Jung). But did this someone before and how to handle the respone XML?

Can someone help me out with this?

Thx, Vanessa

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
691

Looks like this is a WSDL, In .net or asp they will decode this into there format....

I guess you need to read this file using call transformation

or try search SCN for "consuming a webservice."

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
692

Looks like this is a WSDL, In .net or asp they will decode this into there format....

I guess you need to read this file using call transformation

or try search SCN for "consuming a webservice."

Read only

0 Likes
691

Hello and thanks for your answer.

Did someone managed to get book data from the web service and could explain how he did it?

Thx and have a good start into the week,

Vanessa

Read only

0 Likes
691

you can consume this either using SOAP protocol of using REST approach (CL_HTTP_CLIENT)

on how to consume this using CL_HTTP_CLIENT, just do a where used list of this class in your system or search here in the forum, you will find lot of examples.

more on this how to construct the url for this can be found at

http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?rest-signature.html

once you consume this and get the xml result, you can either parse it using XSLT program or if you are not comfortable you can use FM SMUM_XML_PARSE to parse the XML

Hope this helps.

Regards

Raja

Read only

0 Likes
691

Hello Raja,

thanks a lot for your answer. Do you manage to get it done with the amazon api?

Thx, Vanessa

Read only

0 Likes
691

no. i have used other services.