Add Review Request
General Purpose
Adds a review to a specific item.
The WSDL file is located under the following URL:
<your address>:<fe_port>/PrimoWebServices/services/reviews?wsdl
Element | Description | Value | Default | Structure |
---|---|---|---|---|
addReviewRequest | Root element of the XML tree | no value | root element | |
userId | user id | string | sub-element of addReviewRequest | |
docId | record id from the PNX table | string | sub-element of addReviewRequest | |
value | the user’s review to be added | string | sub-element of addReviewRequest | |
rating | rate given by the user to the Item | 1 to 10 | 1 | sub-element of addReviewRequest |
userDisplayName | name to be displayed with the review | string | sub-element of addReviewRequest | |
allowUserName | whether user agrees to display his name next to review | “true” or “false” | FALSE | sub-element of addReviewRequest |
status | Define the status of the review. The valid value is 2. | string | sub-element of addReviewRequest |
No output
<addReviewRequest xmlns=http://www.exlibris.com/primo/xsd/wsRequest\ xmlns:uic=http://www.exlibris.com/primo/xsd/primoview/uicomponents\> <docId> demo_voyager968394</docId> <userId>demo</userId> <rating>4</rating> <value>good55</value> <userDisplayName>Hila</userDisplayName> <allowUserName>true</allowUserName> <status>2</status> </addReviewRequest>
Output Example
<TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config"> <ERROR MESSEGE="Add review successfully" CODE="0"/> </TagsAndReviews>