2023-01-26 09:06 AM - edited 2023-01-26 01:18 PM
When I run in POSTMAN I get the token as expected.
I am getting a status 0 in the script.
2023-01-26 11:24 AM
Kudos to @Jeff, this is better than documentation, it is practical sampling: https://www.archerirm.community/t5/technical-tips-tricks/archer-api-templates-an-archer-application-to-quickly-test-the/ba-p/566337
2023-01-26 01:17 PM
That is good documentation but it doesn't resolve my issue. The above code is ran in POSTMAN and returns a session token but when used in a Node.js script I get a status = 0.
Is there something I may be missing?
2023-01-26 01:24 PM
In NODE JS did u try REST authentication call? Also it depends on what is your complete code. I remember I was able successfully using Eclipse EE+NodeJS for API calls to Archer, though long time ago.
2023-01-26 01:32 PM
Thanks for getting back to me so quickly on this.
My complete code is below. I am running in VSCode with the node modules. I have ran this successfully in other instances but not with an xml call like mentioned and not to ARCHER API.
2023-01-26 01:55 PM
I was using either ajax or require libs, I remember.
Also, are u sure your credentials correct and XML request correct by using Jeff's tool or postman? Like to be sure that there is no issue with domain, credentials, API node in IIS, etc.
2023-01-26 01:56 PM - edited 2023-01-26 02:05 PM
And address your URL not to ?WDSL but only general.asmx. Because if you use ?WDSL, you are using SOAP 1.1 which requires SOAPAction in the header:
So, main recommendation, define header as in the Archer Help above, and user URL: https://cms-uatw2019.bankofamerica.com/ws/general.asmx
2023-01-26 02:51 PM - edited 2023-01-26 02:59 PM
Made the recommended changes and same result.
My POSTMAN call does not have headers except for content type and works great.
code changes added headers...
2023-01-26 03:03 PM
Did u use different URL by removing ?WDSL?
2023-01-26 03:04 PM
Yes and that does work in POSTMAN but not in my code call.