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

Notification

Icon
Error

lttia1
#1 Posted : Wednesday, May 9, 2007 8:22:57 AM(UTC)
lttia1

Rank: Member

Joined: 5/3/2007(UTC)
Posts: 8

Hi,



I have tried to integrate bvc5 with my company in-house system (Client server).

Upon creation of product at the in-house system, the product is to be created at bvc5 as well.



I have called bvc_Product_i procedure at the in-house system to insert to bvc5, passing in the following values:

BVIN = Product Grp + Product No (eg. Ecom001)
SKU = Product No (eg. 001)
ProductName = Product No (eg. 001)

Status = 1

TemplateName = "Bvc5"

VariantDisplayMode = 3



The rest of the parameters is either ' ' or 0.



I manage to view the product list including the inserted product at the category page of bvc5 but hit error when acessing ../Products/001__001.aspx.



The error is:

Object reference not set to an instance of an object.[ at BVModules_Controls_VariantsDisplay.GetSelectedProduct(Product currentProduct) at BVModules_ProductTemplates_Bvc5_Product.PageLoad(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ]



Any help are greatly appreciated
Andy Miller
#2 Posted : Wednesday, May 9, 2007 12:47:39 PM(UTC)
Andy Miller

Rank: Member

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

Was thanked: 1 time(s) in 1 post(s)
I don't think it is a good idea to call the stored procedures directly. If you can use a .NET assembly (either directly or through COM), then use the methods in BVSoftware.Bvc5.Core to create the product. Otherwise, use the web services exposed by WebServices3.asmx.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
lttia1
#3 Posted : Tuesday, May 22, 2007 8:27:57 AM(UTC)
lttia1

Rank: Member

Joined: 5/3/2007(UTC)
Posts: 8

Hi,

I have try out the following 2 methods but have encounter some problems:

1) I have been trying to access WebServices3 using VB6. I have manged to get product detail using SOAP method:

eg: objSOAPClient.Catalog_InternalProduct_FindByBvin(objSOAPClient.Login("john", "john123"), "pdtbvin1234")

However, any idea how can I pass in the product type for Catalog_InternalProduct_Insert function?

2) Besides the above, I also have added the WebServices3.asmx as a web reference at VS .Net 2003 as well as the following code at Button1_Click:

Dim webservices As New test.WebServices3
Dim token As test.AuthenticationToken = webservices.Login("john", "john123")

MsgBox(token.UserBvin)

Dim prod As test.Product = webservices.Catalog_InternalProduct_FindByBvin(token, "pdtbvin1234")

The system is able to return me the token.UserBvin but encountered error at the last line of code:

An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll

Additional information: Method WebServices3.Utilities_Translators_DataTableToArray can not be reflected.

Any help are greatly appreciated.

PS: Andy, thanks for the advice.
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.

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