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 » Web service URL in SOAP Request node-dynamically

Post new topic  Reply to topic
 Web service URL in SOAP Request node-dynamically « View previous topic :: View next topic » 
Author Message
chaitu
PostPosted: Wed Jun 08, 2016 12:19 am    Post subject: Web service URL in SOAP Request node-dynamically Reply with quote

Voyager

Joined: 15 Apr 2014
Posts: 89

Hi all,

I am designed a web service flow with Soap Request node with WSDL.
we can change the properties for the Soap Request node with some esql code right.
my question is if I want to change the property web service URL.
what will happen to the wsdl will the wsdl also change accordingly or if I want to change the web service url dynamically I need to skip to gateway mode.
could anyone give some clarification.

Thanks for your time.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 08, 2016 4:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can set the URL to any endpoint that accepts the message you are passing to the SOAPRequest node.

The SOAPRequest node doesn't have a gateway mode.

The gateway mode is so you can create a SOAP endpoint using the SOAPInput node that is not bound to any particular WSDL.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
chaitu
PostPosted: Wed Jun 08, 2016 4:57 am    Post subject: Reply with quote

Voyager

Joined: 15 Apr 2014
Posts: 89

Hi,

But in soap request node we have
operation:
1. Invoke a specific web service defined by a WSDL interface
2. Invoke a generic web service

I am using IIB v9.

and for first time I am using wsdl to call service and in second if I want to call another webservice what I need to do
1. simple change the webservice URL using esql so that all properties like binding, operation will get change atomatically or I need to change all the points.

2. I need to change the operation also to Invoke a generic web service
as well.

Could any one guide me on this.
Back to top
View user's profile Send private message
martinb
PostPosted: Wed Jun 08, 2016 9:17 am    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

The behaviour, and active properties of the SOAP Request node are changed when you switch the operation mode see Gateway operation mode for SOAP nodes.

Note that you cannot dynamically, via a LocalEnironment override, switch the operational mode.

So if your message flow needs to issue one SOAP Request, with all the advantages of having a WSDL definition, eg validation etc.., and another in Gateway ("anything goes") without WSDL then you would need to have separate nodes.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 08, 2016 9:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Apparently I was wrong about the gateway mode of the SOAPRequest node.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
chaitu
PostPosted: Thu Jun 09, 2016 12:25 am    Post subject: Reply with quote

Voyager

Joined: 15 Apr 2014
Posts: 89

Thanks for reply.

so assume I am in gateway mode and I need to call
service1 if A=1 and
service 2 if A=2
can I achieve this using single soap request node like
fileinput>>compute>>soap request>>fileout.

in compute I write code to set webservice url according to the logic above.

As per my understanding it is not possible to call multiple services dynamically from one soap request. but it is possible to call the different operations in a service(wsdl) dynamically wheather it is in gateway mode or in wsdl mode.

could anyone correct me if I am wrong.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 09, 2016 2:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

chaitu wrote:

As per my understanding it is not possible to call multiple services dynamically from one soap request. but it is possible to call the different operations in a service(wsdl) dynamically wheather it is in gateway mode or in wsdl mode.

could anyone correct me if I am wrong.


You can call any webservice dynamically from a single soap request node. The node however needs to be in gateway mode.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chaitu
PostPosted: Thu Jun 09, 2016 4:40 am    Post subject: Reply with quote

Voyager

Joined: 15 Apr 2014
Posts: 89

Code:


You can call any webservice dynamically from a single soap request node. The node however needs to be in gateway mode.


Thanks fjb_saper.

I will try then.
Back to top
View user's profile Send private message
chaitu
PostPosted: Fri Jul 08, 2016 1:01 am    Post subject: Reply with quote

Voyager

Joined: 15 Apr 2014
Posts: 89

Hi All,

I designed a web service flow with soap request node confiqured with wsdl.

like mqi/pnode>>compute>>soaprequestnode(wsdlmode)>>fileout

now the requirement is changed like without touching the wsdl i need to call the service with new url given.
From my understanding i can change the soap request node property webservice url using esql code in the compute.

can anyone guide me am I in right path.
And I have some questions like if i change the webservice url using esql then what about the operation i mean to ask the operation will also link to url right?

Thanks in Advance.
Back to top
View user's profile Send private message
ajaykumar.maram
PostPosted: Thu Dec 21, 2017 4:23 am    Post subject: Reply with quote

Novice

Joined: 10 Jul 2015
Posts: 20

chaitu wrote:
Thanks for reply.

so assume I am in gateway mode and I need to call
service1 if A=1 and
service 2 if A=2
can I achieve this using single soap request node like
fileinput>>compute>>soap request>>fileout.

in compute I write code to set webservice url according to the logic above.

As per my understanding it is not possible to call multiple services dynamically from one soap request. but it is possible to call the different operations in a service(wsdl) dynamically wheather it is in gateway mode or in wsdl mode.

could anyone correct me if I am wrong.


Hi Chaitu, Can tell me how can i call different operations using esql. I've tried to add the action in local environment but i doesn't work.
chaitu wrote:
Code:


You can call any webservice dynamically from a single soap request node. The node however needs to be in gateway mode.


Thanks fjb_saper.

I will try then.


If you are done with this please tell us how u did it.
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 » Web service URL in SOAP Request node-dynamically
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.