AnchorWebService
Click here for a complete list of operations.
SubmitOrderWithStoreandError
Return Boolean and Error(if applicable), given SalesOrder Structure and a String as input.
Return TRUE if successful.
Note: 4Th party Store Information(Name, Street, Address, etc) MUST be submitted
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 /anchorwebservice.asmx HTTP/1.1 Host: soap.anchordistributors.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/AnchorWebservice/AnchorWebservice/SubmitOrderWithStoreandError" <?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:Header> <SecurityHeader xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <Username>int</Username> <Password>string</Password> </SecurityHeader> </soap:Header> <soap:Body> <SubmitOrderWithStoreandError xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <SO> <Invoice_Seq_Id>int</Invoice_Seq_Id> <Bill_to_Seq_Id>int</Bill_to_Seq_Id> <Ship_to_Seq_Id>int</Ship_to_Seq_Id> <PO_Number>string</PO_Number> <Net>decimal</Net> <Flag_Rush_Order>string</Flag_Rush_Order> <Date_Ship_By>string</Date_Ship_By> <Shipping_Charge>decimal</Shipping_Charge> <SO_Detail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> </SO_Detail> <Flag_All_Complete>string</Flag_All_Complete> <Ship_method_Seq_Id>int</Ship_method_Seq_Id> <Store_Name>string</Store_Name> <Store_Message>string</Store_Message> <Store_Street>string</Store_Street> <Store_City>string</Store_City> <Store_State>string</Store_State> <Store_ZIP>string</Store_ZIP> <Store_Country>string</Store_Country> <Intl_Tax_Number>string</Intl_Tax_Number> <Intl_Tax_Description>string</Intl_Tax_Description> <Intl_Tax_Amount>decimal</Intl_Tax_Amount> <Special_Instruction>string</Special_Instruction> <Date_Shipped>string</Date_Shipped> </SO> <sErrorCode>string</sErrorCode> </SubmitOrderWithStoreandError> </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> <SubmitOrderWithStoreandErrorResponse xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <SubmitOrderWithStoreandErrorResult>boolean</SubmitOrderWithStoreandErrorResult> <SO> <Invoice_Seq_Id>int</Invoice_Seq_Id> <Bill_to_Seq_Id>int</Bill_to_Seq_Id> <Ship_to_Seq_Id>int</Ship_to_Seq_Id> <PO_Number>string</PO_Number> <Net>decimal</Net> <Flag_Rush_Order>string</Flag_Rush_Order> <Date_Ship_By>string</Date_Ship_By> <Shipping_Charge>decimal</Shipping_Charge> <SO_Detail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> </SO_Detail> <Flag_All_Complete>string</Flag_All_Complete> <Ship_method_Seq_Id>int</Ship_method_Seq_Id> <Store_Name>string</Store_Name> <Store_Message>string</Store_Message> <Store_Street>string</Store_Street> <Store_City>string</Store_City> <Store_State>string</Store_State> <Store_ZIP>string</Store_ZIP> <Store_Country>string</Store_Country> <Intl_Tax_Number>string</Intl_Tax_Number> <Intl_Tax_Description>string</Intl_Tax_Description> <Intl_Tax_Amount>decimal</Intl_Tax_Amount> <Special_Instruction>string</Special_Instruction> <Date_Shipped>string</Date_Shipped> </SO> <sErrorCode>string</sErrorCode> </SubmitOrderWithStoreandErrorResponse> </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 /anchorwebservice.asmx HTTP/1.1 Host: soap.anchordistributors.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:Header> <SecurityHeader xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <Username>int</Username> <Password>string</Password> </SecurityHeader> </soap12:Header> <soap12:Body> <SubmitOrderWithStoreandError xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <SO> <Invoice_Seq_Id>int</Invoice_Seq_Id> <Bill_to_Seq_Id>int</Bill_to_Seq_Id> <Ship_to_Seq_Id>int</Ship_to_Seq_Id> <PO_Number>string</PO_Number> <Net>decimal</Net> <Flag_Rush_Order>string</Flag_Rush_Order> <Date_Ship_By>string</Date_Ship_By> <Shipping_Charge>decimal</Shipping_Charge> <SO_Detail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> </SO_Detail> <Flag_All_Complete>string</Flag_All_Complete> <Ship_method_Seq_Id>int</Ship_method_Seq_Id> <Store_Name>string</Store_Name> <Store_Message>string</Store_Message> <Store_Street>string</Store_Street> <Store_City>string</Store_City> <Store_State>string</Store_State> <Store_ZIP>string</Store_ZIP> <Store_Country>string</Store_Country> <Intl_Tax_Number>string</Intl_Tax_Number> <Intl_Tax_Description>string</Intl_Tax_Description> <Intl_Tax_Amount>decimal</Intl_Tax_Amount> <Special_Instruction>string</Special_Instruction> <Date_Shipped>string</Date_Shipped> </SO> <sErrorCode>string</sErrorCode> </SubmitOrderWithStoreandError> </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> <SubmitOrderWithStoreandErrorResponse xmlns="http://tempuri.org/AnchorWebservice/AnchorWebservice"> <SubmitOrderWithStoreandErrorResult>boolean</SubmitOrderWithStoreandErrorResult> <SO> <Invoice_Seq_Id>int</Invoice_Seq_Id> <Bill_to_Seq_Id>int</Bill_to_Seq_Id> <Ship_to_Seq_Id>int</Ship_to_Seq_Id> <PO_Number>string</PO_Number> <Net>decimal</Net> <Flag_Rush_Order>string</Flag_Rush_Order> <Date_Ship_By>string</Date_Ship_By> <Shipping_Charge>decimal</Shipping_Charge> <SO_Detail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> <SalesOrderDetail> <Product_Seq_Id>int</Product_Seq_Id> <Order_Quantity>int</Order_Quantity> <Ship_Quantity>int</Ship_Quantity> <Unit_Price>decimal</Unit_Price> <Discount>decimal</Discount> <Extension>decimal</Extension> <Customer_ID>string</Customer_ID> </SalesOrderDetail> </SO_Detail> <Flag_All_Complete>string</Flag_All_Complete> <Ship_method_Seq_Id>int</Ship_method_Seq_Id> <Store_Name>string</Store_Name> <Store_Message>string</Store_Message> <Store_Street>string</Store_Street> <Store_City>string</Store_City> <Store_State>string</Store_State> <Store_ZIP>string</Store_ZIP> <Store_Country>string</Store_Country> <Intl_Tax_Number>string</Intl_Tax_Number> <Intl_Tax_Description>string</Intl_Tax_Description> <Intl_Tax_Amount>decimal</Intl_Tax_Amount> <Special_Instruction>string</Special_Instruction> <Date_Shipped>string</Date_Shipped> </SO> <sErrorCode>string</sErrorCode> </SubmitOrderWithStoreandErrorResponse> </soap12:Body> </soap12:Envelope>