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

mrbrookman’s picture

Status: Active » Closed (works as designed)

Sorry, 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.

TyrelDenison’s picture

I 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.

mrbrookman’s picture

You 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

TyrelDenison’s picture

Thank 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)?

mrbrookman’s picture

You are right. I have an error too.
But the JSON output works.

Please create a new issue for the error.

TyrelDenison’s picture

You are correct. I can get the information in JSON. I have started a new issue. It is here(http://drupal.org/node/1451952).