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

Notification

Icon
Error

JMA Web Technologies
#1 Posted : Friday, December 06, 2013 10:50:05 AM(UTC)
JMA Web Technologies

Rank: Member

Joined: 7/15/2013(UTC)
Posts: 11
Location: Waltham, MA USA

Was thanked: 1 time(s) in 1 post(s)
Hi,

I am trying to pull orders by a date range. My user is a site admin and the customer is using BV Commerce 2013. Here is my request and response:



Request

POST http://www.medsupplier.com/webservices3.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.18052)
VsDebuggerCausalityData: uIDPo5AbljtiXsJHqI4WQVjpyMsAAAAA4SJqDRjVh0Gx1fwnVi50l7w2zrPpyNJNgcVFkES1sDkACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3/Orders_Order_FindByCriteria"
Host: www.medsupplier.com
Content-Length: 928
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><Orders_Order_FindByCriteria xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3"><token><Bvin>xxx</Bvin><LastUpdated>0001-01-01T00:00:00</LastUpdated><ExpirationDate>2013-12-06T11:41:25.2494-05:00</ExpirationDate><ExpirationDateUTC>2013-12-06T16:41:25.2494Z</ExpirationDateUTC><UserBvin /><TokenRejected>false</TokenRejected><IsExpired>false</IsExpired></token><criteria><IsPlaced>true</IsPlaced><KeywordIsExact>false</KeywordIsExact><PaymentStatus>Unknown</PaymentStatus><ShippingStatus>Unknown</ShippingStatus><EndDate>2013-12-07T00:00:00</EndDate><StartDate>2013-12-05T00:00:00</StartDate></criteria></Orders_Order_FindByCriteria></soap:Body></soap:Envelope>

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 06 Dec 2013 15:41:35 GMT
Content-Length: 701

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><Orders_Order_FindByCriteriaResponse xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3"><token><Bvin>xxx</Bvin><LastUpdated>0001-01-01T00:00:00</LastUpdated><ExpirationDate>2013-12-06T11:41:25.2494-05:00</ExpirationDate><ExpirationDateUTC>2013-12-06T16:41:25.2494Z</ExpirationDateUTC><UserBvin /><TokenRejected>true</TokenRejected><IsExpired>false</IsExpired></token></Orders_Order_FindByCriteriaResponse></soap:Body></soap:Envelope>
Aaron
#2 Posted : Friday, December 06, 2013 12:40:21 PM(UTC)
Aaron

Rank: Administration

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

Thanks: 6 times
Was thanked: 138 time(s) in 133 post(s)
Are you getting any errors or just no orders? After making the request did you check the BVC Audit Log to see if there was anything there?
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
JMA Web Technologies
#3 Posted : Friday, December 06, 2013 1:04:39 PM(UTC)
JMA Web Technologies

Rank: Member

Joined: 7/15/2013(UTC)
Posts: 11
Location: Waltham, MA USA

Was thanked: 1 time(s) in 1 post(s)
I have not checked the log. I just receive null as a response.
Aaron
#4 Posted : Friday, December 06, 2013 3:45:58 PM(UTC)
Aaron

Rank: Administration

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

Thanks: 6 times
Was thanked: 138 time(s) in 133 post(s)
I missed this earlier, but the response is showing that the token was rejected. That's likely the issue. Most likely you will see an authentication error in the Audit Log. Anyway, I'm guessing all you need to do is get a new token.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
JMA Web Technologies
#5 Posted : Friday, December 06, 2013 3:58:42 PM(UTC)
JMA Web Technologies

Rank: Member

Joined: 7/15/2013(UTC)
Posts: 11
Location: Waltham, MA USA

Was thanked: 1 time(s) in 1 post(s)
I tried a new token and it fails. I believe there is an issue with their authentication. The client mentioned it generates some special number with the logins. Maybe their custom authentication provider is getting in the way?

Here is my code:

OrderSearchCriteria os = new OrderSearchCriteria();
os.StartDate = Settings.LastDownloadUtc;
os.EndDate = Settings.LastDownloadUtcEnd;
os.IsPlaced = true;
if (!String.IsNullOrEmpty(Settings.OrderStatus))
{
os.PaymentStatus = (OrderPaymentStatus)Enum.Parse(typeof(OrderPaymentStatus), Settings.OrderStatus);
}

Order[] dateOrders = ws.Orders_Order_FindByCriteria(ref token, os);

Edited by user Friday, December 06, 2013 4:34:48 PM(UTC)  | Reason: added more code

Aaron
#6 Posted : Friday, December 06, 2013 6:46:11 PM(UTC)
Aaron

Rank: Administration

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

Thanks: 6 times
Was thanked: 138 time(s) in 133 post(s)
Originally Posted by: JMA Web Technologies Go to Quoted Post
I tried a new token and it fails. I believe there is an issue with their authentication. The client mentioned it generates some special number with the logins. Maybe their custom authentication provider is getting in the way?


Yeah, that's probably it. You need to use the account number (which is the username) to log in.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
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.

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