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 » xml attachment

Post new topic  Reply to topic
 xml attachment « View previous topic :: View next topic » 
Author Message
jeeth_m
PostPosted: Wed Sep 17, 2008 3:19 am    Post subject: xml attachment Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

Hi,
Anybody worked on SOAP attachments? requirement is WMB will be getting a pdf file in MQ and it has to be wrapped with xml tags? I dont know where to start.. is there possiblities like mime inside xml etc?

Jeeth
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Gaya3
PostPosted: Wed Sep 17, 2008 3:41 am    Post subject: Re: xml attachment Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

jeeth_m wrote:
Hi,
Anybody worked on SOAP attachments? requirement is WMB will be getting a pdf file in MQ and it has to be wrapped with xml tags? I dont know where to start.. is there possiblities like mime inside xml etc?

would rather like to ask what is meant by SOAP attachment

i know about SOAP envelope, and i believe you want to keep the message in to the envelope,

please confirm the same
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 17, 2008 3:58 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

SOAP with attachments requires MIME. WMB does have a MIME parser - it was introduced in v6.

Please read this: http://www.ibm.com/developerworks/websphere/library/techarticles/0610_henley/0610_henley.html
...but make sure to use XMLNSC or SOAP domain for your XML parsing
Back to top
View user's profile Send private message
broker_new
PostPosted: Wed Sep 17, 2008 4:04 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Exactly we too had a similar requirement like this..
But we have done it in Portal itself.....
Whatever the information is provided from Portal needs to be written into PDF and FTP it to a remote location and send an email confirmation by pulling up some information from PDF ......

I think it can be done by writing a Java Compute node and implement the same functionality but we haven't done any research on that.....
Iam curious to know the answer for this
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 4:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The "answer" for this is to follow the PUBLISHED ESTABLISHED STANDARD for doing SOAP with Attachments.



Which requires using MIME, which is included in Broker as of 6.0.

And is described in the article that kimbert posted.

And it's better and easier to use in Broker 6.1.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Sep 17, 2008 4:32 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
And it's better and easier to use in Broker 6.1.


Indeed. The 6.1 SOAP nodes support SOAP with Attachments (SwA) and MTOM attachments natively, which is MUCH easier than using the MIME domain. However, you can still use the MIME domain with the HTTPInput nodes if you do not have WSDL to describe your service (which is required by the SOAP nodes).

You can read more about the SOAP nodes in the docs or in this article:
http://www.ibm.com/developerworks/webservices/library/ws-soapnode/
(Part 2 covers SwA in more detail)

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
jeeth_m
PostPosted: Wed Sep 17, 2008 4:47 am    Post subject: Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

Thanks much for all the responses. well.. as ususal i am getting more confused

How does a SOAP with mime attachment xml look like? Below is the Mime xsd i got from IBM supplied defintions. So is it like SOAP envelope is just wrapped around MIME xml like shown below?

<Envelope>
<Body>
<MIME_Msg xmlns_xsd="" xsi_schemaLocation="" xsi:noNamespaceSchemaLocation="mime_multipart.mxsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MIME-Version/>
<Content-Type/>
<Content-Transfer-Encoding/>
<Content-ID/>
<Content-Description/>
<Data>
<BLOB/>
</Data>
</MIME_Msg>
</Body>
</Envelope>

I guess my data which is a PDF will be included inside the BLOB tag. Will it have any parsing problems or i should put the blob data inside CDATA tag?

am i going in the wrong direction alltogether?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jeeth_m
PostPosted: Thu Sep 18, 2008 7:16 am    Post subject: Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

http://webservices.xml.com/pub/a/ws/2002/08/28/endpoints.html

Here is a good link on SwA. Most of my questions got answered here.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » xml attachment
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.