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 » base64 encode XMLNSC using ESQL

Post new topic  Reply to topic
 base64 encode XMLNSC using ESQL « View previous topic :: View next topic » 
Author Message
wmqstankela
PostPosted: Thu Apr 04, 2019 5:08 am    Post subject: base64 encode XMLNSC using ESQL Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Hi all,

I need to call backend soap web service that expects standard soap envelope but with one element that is base64 encoded. Decoded content of that element will be another xmlnsc complex element named Document with some additional elements inside it. I'm trying to set this XMLNSC Document element in localenv and then to base64 encode it and to pass that value to OutputRoot.XMLNSC.encodedMessage element.

I see that in ESQL we can use BASE64ENCODE function, but input for that is char, blob or bit. How to pass this xmlnsc structure:
Code:

 <Document xmlns="urn:paymax">
<FIToFIPmtStsRpt>
      <GrpHdr>
              <MsgId>RSPMSG123211</MsgId>
              <CreDtTm>2018-12-13T09:31:28.013</CreDtTm>
              <InstgAgt><FinInstnId><BICFI>BACXRSBG</BICFI></FinInstnId></InstgAgt>
      </GrpHdr>
      <OrgnlGrpInfAndSts>
              <OrgnlMsgId>MSGID0511111</OrgnlMsgId>
              <OrgnlCreDtTm>2018-12-13T09:30:47.123</OrgnlCreDtTm>
              <GrpSts>ACSC</GrpSts>
      </OrgnlGrpInfAndSts>
      <TxInfAndSts>
              <OrgnlEndToEndId>test</OrgnlEndToEndId>
              <OrgnlTxId>TXID12213</OrgnlTxId>
              <OrgnlTxRef> 
                      <IntrBkSttlmDt>2018-12-13</IntrBkSttlmDt>
                      <RmtInf>
                              <Ustrd>/SVR/my new shoes</Ustrd>
                              <Ustrd>/RP/ad12541s18158000653/MCC/9399</Ustrd>
                      </RmtInf>
                      <Dbtr><Nm>Tom Buyer</Nm></Dbtr> 
                      <Cdtr><Nm>Super Merchant</Nm></Cdtr>
              </OrgnlTxRef>
      </TxInfAndSts>
</FIToFIPmtStsRpt>
</Document>


Can someone help me with this?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 04, 2019 5:11 am    Post subject: Re: base64 encode XMLNSC using ESQL Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

wmqstankela wrote:
I see that in ESQL we can use BASE64ENCODE function, but input for that is char, blob or bit. How to pass this xmlnsc structure


Flatten it into a CHAR or a BLOB with ASBITSTREAM.

See also here.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wmqstankela
PostPosted: Thu Apr 04, 2019 5:23 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Thanks Vitor!
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 » base64 encode XMLNSC using ESQL
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.