EagleML Web Service - Call Back Adapter Use Cases

The use cases below include:

Case 1 - Minimum of Additional Parameters

Scenario:  You have a Web Service and you want to send TSRs to it.

URL: http://somehost.com/callmyws

user: testuser

password: 123456

Adapter settings (w_config_custom.inc)

<COL TAG="wa_myWS" EXPRESSION="'url;http://somehost.com/callmyws!user;testuser!password;12345!'"/>

Adapter on the list (w_config_custom.inc)

<COL TAG="waList" EXPRESSION="'https://somehost.com/callmyws;wa_myWS!'"/>

Case 2 - Using Password Encryption

Scenario: You have a Web Service and you want to send TSRs to it.

URL: http://somehost2.com/callmyws

user: testuser2

password: 1234567

You want to encrypt your password for security reasons.

Create a variable to store the password within the include file and encrypt it:

<COL TAG="mypassword" EXPRESSION="'base64aes~sm3SNpRbjUcXfEOCFmuCFlEa8dqRGg=='" ENCRYPTED="YES"/>

The password and its value is set in the adapter by the following construction:

password;EXPR#:mypassword:!

Adapter settings (w_config_custom.inc)

<COL TAG="wa_myWS2" EXPRESSION="'url;http://somehost2.com/callmyws!user;testuser2!password;EXPR#:mypassword:!'"/>

Adapter on the list (w_config_custom.inc)

<COL TAG="waList" EXPRESSION="'https://myhost2.com/callmyws;wa_myWS2!'"/>

Case 3 - SOAP Web Service

Scenario: You have a SOAP Web Service and you want to send TSRs to it.

URL: http://somehost3.com/callmyws

user: testuser3

password: 1234569

soapaction = /ws/callback

soapheader =

<ns3:security xmlns:ns3="http://www.eagleinvsys.com/2011/wsdl/EagleML-2-0">     <UsernameToken>         <Username>testuser3</Username>         <Password Type='ns2:val'>1234569</Password>     </UsernameToken> </ns3:security>

Put the SOAP header into a separate variable:

<COL TAG="soapheader" EXPRESSION="'<ns3:security xmlns:ns3="http://www.eagleinvsys.com/2011/wsdl/EagleML-2-0">\n<UsernameToken>\n'"/> <COL TAG="soapheader" EXPRESSION=":soapheader:+'<Username>testuser3</Username>\n<Password Type="ns2:val">1234569</Password>\n</UsernameToken>\n</ns3:security>'"/>

Adapter settings (w_config_custom.inc)

<COL TAG="wa_myWS3" EXPRESSION="'url;http://somehost3.com/callmyws!soapheader;EXPR#:soapheader:!soapaction;/ws/callback!user;testuser3!password;1234569'"/>

Adapter on the list (w_config_custom.inc)

<COL TAG="waList" EXPRESSION="'https://somehost3.com/callmyws;wa_myWS3!'"/>

Case 4 - Several Web Services

Scenario: You have two Web Services and you want to send TSRs to both.

URL: http://somehost.com/callmyws

user: testuser

password: 123456

and​

URL: http://somehost4:/callmyws

user: testuser4

password: 1234569

soapaction = /ws/callback

Settings (w_config_custom.inc)

<COL TAG="wa_myWS" EXPRESSION="'url;http://somehost.com/callmyws!user;testuser!password;12345!'"/> <COL TAG="wa_myWS4" EXPRESSION="'url;http://somehost4.com/callmyws! soapaction;/ws/callback!user;testuser4!password;1234569'"/>

Adapters on the list (w_config_custom.inc)

<COL TAG="waList" EXPRESSION="'https://somehost.com/callmyws;wa_myWS! https://somehost4.com/callmyws;wa_myWS4!'"/>

Case 5 - SOAP Web Service with Callback (Uses EA Certificate)

URL: http://somehost.com/callmyws

user: testuser

password: 12345

cert: ./certpath.pem

certpass: 67891

key: ./keypath.pem

<COL TAG="wa_myWS" EXPRESSION="'url;https://somehost.com/callmyws!user;testuser!password;12345!cert;./certpath.pem!certpass;67891!key;./keypath.pem'"/>

Â