DCLWebService
Click here for a complete list of operations.
SubmitBatchOrder
Submit a batch of orders. In case of an order error, the whole batch is rejected.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /webservices/dclwebservice.asmx HTTP/1.1 Host: www.efactory.dclcorp.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://dclcorp.com/SubmitBatchOrder" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SubmitBatchOrder xmlns="http://dclcorp.com/"> <SessionID>string</SessionID> <Batch> <Location>string</Location> <OrderArray> <OrderType01Object> <OrderStatus>HoldOrder or NormalOrder or RushOrder</OrderStatus> <AccountNumber>string</AccountNumber> <OrderNumber>string</OrderNumber> <OrderedDate>string</OrderedDate> <PONumber>string</PONumber> <CustomerNumber>string</CustomerNumber> <AcknowledgementEmail>string</AcknowledgementEmail> <FreightAccount>string</FreightAccount> <ConsigneeNumber>string</ConsigneeNumber> <ShippingCarrier>string</ShippingCarrier> <ShippingService>string</ShippingService> <SystemID>string</SystemID> <ShipTo xsi:nil="true" /> <BillTo xsi:nil="true" /> <OrderSubTotal>decimal</OrderSubTotal> <ShippingAndHandling>decimal</ShippingAndHandling> <SalesTax>decimal</SalesTax> <InternationalHandling>decimal</InternationalHandling> <TotalDue>decimal</TotalDue> <AmountPaid>decimal</AmountPaid> <NetDueCurrency>decimal</NetDueCurrency> <BalanceDueUS>decimal</BalanceDueUS> <InternationalDeclaredValue>decimal</InternationalDeclaredValue> <Insurance>decimal</Insurance> <PaymentType>string</PaymentType> <Terms>string</Terms> <FOB>string</FOB> <PackingListType>int</PackingListType> <PackingListComments>string</PackingListComments> <ShippingInstructions>string</ShippingInstructions> <CustomField1>string</CustomField1> <CustomField2>string</CustomField2> <CustomField3>string</CustomField3> <CustomField4>string</CustomField4> <CustomField5>string</CustomField5> <DetailArray xsi:nil="true" /> </OrderType01Object> <OrderType01Object> <OrderStatus>HoldOrder or NormalOrder or RushOrder</OrderStatus> <AccountNumber>string</AccountNumber> <OrderNumber>string</OrderNumber> <OrderedDate>string</OrderedDate> <PONumber>string</PONumber> <CustomerNumber>string</CustomerNumber> <AcknowledgementEmail>string</AcknowledgementEmail> <FreightAccount>string</FreightAccount> <ConsigneeNumber>string</ConsigneeNumber> <ShippingCarrier>string</ShippingCarrier> <ShippingService>string</ShippingService> <SystemID>string</SystemID> <ShipTo xsi:nil="true" /> <BillTo xsi:nil="true" /> <OrderSubTotal>decimal</OrderSubTotal> <ShippingAndHandling>decimal</ShippingAndHandling> <SalesTax>decimal</SalesTax> <InternationalHandling>decimal</InternationalHandling> <TotalDue>decimal</TotalDue> <AmountPaid>decimal</AmountPaid> <NetDueCurrency>decimal</NetDueCurrency> <BalanceDueUS>decimal</BalanceDueUS> <InternationalDeclaredValue>decimal</InternationalDeclaredValue> <Insurance>decimal</Insurance> <PaymentType>string</PaymentType> <Terms>string</Terms> <FOB>string</FOB> <PackingListType>int</PackingListType> <PackingListComments>string</PackingListComments> <ShippingInstructions>string</ShippingInstructions> <CustomField1>string</CustomField1> <CustomField2>string</CustomField2> <CustomField3>string</CustomField3> <CustomField4>string</CustomField4> <CustomField5>string</CustomField5> <DetailArray xsi:nil="true" /> </OrderType01Object> </OrderArray> </Batch> </SubmitBatchOrder> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SubmitBatchOrderResponse xmlns="http://dclcorp.com/"> <SubmitBatchOrderResult> <ResultStatus> <Error>int</Error> <ErrorStr>string</ErrorStr> <SessionID>string</SessionID> </ResultStatus> <BatchName>string</BatchName> </SubmitBatchOrderResult> </SubmitBatchOrderResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /webservices/dclwebservice.asmx HTTP/1.1 Host: www.efactory.dclcorp.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SubmitBatchOrder xmlns="http://dclcorp.com/"> <SessionID>string</SessionID> <Batch> <Location>string</Location> <OrderArray> <OrderType01Object> <OrderStatus>HoldOrder or NormalOrder or RushOrder</OrderStatus> <AccountNumber>string</AccountNumber> <OrderNumber>string</OrderNumber> <OrderedDate>string</OrderedDate> <PONumber>string</PONumber> <CustomerNumber>string</CustomerNumber> <AcknowledgementEmail>string</AcknowledgementEmail> <FreightAccount>string</FreightAccount> <ConsigneeNumber>string</ConsigneeNumber> <ShippingCarrier>string</ShippingCarrier> <ShippingService>string</ShippingService> <SystemID>string</SystemID> <ShipTo xsi:nil="true" /> <BillTo xsi:nil="true" /> <OrderSubTotal>decimal</OrderSubTotal> <ShippingAndHandling>decimal</ShippingAndHandling> <SalesTax>decimal</SalesTax> <InternationalHandling>decimal</InternationalHandling> <TotalDue>decimal</TotalDue> <AmountPaid>decimal</AmountPaid> <NetDueCurrency>decimal</NetDueCurrency> <BalanceDueUS>decimal</BalanceDueUS> <InternationalDeclaredValue>decimal</InternationalDeclaredValue> <Insurance>decimal</Insurance> <PaymentType>string</PaymentType> <Terms>string</Terms> <FOB>string</FOB> <PackingListType>int</PackingListType> <PackingListComments>string</PackingListComments> <ShippingInstructions>string</ShippingInstructions> <CustomField1>string</CustomField1> <CustomField2>string</CustomField2> <CustomField3>string</CustomField3> <CustomField4>string</CustomField4> <CustomField5>string</CustomField5> <DetailArray xsi:nil="true" /> </OrderType01Object> <OrderType01Object> <OrderStatus>HoldOrder or NormalOrder or RushOrder</OrderStatus> <AccountNumber>string</AccountNumber> <OrderNumber>string</OrderNumber> <OrderedDate>string</OrderedDate> <PONumber>string</PONumber> <CustomerNumber>string</CustomerNumber> <AcknowledgementEmail>string</AcknowledgementEmail> <FreightAccount>string</FreightAccount> <ConsigneeNumber>string</ConsigneeNumber> <ShippingCarrier>string</ShippingCarrier> <ShippingService>string</ShippingService> <SystemID>string</SystemID> <ShipTo xsi:nil="true" /> <BillTo xsi:nil="true" /> <OrderSubTotal>decimal</OrderSubTotal> <ShippingAndHandling>decimal</ShippingAndHandling> <SalesTax>decimal</SalesTax> <InternationalHandling>decimal</InternationalHandling> <TotalDue>decimal</TotalDue> <AmountPaid>decimal</AmountPaid> <NetDueCurrency>decimal</NetDueCurrency> <BalanceDueUS>decimal</BalanceDueUS> <InternationalDeclaredValue>decimal</InternationalDeclaredValue> <Insurance>decimal</Insurance> <PaymentType>string</PaymentType> <Terms>string</Terms> <FOB>string</FOB> <PackingListType>int</PackingListType> <PackingListComments>string</PackingListComments> <ShippingInstructions>string</ShippingInstructions> <CustomField1>string</CustomField1> <CustomField2>string</CustomField2> <CustomField3>string</CustomField3> <CustomField4>string</CustomField4> <CustomField5>string</CustomField5> <DetailArray xsi:nil="true" /> </OrderType01Object> </OrderArray> </Batch> </SubmitBatchOrder> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SubmitBatchOrderResponse xmlns="http://dclcorp.com/"> <SubmitBatchOrderResult> <ResultStatus> <Error>int</Error> <ErrorStr>string</ErrorStr> <SessionID>string</SessionID> </ResultStatus> <BatchName>string</BatchName> </SubmitBatchOrderResult> </SubmitBatchOrderResponse> </soap12:Body> </soap12:Envelope>