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 » writing XML messages to disk

Post new topic  Reply to topic
 writing XML messages to disk « View previous topic :: View next topic » 
Author Message
ruimadaleno
PostPosted: Thu Jul 03, 2014 8:52 am    Post subject: writing XML messages to disk Reply with quote

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
View user's profile Send private message
Simbu
PostPosted: Thu Jul 03, 2014 7:21 pm    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Please use HTTPInput node if you want to write an entire SOAP request into a file.
http://www-01.ibm.com/support/docview.wss?uid=swg21421483
Back to top
View user's profile Send private message
ruimadaleno
PostPosted: Tue Jul 08, 2014 1:04 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

Simbu wrote:
Please use HTTPInput node if you want to write an entire SOAP request into a file.
http://www-01.ibm.com/support/docview.wss?uid=swg21421483


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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 08, 2014 4:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » writing XML messages to disk
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.