QuestionQ3

OSM Web Clients

Consider an order-recognition rule whose validation-rule XQuery expression contains the following code. When a CRM application attempts to create orders that this recognition rule would process by using the CreateOrder web service, which two possible responses might it receive, depending on the validation expression’s output?

Question Image

Choose two
  • A a "CreateOrderResponse" message with the created "Order Id"
  • B a "Fault" message with the description containing "No matching Order Recognition rule found"
  • C a "Fault" message with a description containing "Order Id is missing in the request"
  • D a "Fault" message with a description containing "Transaction not allowed"
  • E a "Fault" message with the description containing "Error in validation expression. See order for details"
Explanation

A successful validation result of true() permits creation of the order, so the CreateOrder service returns a CreateOrderResponse containing the created Order Id. If the orderId is absent or blank, the expression returns the string Order Id is missing in the request; that validation message rejects the request and is returned in a Fault description.

Community Discussion

No comments yet. Be the first to start the discussion!