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 » POSTING a BLOB to a Web Service from IIB9

Post new topic  Reply to topic
 POSTING a BLOB to a Web Service from IIB9 « View previous topic :: View next topic » 
Author Message
psyconic
PostPosted: Mon Nov 09, 2015 11:03 pm    Post subject: POSTING a BLOB to a Web Service from IIB9 Reply with quote

Novice

Joined: 17 Jun 2015
Posts: 11

Hi guys I have a question that someone may be able to show me the error of my ways.

We have a webservice where we can store files.
The equivalent call using CURL is as follows : -

curl -X POST -H "Content-Type: application/octet-stream" --data-binary @<Binary_Media_FileName> http://dhd1e1:6080/T_DCAMA:Media_Store/<Row_Name_OR_ID>/Media:data

This will take the binary contents of whatever filename is present at <Binary_Media_FileName> and POST it to the webservice.

That works fine.

In my broker flow I have the same file as a BLOB. What I want to do is make the same call from Broker (IIB9) and save the binary of the file which is in the BLOB.

Here is my message, the BLOB has data in it.




My problem is the file gets created by the webservice but there is no content. Its like the BLOB is empty.

That message above is just before it goes in to the HTTPRequest node.
The BLOB contains the file I am saving in binary format.

Does anyone have any comments on my message where I may be going wrong ?

Thank you.


Mike
Back to top
View user's profile Send private message
timber
PostPosted: Tue Nov 10, 2015 3:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

- The BLOB value should be in OutputRoot.BLOB.BLOB. In your screen shot I can only see OutputRoot.BLOB. Maybe you did not expand that part of the message tree before taking the screen shot?
- The message body ( 'BLOB' ) should be after the header. In your screen shot it is before HTTPRequestHeader.
Back to top
View user's profile Send private message
psyconic
PostPosted: Wed Nov 11, 2015 3:58 pm    Post subject: Reply with quote

Novice

Joined: 17 Jun 2015
Posts: 11

timber wrote:
- The BLOB value should be in OutputRoot.BLOB.BLOB. In your screen shot I can only see OutputRoot.BLOB. Maybe you did not expand that part of the message tree before taking the screen shot?
- The message body ( 'BLOB' ) should be after the header. In your screen shot it is before HTTPRequestHeader.


Thanks timber I knew it was something simple I had feeling it was in the message. It works great now.

Thanks
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 » POSTING a BLOB to a Web Service from IIB9
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.