|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Soap with Attachments and gzip attachments |
« View previous topic :: View next topic » |
Author |
Message
|
pottas |
Posted: Tue Mar 12, 2013 10:13 am Post subject: Soap with Attachments and gzip attachments |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Guys,
I am really battling here. I have done a number of posts, trying allsorts of things, i.e. getting the IA99 Support pack to work on Broker 7 (which didn't), writing java code (and I am no expert), looking at the Info Centre for assistance, etc. I am the google-search-expert-hall-of-fame-guy of late.
So, in all my ventures, I have come across a DeveloperWorks solution called 'Compression and decompression of messages using WebSphere Message Broker V6'
Quote: |
http://www.ibm.com/developerworks/websphere/library/techarticles/0711_jain/0711_jain.html?ca=drs- |
So, I figured, its java code, it might just work for me, regardless of the fact that I run Broker 7.
So, I did, and I ended up with the following:
To give you some background:
I have a message flow that I configured for accepting a zipped file from a web service in the form of a Soap with Attachment request.
So, what I tried with the developerworks solution, is to un-zip the attachment.
But, as soon as the request message reaches the JCN node ‘De Compress’, it gives me nothing out the ‘out’, ‘failure’, or ‘alternate’ terminals. I have all of them connected, but I get nothing once it passes through the node.
Is there something I need to be aware of? Is there something I am missing?
I even tried it with configuring a flow that simply has an MQInput Node, passing through the ‘De Compress’ node, and an MQOutput node, but it produces nothing.
At this stage, I am not only clueless, but desperate as well. I have never used Soap with Attachments, and I have never used JCN nodes, as I never had any project that required it.
So, I am not asking to write the code for me, I need guidance please.
Thanks
Jacques |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 12, 2013 10:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
A gzip file is not a zip file.
The first thing you need to understand is what the structure of the message that arrives at the SoapInput node looks like.
You can then use that to figure out where in the message tree the contents of the zipped file is.
You can then use that to inform your code about how to extract the bytes from that field in the message tree.
You can then pass those bytes to code that is *similar* to what you see in that devWorks article, but works with zip files, rather than gzip files. |
|
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
|
|
|
|