Author |
Message
|
jeeth_m |
Posted: Wed Sep 17, 2008 3:19 am Post subject: xml attachment |
|
|
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 |
|
 |
Gaya3 |
Posted: Wed Sep 17, 2008 3:41 am Post subject: Re: xml attachment |
|
|
 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 |
|
 |
kimbert |
Posted: Wed Sep 17, 2008 3:58 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
broker_new |
Posted: Wed Sep 17, 2008 4:04 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Sep 17, 2008 4:07 am Post subject: |
|
|
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 |
|
 |
mgk |
Posted: Wed Sep 17, 2008 4:32 am Post subject: |
|
|
 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 |
|
 |
jeeth_m |
Posted: Wed Sep 17, 2008 4:47 am Post subject: |
|
|
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 |
|
 |
jeeth_m |
Posted: Thu Sep 18, 2008 7:16 am Post subject: |
|
|
Voyager
Joined: 21 Jan 2002 Posts: 93
|
|
Back to top |
|
 |
|