Commerce Server General - Creating Orders from Utility Server (Commerce Server APIs Only)

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2005 > Creating Orders from Utility Server (Commerce Server APIs Only)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Creating Orders from Utility Server (Commerce Server APIs Only)
Billy Sachse

2005-05-16, 5:50 pm

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 analogous
for orders.

Ravi Shankar

2005-05-16, 5: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 analogous
> for orders.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com