Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question Invoking a webservice with a parametered endpoint

More
07 Nov 2018 17:42 #1 by nada
nada created the topic: Invoking a webservice with a parametered endpoint
Bonjour ,

J'ai un Webservice WS2 qui ne peut être invoqué qu'après la récupération d'une Clé fournie par un autre Webservice WS1 .

WS2 endpoint : test/key=XXXX

le XXXX est fournie par le WS1 ;

Dans un mapping , je voudrais invoquer le WS1 récupérer la Clé envoyé en output , l'ajouter à l'endpoint du WS2 et invoquer le WS2 .

Est-t-il possible d'effectuer celà ? Si oui , comment ?

Merci
Bien cordialement ,
More
13 Nov 2018 07:17 - 13 Nov 2018 07:19 #2 by nahid3152
nahid3152 replied the topic: Invoking a webservice with a parametered endpoint
HI,
If you have WS1 Webservice access (client ID, client secret, etc.) then first map it with WS1 input part and you will get the result from output part, grab those result in a staging area/table (if required) and map with WS2 Input part.
Last Edit: 13 Nov 2018 07:19 by nahid3152.
More
13 Nov 2018 09:30 #3 by nada
nada replied the topic: Invoking a webservice with a parametered endpoint
Hello Nahid ,

Thank you for your response,
But i don't have the corresponding fields in the input part for the WS2, i need to concatenate the output of WS1 with the endpoint of the WS2, otherwise , i won't be able to invoke the WS2.
More
13 Nov 2018 10:06 #4 by nahid3152
nahid3152 replied the topic: Invoking a webservice with a parametered endpoint
Hi,
Can you share a little bit more about the WS2 structure and how do you create metadata WS2?
More
13 Nov 2018 10:27 #5 by nada
nada replied the topic: Invoking a webservice with a parametered endpoint
Here's the WS1 structure



I need to get the sessionId value , and put it in the endpoint of the WS2 , it's the api_Key .

Attachments:
More
13 Nov 2018 11:11 #6 by nahid3152
nahid3152 replied the topic: Invoking a webservice with a parametered endpoint
Can you try your WS1 output result (required fields with concatenating) store in a table or variable and use it in metadata as an Input (query string). When you call your services.

Attachments:
More
13 Nov 2018 16:19 #7 by nada
nada replied the topic: Invoking a webservice with a parametered endpoint
I tried your solution , but it's not getting the value for the API_Key , it leaves the variable as it is

Attachments:
More
14 Nov 2018 07:00 #8 by nahid3152
nahid3152 replied the topic: Invoking a webservice with a parametered endpoint
HI, Nada

Maybe something is missing out there,
Here I add working steps. maybe it should work.


This attachment is hidden for guests.
Please log in or register to see it.


This attachment is hidden for guests.
Please log in or register to see it.

This message has attachments files.
Please log in or register to see it.

More
14 Nov 2018 11:41 #9 by nada
nada replied the topic: Invoking a webservice with a parametered endpoint
Hello Nahid ,

Thank you for the working set , i followed it step by step and it worked , apparently there's something i've been missing , but I don't know what it is .

This problem is solved , Thank you .
More
14 Nov 2018 11:52 #10 by nahid3152
nahid3152 replied the topic: Invoking a webservice with a parametered endpoint
You're Welcome :);)