Error on OAuth 2.0 connection to soaprouter | Community
Skip to main content
PatrickLittel
New Participant
March 7, 2025
Question

Error on OAuth 2.0 connection to soaprouter

  • March 7, 2025
  • 2 replies
  • 592 views

Currently still running v7, but soon migrating to v8. I've created an API connection in the Developer Console and I'm able to retrieve a fresh access token from the IMS server.

I'm trying to call the /nl/jsp/soaprouter.jsp by passing the Bearer token in the 'Authorization' header, but I keep getting 'XTK-170019 Access denied'.

 

My SOAPaction is set to dfn:apiCustomers#insertCustomer, which is correct.


SOAP XML is as follows

 

FYI, this request works 'in the old way' when I would be passing a sessiontoken. But as that will be deprecated soon, I was wondering what I'm doing wrong when trying to use Bearer token authorization.
I'd greatly appreciate your help!

2 replies

Sukrity_Wadhwa
Employee
March 28, 2025

Hi @patricklittel,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!

Sukrity Wadhwa
_Manoj_Kumar_
New Participant
March 11, 2025

Hello @patricklittel  It seems to be working for me. Are you sure the token is valid and the IP is not restricted?

 

 

     Manoj     Find me on LinkedIn
PatrickLittel
New Participant
March 11, 2025

Yes, token is valid and IP is whitelisted:

Calling BearerTokenLogon on xtk:session:

IMS profile endpoint shows correct data as well for our instance: