Author |
Message
|
Y75 |
Posted: Mon Oct 28, 2013 6:48 am Post subject: Unprocessed SOAP message retrieval. |
|
|
Apprentice
Joined: 29 Jul 2013 Posts: 32
|
I have message flow with SOAP HTTP input node. I need to retrieve original SOAP message for logging purposes including soap envelope, body and headers.
I don't know what is the most efficient way to get soap envelope after it has been processed by soap input node. I think, I can use SOAP extract to put envelope in local environment. And, then compose body and envelope together in java compute node.
I was hoping SOAP node allows me change parser to BLOB, that will give me original message; then I use reset content descriptor to set it to SOAP. But that is not the case.
Inputs please. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Oct 28, 2013 6:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Use Record and Replay function. |
|
Back to top |
|
 |
Y75 |
Posted: Mon Oct 28, 2013 7:08 am Post subject: |
|
|
Apprentice
Joined: 29 Jul 2013 Posts: 32
|
Thanks for reply!
Are you suggesting to use Monitoring profile to emit events from flow? If yes, there is a fear of unknown from knowledge point of view that kind of deters us.
In particular, I am little shallow on my knowledge of pub/ sub model in general vs queues. If I only have one publisher (gateway flow) and one subscriber (logging in this case), is pub/ sub as efficient as queues? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 28, 2013 8:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Y75 wrote: |
If yes, there is a fear of unknown from knowledge point of view that kind of deters us. |
On that basis, you'll never use any new feature of any new product.
Y75 wrote: |
is pub/ sub as efficient as queues? |
Yes. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bharathi.tech12 |
Posted: Mon Oct 28, 2013 10:04 am Post subject: |
|
|
Voyager
Joined: 14 May 2013 Posts: 93
|
we have same scenario to log the input msg as its. Over flow is like this
-->Business logic node(mapping/Compute)
SOAP Input Node
-->Logging(MQOutput)- Read the message from MQ and logging as blob in DB.
parallel processing. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Oct 28, 2013 10:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bharathi.tech12 wrote: |
we have same scenario to log the input msg as its. Over flow is like this
-->Business logic node(mapping/Compute)
SOAP Input Node
-->Logging(MQOutput)- Read the message from MQ and logging as blob in DB.
parallel processing. |
And record and replay does all of that for you, in parallel, with no coding needed. |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Oct 28, 2013 11:08 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
And record and replay does all of that for you, in parallel, with no coding needed. |
It might be worth noting that the OOTB functionality does not support using Microsoft SQLServer as the target DB for REcord/Reply without a fix from IBM.
I think it is scheduled for inclusion in 8.0.0.4/9.0.0.1 fix packs but IBM would have to confirm that. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Oct 28, 2013 11:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
mqjeff wrote: |
And record and replay does all of that for you, in parallel, with no coding needed. |
It might be worth noting that the OOTB functionality does not support using Microsoft SQLServer as the target DB for REcord/Reply without a fix from IBM.
I think it is scheduled for inclusion in 8.0.0.4/9.0.0.1 fix packs but IBM would have to confirm that. |
Shipped in 8.0.0.3..... |
|
Back to top |
|
 |
RAJKAMAL |
Posted: Mon Oct 28, 2013 10:46 pm Post subject: |
|
|
Newbie
Joined: 17 Oct 2013 Posts: 8
|
i think monitoring profile to generate event at the out terminal of your desired node can be an option and in the payload you can select $Root which can help you get ur entire data. |
|
Back to top |
|
 |
Y75 |
Posted: Tue Oct 29, 2013 7:27 am Post subject: |
|
|
Apprentice
Joined: 29 Jul 2013 Posts: 32
|
Record and replay works on pre-defined schema. If I want to store fields that are part of payload in a separate column for reporting purposes; I have to write my own subscriber message flow and use my own schema.
Is that correct? |
|
Back to top |
|
 |
Y75 |
Posted: Fri Nov 01, 2013 8:18 am Post subject: |
|
|
Apprentice
Joined: 29 Jul 2013 Posts: 32
|
mqjeff wrote: |
Use Record and Replay function. |
We tried using event emitting part of record and reply, soap input node is emitting the event; still the payload contains processed data with context added. Still I have to reconstruct the original message by putting in soap envelope extract and adding body to it.
Is there a way around that? You also said record and replay is done in parallel. Is event emit function parallel to rest of execution of flow , or you are saying parallel because another flow actually logs it? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 01, 2013 10:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqjeff wrote: |
Shipped in 8.0.0.3..... |
And in which Fix Pack do you ship the apar for independent UOW processing in Events?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 01, 2013 12:40 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
mqjeff wrote: |
Shipped in 8.0.0.3..... |
And in which Fix Pack do you ship the apar for independent UOW processing in Events?  |
I don't ship any APARs. |
|
Back to top |
|
 |
Simbu |
Posted: Sun Nov 03, 2013 11:04 pm Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
Y75 wrote: |
We tried using event emitting part of record and reply, soap input node is emitting the event; still the payload contains processed data with context added. Still I have to reconstruct the original message by putting in soap envelope extract and adding body to it.
Is there a way around that? |
The technote says
Quote: |
There is no way to capture this information in a SOAPInput node. In order to capture the entire message, including the signature, you will need to read the message in another message flow (lets call it a "pre-flow") that is comprised of an HTTPInput node with parsing set to the 'BLOB' domain. This will preserve the message and signature, at which time you can insert the data to a table in the database with a SQL Insert command.
This pre-flow then submits the message to your originally intended SOAPInput flow, where the message is processed as desired. Remember, you will need to reply to the sending application via an HTTPReply node.
In short, to accomplish the warehousing of the original message, you must use a message flow to intercept the message without parsing it, and use that flow to submit the message to your target. |
|
|
Back to top |
|
 |
whydieanut |
Posted: Mon Nov 04, 2013 5:28 am Post subject: |
|
|
 Disciple
Joined: 02 Apr 2010 Posts: 186
|
|
Back to top |
|
 |
|