ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to BLOB

Post new topic  Reply to topic
 XML to BLOB « View previous topic :: View next topic » 
Author Message
Cubersome
PostPosted: Tue Mar 13, 2012 12:56 pm    Post subject: XML to BLOB Reply with quote

Apprentice

Joined: 02 Mar 2012
Posts: 37

Hi,
I am getting an exception when trying to convert a XML message to COBOL copybook format using WTX node. I know that WTX node will accept only BLOB format. So in the message flow under MQInput domain I put XMLNSC and in the compute node I coded like
SET OutputRoot."BLOB"."BLOB" = BITSTREAM(InputRoot.XMLNSC);
SET OutputRoot.MQMD = NULL;
SET OutputRoot.Properties = NULL;
Am I doing something wrong? Please adivce.

RecoverableException
File:CHARACTER:/build/S700_P/src/CommonServices/ImbValue.cpp
Line:INTEGER:978
Function:CHARACTER:ImbValue::typeError
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2328
Text:CHARACTER:Wrong type exception
Insert
Type:INTEGER:5
Text:CHARACTER:CHARACTER
Insert
Type:INTEGER:5
Text:CHARACTER:BLOB
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 13, 2012 12:58 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Don't use BITSTREAM.

It's the wrong function. You want the other function that has to do with bitstreams.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 13, 2012 9:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Also, don't know much about removing the MQMD but I would certainly not remove the OutputRoot.Properties... LEAVE them alone!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Tue Mar 13, 2012 9:50 pm    Post subject: Re: XML to BLOB Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Cubersome wrote:
SET OutputRoot."BLOB"."BLOB" = BITSTREAM(InputRoot.XMLNSC);

Aside from the issue with BITSTREAM(), it's also unnecessary to put double quotes around "BLOB".

From the InfoCenter:

Quote:
BIP2328:
A value of SQL datatype <insert_1> encountered when datatype <insert_2> expected.

Explanation:
The value of SQL datatype <insert_1> was encountered, but a value of SQL datatype <insert_2> was expected.

Response:
This message will be accompanied with others which will give the higher level context for this error. Look at these other messages to determine the root source of the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to BLOB
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.