• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

danscan
#1 Posted : Monday, July 24, 2017 10:43:45 PM(UTC)
danscan

Rank: Member

Joined: 5/17/2017(UTC)
Posts: 11
Location: New Jersey

Thanks: 4 times
I am attempting to get the list of orders by calling
Orders_Order_FindByCriteria (Async) but the call is failing like the user is not logged in. The Orders_Order_FindByCriteriaResult is null and the token.TokenRejected is true.

When I change the endpoint and login to match the bvcommerce demo site (https) it works as expected.

I am working on a development box in "lite" mode to get through this initial development. The dev site does not have ssl on. Is this causing my issue? Are some services not available through non-ssl connections? Is this a "Lite Version" issue?
Aaron
#2 Posted : Tuesday, July 25, 2017 8:32:43 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Are you sure the problem isn't just that your token has expired and that you need to get a new one? If you have access to the database you can query the bvc_AuthenticationToken table to verify this.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
danscan
#3 Posted : Tuesday, July 25, 2017 8:46:04 AM(UTC)
danscan

Rank: Member

Joined: 5/17/2017(UTC)
Posts: 11
Location: New Jersey

Thanks: 4 times
My code gets the token and uses the token immediately.

I can change my project to point to the demo here and change the bindings from None to Transport and it returns back an empty set with a token that is still valid.

When I switch it back to the local demo site is loses it again.

My client is running v15 if that makes a difference.

Aaron
#4 Posted : Tuesday, July 25, 2017 10:15:49 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Are you checking that the token you get is valid before using it? Also, it's possible that this is a permissions problem with your user. This API call requires "Orders -
View" permissions as well as "Login to Web Services" permissions.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
danscan
#5 Posted : Tuesday, July 25, 2017 11:02:53 AM(UTC)
danscan

Rank: Member

Joined: 5/17/2017(UTC)
Posts: 11
Location: New Jersey

Thanks: 4 times
This was a permissions issue. I added the orders(view/edit) permission and the webservice permission to the group the user logging in was associated to.


Thank you for you help.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012