Home Page › Forums › BizTalk 2004 – BizTalk 2010 › create new message in orchestration
- This topic has 3 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
November 14, 2007 at 9:13 PM #18429
hi,
I have a order message like this
ord_req_id 5
cust_id 2
date 2007-11-12
exp_ship 2007-11-25
PO0000050051
US Alice Smith 123 Maple Street Mill Valley CA 90952
US Robert Smith 8 Oak Avenue Old Town PA 95819
Hurry, my lawn is going wild!
ITEMS,ITEM872-AA|Lawnmower|1|148.95|Confirm this is electric,ITEM926-AA|Baby Monitor|1|39.98|Confirm this is electrici want to use this message in orchestration to check that the order is valid or not like value for cust_id,order_req_id,order_id is present in message or not.After checking this if values are not present i want to add error to message and send it to send port.Please help.
thanks
-
November 15, 2007 at 6:50 AM #18434
The first thing that you are going to want to do is use the Flat File schema wizard to generate a schema that you can use in your Orchestration. You may want to use distinquished fields for the elements that you want to validate on. It is just an easy way to retrieve your values. Otherwise you can also use XPath to look for these values as well.
I am not sure what your plans are for your Error message. If it was me, I would define another XML schema that would represent my “Error Message” and then include this message in your error message.
Kent
-
November 15, 2007 at 11:26 PM #18444
hi,
i had already created flat file schema for the order message as well as error message and also created distingush feilds.The problem that i am facing is i have to make validations on many feild ,if more then one or more then one feild fails the validation ,i have to send an error message to message sender. I am unable to evaluate the distingush feilds in expression using if statements.
-
November 16, 2007 at 7:30 AM #18447
You can also use a Decide shape if you want to. I am not sure how complex validation is but in the left hand branch of the decide shape check that
msg.cust_id !=”” || msgorder_req_id !=”” || msg.order_id !=””
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.