|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Environment.Variables not storing complete XML? |
« View previous topic :: View next topic » |
Author |
Message
|
Carl Bloy |
Posted: Wed Sep 19, 2007 7:55 am Post subject: Environment.Variables not storing complete XML? |
|
|
Acolyte
Joined: 16 Dec 2003 Posts: 69 Location: England
|
Hi All,
I'm sure i'm doing something stupid, but can't find the answer anywhere
Not sure if anyone has come across this before? but the following command doesn't store the complete XML tree in the environment variable?
SET Environment.Variables.DSER = InputRoot.XMLNS.Promise;
Trace extract included...
(0x01000010):XMLNS = (
(0x01000000):Promise = (
(0x01000000):SuggestedOption = (
(0x01000000):Option = (
(0x03000000):RsvdID = '1000000'
(0x03000000):HasAnyUnavailableQty = 'Y'
(0x01000000):PromisedServiceLines = (
(0x01000000):PromisedService = (
(0x03000000):ResourcePoolID = '9999999'
(0x03000000):ServiceSlotDesc = 'aaaaaaaa'
(0x03000000):StartTime = '9:00'
(0x03000000):EndTime = '10:00'
(0x01000000):Assignment = (
(0x03000000):ApptDate = '2007-07-07'
)
)
)
)
)
)
)
)
(
(0x01000000):Variables = (
(0x01000000):DSER = (
(0x01000000):SuggestedOption = (
(0x01000000):Option = (
(0x03000000):RsvdID = '1000000'
(0x03000000):HasAnyUnavailableQty = 'Y'
(0x01000000):PromisedServiceLines = (
(0x01000000):PromisedService = (
(0x03000000):ResourcePoolID = '9999999'
(0x03000000):ServiceSlotDesc = 'aaaaaaaa'
(0x03000000):StartTime = '9:00'
(0x03000000):EndTime = '10:00'
(0x03000000):Assignment = ''
Another example....
SET Environment.Variables.DSRR = InputRoot.XMLNS.CapacityReservationList;
(0x01000010):XMLNS = (
(0x01000000):CapacityReservationList = (
(0x01000000):CapacityReservation = (
(0x03000000):ReservationResult = 'reserved'
(0x03000000):ReservationID = '50000000'
)
)
)
)
(
(0x01000000):Variables = (
(0x01000000):DSRR = (
(0x03000000):CapacityReservation = ''
)
)
)
Any ideas much appreciated...... _________________ Regards
Carl |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Sep 19, 2007 9:09 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Carl Bloy,
Please search the forum for "Environment Domain XMLNS", you'll get what you need.
There are soooo many links for this that I got lost finding you a good one, so once a link leads you to a solution, please add it here for future reference
Regards. |
|
Back to top |
|
 |
Carl Bloy |
Posted: Wed Sep 19, 2007 9:22 am Post subject: |
|
|
Acolyte
Joined: 16 Dec 2003 Posts: 69 Location: England
|
Many thanks for hint...
I did search for Environmnet.variables but couldn't find anything of real use. I think I may have found what i need now, i'll post the relevant link here once i've tried it out.
You may of saved me a weekend at work....
Keep up the good work...
Regards _________________ Regards
Carl |
|
Back to top |
|
 |
Carl Bloy |
Posted: Wed Sep 19, 2007 11:25 pm Post subject: Resolved. |
|
|
Acolyte
Joined: 16 Dec 2003 Posts: 69 Location: England
|
I can't find the link I used anymore, but this is what I did to resolve the issue.
-- Initialise Environment Tree to preserve XML structure
CREATE LASTCHILD OF Environment.Variables Domain 'XMLNS' Name 'DSER';
-- Copy XML structure to environment variables
SET Environment.Variables.DSER = InputRoot.XMLNS.Promise;
Regards _________________ Regards
Carl |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|