Author |
Message
|
muralihegde |
Posted: Wed Oct 29, 2003 11:40 pm Post subject: Can UPES generate XML msg with elements and attributes both? |
|
|
Centurion
Joined: 30 Apr 2002 Posts: 108
|
Hi all,
When we define data container as structures, the UPES message generated will have similar XML structure. However this xml structure consitis of only elements and not attributes.
for e.g the data container is such that
NAME
ADDRESS
DOORNUM
STREET
CITY
Then the UPES xml would be (part of the ProgramInputData)
<NAME>xxx</NAME>
<ADDRESS>
<DOORNUM>yy</DOORNUM>
<STREET>xx</STREET>
<CITY>yy</CITY>
</ADDRESS>
But our requirement is to generate a xml structure using attributes for elements as well through UPES.
<NAME>xxx</NAME>
<ADDRESS type="Residential" country="India">
<DOORNUM>yy</DOORNUM>
<STREET>xx</STREET>
<CITY>yy</CITY>
</ADDRESS>
If we need to achive the above, is there a way define corresponding data container ADDRESS in workflow build time so as to contain the attributes type and country as well?
Thank you for the suggestions
-Murali |
|
Back to top |
|
 |
devin |
Posted: Thu Oct 30, 2003 5:06 am Post subject: |
|
|
Voyager
Joined: 27 Oct 2003 Posts: 82
|
You cant acheive it using Buildtime
Devin |
|
Back to top |
|
 |
muralihegde |
Posted: Thu Oct 30, 2003 5:38 am Post subject: |
|
|
Centurion
Joined: 30 Apr 2002 Posts: 108
|
Hi,
Thanks.
I tried inputting the xml message with attributes as part of the response to an UPES, but workflow ignored the attributes. When the same data container was output as part of UPES req by workflow it did not contain the attributes !
But is there any other way to achive this? that is by manipulating the FDL file externally and then import it to runtime directly etc?
-murali |
|
Back to top |
|
 |
devin |
Posted: Thu Oct 30, 2003 6:13 am Post subject: |
|
|
Voyager
Joined: 27 Oct 2003 Posts: 82
|
Murali,
No there isnt anything you can do even using fdl.
One ugly way to go would be adding extra data elements for your attributes. I am not sure if it will work for you though.
Devin |
|
Back to top |
|
 |
jmac |
Posted: Thu Oct 30, 2003 7:22 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Currently there is no support for Attributes in MQWF generated XML, and if you send attributes back to MQWF they will be ignored. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|