OrderGroup.AddXMLAsOrderForm Method (PIA)
Commerce Server 2002
Use this method to add items previously saved as XML (by using the GetOrderformAsXML method) back into an OrderGroup object.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Orders … Public Sub AddXMLAsOrderForm( strXML As String, nXMLLocale As Integer, Optional strOrderFormName As Object )
[C#]
using Microsoft.CommerceServer.Interop.Orders; … public void AddXMLAsOrderForm( string strXML, int nXMLLocale, object strOrderFormName );
Parameters
[Visual Basic .NET]
- strXML
- A String that specifies the XML string containing the line items to add.
- nXMLLocale
- An Integer that specifies the locale to use in the XML string conversion.
- strOrderFormName
- An Object that specifies the OrderForm object name to add.
[C#]
- strXML
- A string that specifies the XML string containing the line items to add.
- nXMLLocale
- An int that specifies the locale to use in the XML string conversion.
- strOrderFormName
- An object that specifies the OrderForm object name to add.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
Note
- Use of the DictionaryXMLTransforms object is recommended when exchanging XML through BizTalk Server. The DictionaryXMLTransforms object allows you to write out XML to a well-defined schema.
[Visual Basic .NET]
Example
' oOrderGroup is a Commerce.OrderGroup Object ' sXMLString is an string containing order-form data ' lLocale is a long specifying the locale to use in conversion oOrderGroup.AddXMLAsOrderForm(sXMLString, lLocale)
Requirements
Namespace: Microsoft.CommerceServer.Interop.Orders
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Interop.Orders.Requisition.dll
See Also
Copyright © 2005 Microsoft Corporation.All rights reserved.
