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 » Web Services as HTTP SOAP Request w/ MIME attachment in MBv5

Post new topic  Reply to topic
 Web Services as HTTP SOAP Request w/ MIME attachment in MBv5 « View previous topic :: View next topic » 
Author Message
Paul D
PostPosted: Tue Sep 21, 2004 7:33 pm    Post subject: Web Services as HTTP SOAP Request w/ MIME attachment in MBv5 Reply with quote

Master

Joined: 16 May 2001
Posts: 200
Location: Green Bay Packer Country

I'm trying to figure out if Broker v5 is capable of supporting an HTTP request that uses MIME attachments. This would be attachments outside the message body. This is in contrast to inside the XML in base64 format. I'm a bit new to this, so hopefully I explained that correctly. Some of my questions are:
1 - Will the attachments be visible within broker?
2 - Will they be visible as part of the message tree somewhere?
3 - Could a custom Java node reference them?
4 - What would you suggest for dealing with this to supplement any missing broker functionality?

Thanks for your help!!! Paul
_________________
Thanks!!!

Paul D
Back to top
View user's profile Send private message Visit poster's website
JLRowe
PostPosted: Wed Sep 22, 2004 12:40 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You could try modelling a SOAP message with attachments using MRM & TDS, I don't think it's possible to have the XML parser only parse part of a message (the XML bit), and BLOB for the rest (attachment).

The alternative is to write a java node and treat the message as a BLOB, look at the SAAJ API to build a soap message and serialize it.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Sep 22, 2004 4:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I'm not sure if the MRM is fully capable of modelling MIME, because I don't think it can handle dynamically declared delimiters. I imagine this would be a bit of a pain to add to a parser.

Your best bet is to treat it as BLOB data and either call a static Java method (new in FP4) that handles the MIME unpacking, or call a custom node that does the MIME unpacking.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shanson
PostPosted: Wed Sep 22, 2004 4:47 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Jeff is correct - the V5 broker can't handle SOAP with attachments without a custom plugin MIME parser. If you write one, beware of one point - if the transport is HTTP (likely) then the HTTP header parser will consume any MIME statements that occur before the <CR><LF><CR><LF>. This says to me that you need to parse as a BLOB, then examine the contents of the HTTP header, before you invoke a custom parse of the BLOB.
Back to top
View user's profile Send private message
Paul D
PostPosted: Wed Sep 22, 2004 5:31 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 200
Location: Green Bay Packer Country

Thanks Shanson. I was suspecting this would be the case. I was going to open a PMR just to make sure but since you are from Hursley I take it you have a good understanding about this. We are about to apply CSD#4 and take a look at the Java capabilities. We have other Java plugin's and given the purpose of this (enterprise reusable), that might be better to write the full plug-in. I've yet to view a request to see the headers, but I suspect you are correct. Jlrowe, what is the SAAJ API?
_________________
Thanks!!!

Paul D
Back to top
View user's profile Send private message Visit poster's website
shanson
PostPosted: Wed Sep 22, 2004 8:21 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Paul, you can only write plugin nodes in Java, a plugin parser must be written in C.
Back to top
View user's profile Send private message
RocknRambo
PostPosted: Wed Sep 22, 2004 8:26 am    Post subject: Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

Wanna look @ HTTP Adapter


this is can be easily implemented in that...using meta objects. IF ur firm has already been involved in WBIA ..then it wud be very ease to startoff..

If ur not..into WBIA..
then definitely worth a shot for Proof of concept.


-sanu
Back to top
View user's profile Send private message
Paul D
PostPosted: Wed Sep 22, 2004 9:52 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 200
Location: Green Bay Packer Country

While we do have some ICS and adapters, although we are primarily a Message Broker shop. From checking on the Web Services adapter functionality, it looks like we'd need to add in functionality for handling the attachments. If that's the case, they I'd rather go with the custom Java node. I also understand we can we build our own WBI Adapter, and also that you can use the adapter with the broker. We'd still rather just stick with the broker whenever possible.

UPDATE - 3-25-2005 - We ended up writing a java plugin to pull off the binary attachments and write them to the file system. The remaining XML SOAP envelope and XML document attachment we put a "super tag" around and passed that forward for the rest of the flow to consume. This has worked fine.
_________________
Thanks!!!

Paul D
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Web Services as HTTP SOAP Request w/ MIME attachment in MBv5
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.