Closed (works as designed)
Project:
RESTful Web Services
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2012 at 21:07 UTC
Updated:
23 Feb 2012 at 14:15 UTC
The reference to the commerce_customer_profile is not shown in the user entity. The profile2 profiles work correctly.
Can somebody add the customer_commerce_profile too. I don't know where to do it.
Thank you
Comments
Comment #1
mrbrookman commentedSorry, wen I posted this message, I haven't worked with Drupal Commerce.
This isn't needed because the commerce_customer profile is handled in the order and not per user.
So commerce_customer_profiles are listed in the commerce_order resource.
Comment #2
TyrelDenison commentedI am trying to use this module in conjunction with Drupal Commerce as well and have not been successful. When I pass a GET with order_number as the entity type (such as localhost:2556/order_number/4.xml), I get the following error.
Warning:DOMDocument::createTextNode() expects parameter 1 to be string, array given in RestWSFormatXML::addToXML()
Any input on how to correct this would be greatly appreciated.
Comment #3
mrbrookman commentedYou have to call commerce_order/4.xml
On the permission page you have a list of the available entities : yoursite.com/admin/people/permissions#module-restws
You have to set the permission correctly too.
Best Regards
Comment #4
TyrelDenison commentedThank you for the reply. Sadly, with my permissions set open I still receive the same error. Am I correct that I should be able to access an order in xml format at mysite.com/commerce_order/#.xml (where # is the order number)?
Comment #5
mrbrookman commentedYou are right. I have an error too.
But the JSON output works.
Please create a new issue for the error.
Comment #6
TyrelDenison commentedYou are correct. I can get the information in JSON. I have started a new issue. It is here(http://drupal.org/node/1451952).