Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question Invoking a webservice with a parametered endpoint

More
07 Nov 2018 17:42 #1 by nada
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
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
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
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
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
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
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
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
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
You're Welcome :);)