cancel
Showing results for 
Search instead for 
Did you mean: 

How to export all the product data using ycommerce webservices?

Former Member
0 Kudos

Hi , The ycommerce webservices export full (../products/export/full) is not retrieving all the product data.Its just returning category code (and uri) and product code (and uri) for all the 40 created products. How to retrieve all the product data as well the composed type data in this export? And also even if the @Produces(application/xml) is anotated to the method, the response is always Json. How to get XML response? Kindly help me to resolve this issue. Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aswin,

You might want to look into the 'options' parameter of this web service to define the level of details requested of your products. See https://wiki.hybris.com/display/release5/Resource+Products#ResourceProducts-Resource%3A%2F{site}%2Fp... If you don't get enough information with this you might want to look into creating your own webservice extending the functionality.

Regarding your second question, I would make sure that you are including the appropriate 'application/xml' header in your request.

kind regards,

Ben

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Aswin, You can control the Accept header as mentioned in the [documentation|https://wiki.hybris.com/display/release4/ycommercewebservices+Extension+-+Technical+Guide#] (i.e. you can switch to the response of your choice JSON or XML) using Accept: application/xml,application/json.This has to be changed from the client-side.Please find the screen shot attached from rest client. Kind Regards

Former Member
0 Kudos

Thank you :)

Former Member
0 Kudos

Hi Ben, Thank you for your reply. I will create my own webservice for export functionality. Regd getting the response in xml , adding produces (application/xml) tag didnt help , but i made it to work my commenting out xstream json transformer in the webservice-spring.xml. Now as i am creating my own webservice this should n't be an issue. Thanks again.