05-16-05 10:50 PM
Hi Billy,
You can use the Interop to get the OrderGroupManager object which has a
similar "initialize" method that requires you to pass the connection string
for the "transactions" site resource.
If you want to instantiate the OrderContext as in
CommerceContext.OrderContext through a program then you'd probably do
something like
using Microsoft.CommerceServer.Runtime
using Microsoft.CommerceServer.Runtime.Configuration
using Microsoft.CommerceServer.Runtime.Diagonistics
using Microsoft.CommerceServer.Runtime.Orders
Dim oSiteConfig as CommerceResourceCollection
oSiteConfig = new CommerceResourceCollection(<sitename> )
Dim sTransactionConnStr as String =
oSiteConfig.Item("Transactions").Item("connstr_db_Transactions").value
Dim oDebugContext as ConsoleDebugContext = new ConsoleDebugContext()
Dim oOrderContext as OrderContext = new OrderContext(sTransactionConnStr,
oDebugContext)
!! Done...
Have fun
"Billy Sachse" wrote:
> Trying to create an OrderContext from a machine that is not a web server (
and
> does not have a way to point to CommerceContext the same way as the web
> application does).
>
> We have accomplished this for catalogs by using interop via the
> CatalogManager.Initialize() method. We are looking for something analogou
s
> for orders.
>
[ Post a follow-up to this message ]
|