Creating Orders from Utility Server (Commerce Server APIs Only)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Creating Orders from Utility Server (Commerce Server APIs Only)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-05 10:50 PM

Trying to create an OrderContext from a machine that is not a web server (an
d
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.






[ Post a follow-up to this message ]



    RE: Creating Orders from Utility Server (Commerce Server APIs Only)  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:44 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register