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 » SOAPRequest Retry

Post new topic  Reply to topic
 SOAPRequest Retry « View previous topic :: View next topic » 
Author Message
dmw1986
PostPosted: Tue Jun 09, 2009 5:53 am    Post subject: SOAPRequest Retry Reply with quote

Apprentice

Joined: 24 Sep 2008
Posts: 35

I am using a SOAPRequest to call an external web service, how do I retry say every 5 minutes if i get a failure when trying to call it. Like if the service is down?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 09, 2009 6:03 am    Post subject: Re: SOAPRequest Retry Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

dmw1986 wrote:
how do I retry say every 5 minutes if i get a failure when trying to call it. Like if the service is down?


Timer nodes.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dmw1986
PostPosted: Tue Jun 09, 2009 6:09 am    Post subject: Reply with quote

Apprentice

Joined: 24 Sep 2008
Posts: 35

So do you use the 2 in conjuction with each other? Off to WMB help i go...
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 09, 2009 6:10 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

dmw1986 wrote:
So do you use the 2 in conjuction with each other?



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 09, 2009 6:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

dmw1986 wrote:
Off to WMB help i go...


I would also advise a search of this forum for some potentially useful discussions on this; the developerworks article on the subject is very much worth a read!


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dilse
PostPosted: Tue Jun 09, 2009 10:18 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

You could also build the logic into the message flow. When the request fails, capture the soap request xml and sleep for specific time and then rewire back to the soaprequest node. You can also maintain how many time you want to retry. Hope this helps.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 09, 2009 11:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

dilse wrote:
sleep for specific time and then rewire back to the soaprequest node.


You need to be cautious doing this; you need to be aware of what will stop processing while the sleep is in progress.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Tue Jun 09, 2009 11:53 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Vitor wrote:
dilse wrote:
sleep for specific time and then rewire back to the soaprequest node.


You need to be cautious doing this; you need to be aware of what will stop processing while the sleep is in progress.


.... and be aware that looping at the flow level may cause issues (and make sure you dont write an infinite loop!)
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Jun 09, 2009 8:11 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

seems similar to this

http://www.mqseries.net/phpBB2/viewtopic.php?t=49415&highlight=&sid=1703c6a6dd3d06fe22d0f90a01e9d070
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
dmw1986
PostPosted: Wed Jun 10, 2009 7:16 am    Post subject: Reply with quote

Apprentice

Joined: 24 Sep 2008
Posts: 35

Vitor wrote:
dmw1986 wrote:
Off to WMB help i go...


I would also advise a search of this forum for some potentially useful discussions on this; the developerworks article on the subject is very much worth a read!



Can you post a link? I'm struggling with the timer nodes.
Back to top
View user's profile Send private message
dmw1986
PostPosted: Wed Jun 10, 2009 9:14 am    Post subject: Reply with quote

Apprentice

Joined: 24 Sep 2008
Posts: 35

Where Do i put the time nodes?

Right now I have.

MQInput > Routing > Compute > SOAPRequest

Do I This

MQInput > Routing > Compute > SOAPRequest >(failure)> TimeoutControl

Then point TimeoutNotication Out back into SOAPRequest?

Confused.....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAPRequest Retry
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.