|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
How to put a XML file into a XML field |
« View previous topic :: View next topic » |
Author |
Message
|
smdavies99 |
Posted: Thu Oct 22, 2015 6:33 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
pereira.allan1992 wrote: |
returning a BLOB now, but how can i convert BLOB , I tried ENCODE64 e DECODE64, but no success indeed... |
Convert BLOB to What? Pixie Dust?
Sorry. It has been a long frustrating day.
I really think you need some formal training. It will give you the basics to move forward.
IIB is a really complex product these days. It is a fantastic integration tool but it is very daunting to a newcomer. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 22, 2015 6:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pereira.allan1992 wrote: |
Vitor wrote: |
There's no reference to "other XML field" in your code. |
The reference is in the mapping... |
I don't see it.
pereira.allan1992 wrote: |
[quote="Vitor"}That's most of the product documentation. All the product does is manipulate data, XML or otherwise, as an entire file or otherwise. There's no difference syntactically between manipulating all or part of an XML document; the ASBITREAM function is an example."
ASBITSTREAM returns a BLOB |
and doesn't distinguish between a whole XML document and part of one, which is the point I was making.
pereira.allan1992 wrote: |
Vitor wrote: |
That is absolutely NOT what your code does. Your code takes a BLOB value and tries to output it. There's not one line about an output XML document, containing the input or nothing. " |
Is it to use a BLOB or Not? |
If you're asking if using a BLOB is how you fill your stated requirement, it's a step on the road not the whole journey.
pereira.allan1992 wrote: |
I readed the documentation, but I cannot develop reading the documentation, doesn't explain with details the example, is hard to learn this way... |
You got that right. The recommended method is to get some mentoring and combine it with some formal training. This forum is a horrible way to learn, as you're discovering.
pereira.allan1992 wrote: |
Code: |
SET OutputRoot = InputRoot;
-- CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
DECLARE InputMessageData BLOB;
SET InputMessageData = CAST(ASBITSTREAM(InputRoot.XMLNSC) AS BLOB CCSID 1208);
--SET OutputRoot.XMLNSC.MessageData = InputMessageData;
SET OutputRoot.XMLNSC.MESSAGEDATA = InputMessageData;
|
returning a BLOB now, but how can i convert BLOB , I tried ENCODE64 e DECODE64, but no success indeed... |
- Use CopyEntireMessage rather than copying the InputRoot to OutputRoot yourself
- If you do that, you'll end up with both the input XML and the output BLOB in the tree, which doesn't work
- Try reading this and see if it helps. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 22, 2015 6:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
I really think you need some formal training. It will give you the basics to move forward.
IIB is a really complex product these days. It is a fantastic integration tool but it is very daunting to a newcomer. |
As per my earlier post _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pereira.allan1992 |
Posted: Thu Oct 22, 2015 7:39 am Post subject: |
|
|
Novice
Joined: 21 Oct 2015 Posts: 12
|
Guys, Thanks for all help and attention, mainly, the patience =)
I ll try to follow the tips...
Yes, I agree that I need a formal training, I know that, and I'd like, but in the Brazil is really hard to find someone that knows about the tool, and we are a team with 8 people trying to learn alone....We are fighting to take a trainning to use this tool, But the project budget is our enemy =/
Thank you for all again,
And i'm sorry for the beginning questions...
Regards |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 22, 2015 7:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 22, 2015 7:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac67174_.htm?lang=en |
Been there, posted that......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Oct 22, 2015 7:50 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
pereira.allan1992 wrote: |
Guys, Thanks for all help and attention, mainly, the patience =)
I ll try to follow the tips...
Yes, I agree that I need a formal training, I know that, and I'd like, but in the Brazil is really hard to find someone that knows about the tool, and we are a team with 8 people trying to learn alone....We are fighting to take a trainning to use this tool, But the project budget is our enemy =/
Thank you for all again,
And i'm sorry for the beginning questions...
Regards |
There are some reasonably priced training courses that are ideal for people like you.
Google for 'Message Broker Training Middleware'. I'm not connected with these people but I did work with the Author for a while. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 22, 2015 7:50 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
mqjeff wrote: |
http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac67174_.htm?lang=en |
Been there, posted that......  |
 _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 22, 2015 7:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pereira.allan1992 wrote: |
Guys, Thanks for all help and attention, mainly, the patience =) |
You're getting a lot more patience than usual. My new medication must be working.....
pereira.allan1992 wrote: |
And i'm sorry for the beginning questions... |
The pain is more to be at your end than ours; it's a stony road you're walking.
Ask whoever's in charge of the budget how much time the project will waste as you try and figure all this out yourself, and how much redevelopment will be needed after pre-prod testing when the code's been developed according to your best guess of how all this works combined with advice from some anonymous strangers on the Internet who are completely unaccountable and may just start lying to you because they can, or they had their medication changed again.
Then point out that time is money, and missed project deadlines have a habit of swinging round like a boomerang and hitting project managers on the back of the head. See if that frees up the purse strings at all. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|