Author |
Message
|
Sreedevi |
Posted: Mon Oct 08, 2007 1:13 am Post subject: Extracting dat from input XML file |
|
|
Newbie
Joined: 25 Sep 2007 Posts: 3 Location: Bangalore
|
Im having an XML document which I have to validate.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE XML_BOPOCMQ>
<WfMessage>
<WfMessageHeader>
<ResponseRequired>Yes</ResponseRequired>
<UserContext>This data is sent back in the response</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>Loan</ProcTemplName>
<ProcInstName>Loan</ProcInstName>
<KeepName>true</KeepName>
<ProcInstInputData>
<CustomerDetails>
<Name></Name>
<DateofBirth>12/05/1958</DateofBirth>
<Age>23</Age>
<Gender>Female</Gender>
</CustomerDetails>
</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>
I need to parse this XML through MQ workflow and validate it.
If the Name is a null value, a message should be sent to an error queue.
Can anyone please assist me on how to do this . It would be helpful if someone could tell me of which APIs to use while extracting and what is the configuration of the UPES for this. |
|
Back to top |
|
 |
jmac |
Posted: Mon Oct 08, 2007 6:24 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
WMQWF does not do this, You will have to write your own code to parse the message. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
Sreedevi |
Posted: Wed Oct 10, 2007 12:08 am Post subject: |
|
|
Newbie
Joined: 25 Sep 2007 Posts: 3 Location: Bangalore
|
Does this mean that when an XML document containing the necessary processing data is put in the XML input queue, it is not possible to route the process depending on one of the fields in the input XML ? |
|
Back to top |
|
 |
jmac |
Posted: Wed Oct 10, 2007 5:34 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Not sure I understand your question, and I am not sure you understand the basic processing of MQWF. I believe the answer to your question is no. By the time the XML is put on the queue, the routing has already occurred. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
hos |
Posted: Tue Oct 16, 2007 3:04 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
Hi,
the XML message that you are referring to has nothing to do with UPES.
It is a message to the MQWF execution server to create and start a process instance. You'll need to validate and act upon the content of this message before putting it onto the xml input queue. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Oct 16, 2007 3:16 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
What integration component that you are using to transform the messages.
MQWF cant able to transform the data
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|