Author |
Message
|
chaitu |
Posted: Wed Jun 08, 2016 12:19 am Post subject: Web service URL in SOAP Request node-dynamically |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Jun 08, 2016 4:08 am Post subject: |
|
|
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 |
|
 |
chaitu |
Posted: Wed Jun 08, 2016 4:57 am Post subject: |
|
|
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 |
|
 |
martinb |
Posted: Wed Jun 08, 2016 9:17 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Jun 08, 2016 9:18 am Post subject: |
|
|
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 |
|
 |
chaitu |
Posted: Thu Jun 09, 2016 12:25 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Jun 09, 2016 2:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
chaitu |
Posted: Thu Jun 09, 2016 4:40 am Post subject: |
|
|
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 |
|
 |
chaitu |
Posted: Fri Jul 08, 2016 1:01 am Post subject: |
|
|
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 |
|
 |
ajaykumar.maram |
Posted: Thu Dec 21, 2017 4:23 am Post subject: |
|
|
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 |
|
 |
|