Partager via


AcceptBasket Method

Validates the specified basket with the specified pipeline.

Namespace:  Microsoft.CommerceServer.Orders.WebService
Assembly:  Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function AcceptBasket ( _
    basketXml As XmlElement, _
    pipelineName As String, _
    saveOrder As Boolean _
) As XmlElement
'Usage
Dim instance As OrdersWebService
Dim basketXml As XmlElement
Dim pipelineName As String
Dim saveOrder As Boolean
Dim returnValue As XmlElement

returnValue = instance.AcceptBasket(basketXml, _
    pipelineName, saveOrder)
[WebMethodAttribute]
public virtual XmlElement AcceptBasket(
    XmlElement basketXml,
    string pipelineName,
    bool saveOrder
)
[WebMethodAttribute]
public:
virtual XmlElement^ AcceptBasket(
    XmlElement^ basketXml, 
    String^ pipelineName, 
    bool saveOrder
)
public function AcceptBasket(
    basketXml : XmlElement, 
    pipelineName : String, 
    saveOrder : boolean
) : XmlElement

Parameters

  • saveOrder
    Type: System..::.Boolean
    Specifies whether the resulting Order should be saved into the database. true to save to the database; otherwise false.

Return Value

Type: System.Xml..::.XmlElement
Returns the XML of the Basket or the PurchaseOrder.

Remarks

If the saveOrder is true then after validation the basket will be converted into a purchase order and will be saved into database

Permissions

See Also

Reference

OrdersWebService Class

OrdersWebService Members

Microsoft.CommerceServer.Orders.WebService Namespace