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

Notification

Icon
Error

smartdom
#1 Posted : Sunday, November 19, 2006 9:10:57 AM(UTC)
smartdom

Rank: Member

Joined: 11/15/2006(UTC)
Posts: 52

Hi,

I require to do by code what I can do with the admin section and the Web Service appears to provide methods for various tasks that can be done via the admin section.

Is there any documentation, tutorials, tips, etc for the BV Commerce Web Service?

Is there anyone using it for direct management of the database?

Is there anything that the Web Service can't do that the admin section can?

Are there any known issues?

Thanks in advance for any help.
Andy Miller
#2 Posted : Sunday, November 19, 2006 8:24:19 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
I use web services to to perform many of the admin tasks related to shipping in one of my products. There is nothing that the admin UI can do that web service can not as of SP1 (within my area of interest).

I am not aware of any documentation, tutorials, etc. for the web service. I did all of my work by inspection (reading the BV code).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
smartdom
#3 Posted : Monday, November 20, 2006 4:20:22 AM(UTC)
smartdom

Rank: Member

Joined: 11/15/2006(UTC)
Posts: 52

Thanks Andy,

It's nice to know that the web service is a viable choice for direct management of the db.

Where I would find documentation helpful is when a method that would seem obvious to use doesn't do what I would think it would. Some methods can only be used (ie, work) under certain conditions.

For example, when creating a second product choice control. I have to obtain a product object using method "Catalog_InternalProduct_FindByChoiceIdLight" as the bvc_Product table is changed such that the original SKU is no longer "valid". Have you encountered this?
Andy Miller
#4 Posted : Monday, November 20, 2006 8:07:57 AM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Hello Dom,
I agree that some of the methods are not intuitive and it took a while to figure out how they worked. Unfortunately I did not even look at the product editing methods.



The biggest difference between using a method directly vs using the web method is that the instance variables are not updated for you via the web method. For example lets say there was a method called Orders.Order.MarkCompleteAndUpdate(Order o) that returned true if the update is successful. We could assume that code like this would work:





Code:

Order 0 = Order.FindByBvin(bvin);

if (Order.MarkCompleteAndUpdate(o))

Assert(o.OrderStatus == Complete);

But via the web service, we would have to do something like this:


Code:

Order o = webservice3.Orders_Order_FindByBvin(token, bvin);

if (webservice3.Orders_Order_MarkCompleteAndUpdate(token, o))

{

o = webservice3.Orders_Order_FindByBvin(token, bvin);

Assert(o.OrderStatus == Complete);

}
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
smartdom
#5 Posted : Wednesday, November 22, 2006 4:59:43 AM(UTC)
smartdom

Rank: Member

Joined: 11/15/2006(UTC)
Posts: 52

Hi Andy,

Have you encountered pros and cons with use of the Web Service?

Is there anything the Web Service should NOT be used for? For example, product insertion and product management?

Thanks.
Andy Miller
#6 Posted : Wednesday, November 22, 2006 10:38:05 AM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Hello Dom,

I have not looked at the web service methods related to the Catalog very much. There may be limitations lurking in there. I found one when I was developing Shipper Service for BVC5, but BV Software fixed it with SP1. I suspect you are concerned that you are going to invest a lot of time on a project only to find out that a critical piece is missing. My guess is that you will find one or two missing pieces, but nothing critical.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
smartdom
#7 Posted : Thursday, November 23, 2006 4:15:30 PM(UTC)
smartdom

Rank: Member

Joined: 11/15/2006(UTC)
Posts: 52

Andy,

Yep I am doing a major project.

Thanks for your advice and I am upgrading to SP1.
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