|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
writing XML messages to disk |
« View previous topic :: View next topic » |
Author |
Message
|
ruimadaleno |
Posted: Thu Jul 03, 2014 8:52 am Post subject: writing XML messages to disk |
|
|
Master
Joined: 08 May 2014 Posts: 274
|
Hi all,
we are designing a new integration system that integrates XML data from web service to database.
XML data is received by a web service and inserted in a queue. The message in queue is consumed by other application and business data is recorded in database.
XML data is composed by business data and image files in base64.
Code: |
<message>
<businessdata>
<name></name>
<address></address>
...
</businessdata>
<imageList>
<image>
<id>1111</id>
<base64>image_file_in_base64_goes_here</base64>
</image>
<image>
<id>2222</id>
<base64>image_file_in_base64_goes_here</base64>
</image>
</imageList>
</message>
|
One requirement is to keep the original XML message received in disk (with a certain filename and path to facilitate searching).
We see two options to achieve this requirement:
Option 1) The web service writes the XML to disk, using a fileoutput node (is this the best node to do it ? )
Soap Input --> write file to disk (FileOutput Node???) --> put message in queue --> soap reply
Option 2) The web service puts the XML message in message queue and some mechanism in message queue writes the message to disk (does mq provide such mechanism ?? )
Soap input --> put message in queue --> soap reply
I'd like to ear from your experience on this options, what are the best nodes achieve this requirement, pitfall i should avoid and any others option we should consider,
Some numbers:
we expect to process 6.000 messages by month, each one of the message has an average size of 2MB. Total monthly traffic expected = 10GB
Environment:
WMB 8.0.0.3 running on windows server2008 R2 _________________ Best regards
Rui Madaleno |
|
Back to top |
|
 |
Simbu |
Posted: Thu Jul 03, 2014 7:21 pm Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
|
Back to top |
|
 |
ruimadaleno |
Posted: Tue Jul 08, 2014 1:04 am Post subject: |
|
|
Master
Joined: 08 May 2014 Posts: 274
|
Hi Simbu,
thank you for your answer. I've carefully read the post above and, as far as i understand, to get the original "untouched" XML i need to write a subflow, starting with an httpinput node, that allows the flow to "parse" the XML as a BLOB and write it "untouched" to a file.
Also, in the post above the requirement was: "... you would like the digital signature from the WS-Security header in the SOAP Envelope to be included in the database entry...."
The XML messages received by the system we are designing are not signed nor encripted. In fact we are not using any kind of ws-* extension.
So my doubt here is:
Can i just use the SOAPInput node to drive the flows and receive the XML messages and then write the XML messages to a file using a FileoutputNode ?
Is this the faster and more efficient way to achieve this requirement as the volume and size of each message is high (as show in the original post). Is there any other technique/node to achieve the requirements ? _________________ Best regards
Rui Madaleno |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 08, 2014 4:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you do not particularly care about the SOAP Envelope and Header you might want to just save the XML payload. This would be fine.
By the way 6,000 messages a month is generally not considered high volume.
Have fun  _________________ MQ & Broker admin |
|
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
|
|
|
|