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 » Calling Web Service and HTTP Request in a flow

Post new topic  Reply to topic
 Calling Web Service and HTTP Request in a flow « View previous topic :: View next topic » 
Author Message
herickbeth
PostPosted: Mon Mar 11, 2013 3:09 pm    Post subject: Calling Web Service and HTTP Request in a flow Reply with quote

Newbie

Joined: 31 Jan 2013
Posts: 6

Hello,

Here is the scenario:

1. I have a flow expose as a web service.
2. This flow has a input when I call it. This input contains some data "A".
3. The first step in my flow is to call a web service (SOAPRequest). This returns a response "B".
4. Then I have to make an HTTPRequest to start an instance in WPS using REST.
5. The request of this HTTPRequest must be consolidating by A + B.

My problem:

1. If I make OutputRoot = InputRoot before calling the first web service. This SOAPRequest fails because I'm sending information its not going to use.
2. If instead I just call my web service, I lost my InputRoot with info "A" where I have part of the request I need to send to the HTTPRequest.


My flow is this:

MQInput --> Compute (where I fill the request for my web service) --> sub-flow to call my web service --> Compute (where I try to consolidate A+B) --> MQ Header --> HTTP Request (to start instance in WPS with REST) --> Compute (to read the response and fill the message response of my flow) --> SOAP Envelope --> SOAP Reply

There is anyway to save this "A" information in order to not lose it and make the call of my web service and then use A+B in my HTTPRequest?

Thanx in advanced for any hint you could gave to me...
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 11, 2013 3:53 pm    Post subject: Re: Calling Web Service and HTTP Request in a flow Reply with quote

Grand High Poobah

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

herickbeth wrote:
There is anyway to save this "A" information in order to not lose it and make the call of my web service and then use A+B in my HTTPRequest?


- save it in the Environment Tree
- aggregate with your original request
- send it to yourself via WMQ
- etc
- etc

The list goes on and on...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
McueMart
PostPosted: Tue Mar 12, 2013 1:32 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

You clearly are missing some basic understanding/training of how the message assembly works. You need to read up on Environment, Local Environment and Exception List and understand how they are used, and how they are different to the Root message tree.

The infocenter has lots of information.
Back to top
View user's profile Send private message
herickbeth
PostPosted: Tue Mar 12, 2013 6:49 am    Post subject: Reply with quote

Newbie

Joined: 31 Jan 2013
Posts: 6

In fact I'm a newbie working with WMB.

Thanx for your support. I solved my question.

Greetings!
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 » Calling Web Service and HTTP Request in a flow
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.