AmyZ-5475 avatar image
0 Votes"
AmyZ-5475 asked

How to use Soap API and configure backend credential

Hi, we're testing a SOAP API, test with hard-code in portal is successful.
Now we want to know how to allow API consumer to use this API in the real world.

Setting : SOAP pass-through
Test WSDL : in my prior post here

Requirement 1 :

How does API consumer provide subscription key at their end ?
We download the WSDL and use SoapUI to test it, not sure how to map the subscription key to the XML request.

Requirement 2 :

How do we parameterize the backend credential info by policy ?
Different operation is asked to use different credential to hit the backend, and credentials are stored in APIM.
Ex : Edit Operation should use EditUserAccount to access the backend, Get Operation should use GetUserAccount

Here's a valid payload from current test via portal , where <soapenv:Header> entails backend credential I need to parameterize now.

Not sure if policy can achieve this requirement.

 <soapenv:Envelope xmlns:soapenv="" 
         <wsse:Security soapenv:mustUnderstand="1" 
             <wsse:UsernameToken wsu:Id="UsernameToken-11111111">
                 <wsse:Password Type="">UserA_PWD</wsse:Password>
         <bsvc:Edit_Job_Requisition_Request xmlns:bsvc="urn:com.workday/bsvc" bsvc:version="v38.1">
 <bsvc:Comment>Test Comment</bsvc:Comment>
 <bsvc:Worker_Reference bsvc:Descriptor="string">
 <bsvc:ID bsvc:type="Employee_ID">23084</bsvc:ID>

Also enclosed a successful test invoke portal

Need your advice, Thank you very much

image.png (87.2 KiB)
image.png (295.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers