Author |
Message
|
mqsi_man |
Posted: Wed Oct 02, 2013 10:41 am Post subject: Calling multiple web services in parallel |
|
|
Novice
Joined: 28 Aug 2013 Posts: 19
|
Hello,
Problem statement: For each service, there are multiple different service providers. Each service provider accepts request in different format of SOAP. I need to call each service provider at the same time (parallel) and aggregate the responses. Also, the call to all the providers should be synchronous. I am not able to use aggregate nodes as it requires mq transport (http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbz90180_.htm&resultof=%22aggregate%22%20%22aggreg%22%20).
There is similar post on mqseries for this : http://www.mqseries.net/phpBB2/viewtopic.php?p=321885&sid=5e637d0cfee3d552874485446348614f
but as I said above, I can not make asynchronous call.
I am stuck and trying different options with SOAPInput and SOAPRequest node but, no success yet.
Please can you help me how I can achieve such parallel processing ? any pointers in correct direction will help. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Oct 02, 2013 10:46 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Why is this so difficult ? How long have you been developing message flows ? Have you been to the training class ?
Parallel SOAP calls are done all the time synchronously or asynchronously. There is nothing difficult about it.
What about this design problem is stumping you ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqsi_man |
Posted: Wed Oct 02, 2013 11:11 am Post subject: |
|
|
Novice
Joined: 28 Aug 2013 Posts: 19
|
I am relatively newbie for message broker flow development. I have past experience on broker admin. I did attend training before starting message broker development.
Unfortunately, I am not able to figure out how to do parallel sync SOAP calls.
Message broker version : 8.0.0.1
Can you point me to correct documentation/references where I can find on how to make parallel soap calls synchronously.
thanks |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Oct 02, 2013 11:52 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
In your training, did you learn about fanout and fanin via queues ? What classes did you attend ? There are nine days of training for US-based courses or eleven days of training for India-based courses. Did you go to all the classes and participate in the labs ?
Your main flow should fanout the requests via queues to other main flows that read these messages and perform the SOAP calls, returning the results by CorrelId to your fanin flow. This is taught in the above training course.
To be a successful developer, you have to think creatively. If you are less of a creative person, you might re-consider your decision to move away from Administration. Not everything is spelled out for you word-for-word. You have to understand the basic principles then think outside the box how you can achieve what you want with the capabilities provided to you from the tools you use.
Why are you still on 8.0.0.1 ? Don't you want the bugs fixed by 8.0.0.2 ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 03, 2013 2:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mqsi_man wrote: |
I am relatively newbie for message broker flow development. I have past experience on broker admin. I did attend training before starting message broker development.
Unfortunately, I am not able to figure out how to do parallel sync SOAP calls.
Message broker version : 8.0.0.1
Can you point me to correct documentation/references where I can find on how to make parallel soap calls synchronously.
thanks |
USE THE SAMPLE. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Oct 03, 2013 3:02 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
mqsi_man wrote: |
I am relatively newbie for message broker flow development. I have past experience on broker admin. I did attend training before starting message broker development.
Unfortunately, I am not able to figure out how to do parallel sync SOAP calls.
Message broker version : 8.0.0.1
Can you point me to correct documentation/references where I can find on how to make parallel soap calls synchronously.
thanks |
USE THE SAMPLE. |
He obviously does not want to. What can we do ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 03, 2013 4:20 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
mqjeff wrote: |
mqsi_man wrote: |
I am relatively newbie for message broker flow development. I have past experience on broker admin. I did attend training before starting message broker development.
Unfortunately, I am not able to figure out how to do parallel sync SOAP calls.
Message broker version : 8.0.0.1
Can you point me to correct documentation/references where I can find on how to make parallel soap calls synchronously.
thanks |
USE THE SAMPLE. |
He obviously does not want to. What can we do ? |
Sit back and watch other people try to help. |
|
Back to top |
|
 |
mqsi_man |
Posted: Thu Oct 03, 2013 8:09 am Post subject: |
|
|
Novice
Joined: 28 Aug 2013 Posts: 19
|
Thanks for your suggestion. I don't have option to use mq as transport. I am trying to put together the solution using JMS transport. Will keep this thread updated with the results. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Oct 03, 2013 8:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqsi_man wrote: |
I don't have option to use mq as transport |
Why? Did somebody just tell you so and you believed? If you are using WMB or IIB you should be able to use MQ, at least internally!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 03, 2013 8:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqsi_man wrote: |
I don't have option to use mq as transport. I am trying to put together the solution using JMS transport. |
Explain the difference here between WMQ and JMS. Given that a WMQ queue manager acts as a JMS provider. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Oct 03, 2013 8:54 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Vitor wrote: |
Explain the difference here between WMQ and JMS. Given that a WMQ queue manager acts as a JMS provider. |
Shhhhhhhh! Don't tell these Java heads that. They will just put their fingers in their ears and shout 'la-la-la-la-la-la, can't hear you!'
For them it is a pure java JMS or nothing. _________________ 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 |
|
 |
lancelotlinc |
Posted: Thu Oct 03, 2013 9:21 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqsi_man wrote: |
Thanks for your suggestion. I don't have option to use mq as transport. I am trying to put together the solution using JMS transport. Will keep this thread updated with the results. |
Well ok then.
Your main flow should fanout the requests via JMS queues to other main flows that read these messages and perform the SOAP calls, returning the results by CorrelId to your fanin flow.
Go ahead and tell us why you cannot do this... _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 03, 2013 9:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lancelotlinc wrote: |
Your main flow should fanout the requests via JMS queues to other main flows that read these messages and perform the SOAP calls, returning the results by CorrelId to your fanin flow. |
For the record, and the benefit of the Java impaired among us (hello!), is there a good and compelling reason why the JMS queues you mention could not be hosted by a WMQ queue manager? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqsi_man |
Posted: Thu Oct 03, 2013 9:45 am Post subject: |
|
|
Novice
Joined: 28 Aug 2013 Posts: 19
|
Done!
This is working fine now. Thanks for the inputs. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 03, 2013 9:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqsi_man wrote: |
This is working fine now. |
Care to repay the inputs by posting your solution for the benefit of future readers? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|