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 » Converting SOAP payload date to BLOB message for WTX Input

Post new topic  Reply to topic
 Converting SOAP payload date to BLOB message for WTX Input « View previous topic :: View next topic » 
Author Message
Partha.Baidya
PostPosted: Tue Jun 01, 2010 12:17 am    Post subject: Converting SOAP payload date to BLOB message for WTX Input Reply with quote

Voyager

Joined: 05 Nov 2009
Posts: 97

I am working in a senarion where an EDI message comes as Payload data inside a SOAP message. I need to send the Payload portion of the SOAP message as BLOB messsage to WTX for invoking it's map.
I have the following code.
Code:
DECLARE options INTEGER BITOR(FolderBitStream, ValidateContent, ValidateValue);

SET Payload = InputRoot.XMLNSC.ns:EDIMSG.PAYLOAD;
SET OutputRoot.XML.PAYLOAD = Payload;
SET MsgBlob = ASBITSTREAM(OutputRoot.XML.PAYLOAD OPTIONS options CCSID 1208);
DETACH OutputRoot.XML;
SET OutputRoot."BLOB"."BLOB" = MsgBlob;


This code converts the Payload data to a BLOB message succesfully.

But the BLOB is coming with start tag and endtag of <PAYLOAD> EDI Msg </PAYLOAD>

But I dont want these start and end tags.

Is there any way so that I can get the BLOB message without XML tags.
I can use SUBSTRING function, but I dont want to use the SUBSTRING function.

Regards,
Partha
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 01, 2010 12:56 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What does ASBITSTREAM do?

What purpose is it serving here?

What is the value of the field Paylod before you call ASBITSTREAM?
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 » Converting SOAP payload date to BLOB message for WTX Input
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.