Expand my Community achievements bar.

Error on OAuth 2.0 connection to soaprouter

Avatar

Level 1

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.

PatrickLittel_1-1741364002293.png


SOAP XML is as follows

PatrickLittel_0-1741363905986.png

 

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!

3 Replies

Avatar

Community Advisor

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

 

_Manoj_Kumar__0-1741672415419.png

 


     Manoj
     Find me on LinkedIn

Avatar

Level 1

Yes, token is valid and IP is whitelisted:

PatrickLittel_0-1741698812144.png

Calling BearerTokenLogon on xtk:session:

PatrickLittel_1-1741698825857.png

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

PatrickLittel_2-1741698853424.png

 

 



Avatar

Administrator

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