Sun Oct 13, 2019 10:30 pm
Login Register Lost Password? Contact Us


ESP Soap to generate Transaction ID

Questions around writing code and queries

Wed Oct 09, 2019 4:39 am Change Time Zone

Hi,
can you please help to understand how can to make call to ESP via Thor/Roxie to fetch data as ESP user will user name password associated ,Couldn't find soap call with such example where it takes this as params.

URL :- http://10.224.105.125:7280/WsUtility/Ge ... oductCode={0}&NumberToGenerate={1}
EspUserName:- XXXXX
EspPassword:- XXXXX
How to can i fetch TransactionID same in soap call respective
<GetTransactionIdentifierResponse><TransactionIDs><TransactionID>XXXPPPAAAYV</TransactionID></TransactionIDs></GetTransactionIdentifierResponse>
harshdesai
 
Posts: 12
Joined: Fri Feb 23, 2018 8:30 am

Wed Oct 09, 2019 1:54 pm Change Time Zone

There are two ways you can pass credentials through SOAPCALL.

1. Insert the credentials into the URL string. Gather the credentials from wherever they are stored and add them to the url in the following format:

https://username:password@address:port/whatever

2. Add the HTTP authentication header yourself:

MY_USERNAME := TRIM(username, ALL);
MY_USER_PW := TRIM(userPW, LEFT, RIGHT);

ENCODED_BASIC_CREDENTIALS := IF (
MY_USERNAME != '',
'Basic ' + Std.Str.EncodeBase64((DATA)(MY_USERNAME + ':' + MY_USER_PW)),
''
);

soapResponse := SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP), HTTPHEADER('Authorization',ENCODED_BASIC_CREDENTIALS));
anthony.fishbeck
 
Posts: 54
Joined: Wed Jan 30, 2013 10:18 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron