MdxClientService
Click here for a complete list of operations.
UploadASN
Upload an ASN Document to Microhouse Document Exchange
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 /MdxClientService.asmx HTTP/1.1
Host: mdxclientservicetest.microhouse.com.au
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mdxclientservice.microhouse.com.au/MdxClientService/UploadASN"
<?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>
<AuthHeader xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap:Header>
<soap:Body>
<UploadASN xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<Document>
<Details>
<Detail>
<Guid>guid</Guid>
<Sequence>int</Sequence>
<Item>string</Item>
<ItemType>string</ItemType>
<Description>string</Description>
<Memo>string</Memo>
<Size>string</Size>
<Qty>float</Qty>
<UnitExTax>decimal</UnitExTax>
</Detail>
<Detail>
<Guid>guid</Guid>
<Sequence>int</Sequence>
<Item>string</Item>
<ItemType>string</ItemType>
<Description>string</Description>
<Memo>string</Memo>
<Size>string</Size>
<Qty>float</Qty>
<UnitExTax>decimal</UnitExTax>
</Detail>
</Details>
<Guid>guid</Guid>
<DocumentType>string</DocumentType>
<Document>string</Document>
<InvoiceDate>dateTime</InvoiceDate>
<PO>string</PO>
<Customer>string</Customer>
<ShipCustomer>string</ShipCustomer>
<Comment>string</Comment>
<DocumentTotalIncTax>decimal</DocumentTotalIncTax>
</Document>
</UploadASN>
</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>
<UploadASNResponse xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<UploadASNResult>
<Status>string</Status>
<TransactionID>int</TransactionID>
<Errors>
<string>string</string>
<string>string</string>
</Errors>
</UploadASNResult>
</UploadASNResponse>
</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 /MdxClientService.asmx HTTP/1.1
Host: mdxclientservicetest.microhouse.com.au
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>
<AuthHeader xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<UploadASN xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<Document>
<Details>
<Detail>
<Guid>guid</Guid>
<Sequence>int</Sequence>
<Item>string</Item>
<ItemType>string</ItemType>
<Description>string</Description>
<Memo>string</Memo>
<Size>string</Size>
<Qty>float</Qty>
<UnitExTax>decimal</UnitExTax>
</Detail>
<Detail>
<Guid>guid</Guid>
<Sequence>int</Sequence>
<Item>string</Item>
<ItemType>string</ItemType>
<Description>string</Description>
<Memo>string</Memo>
<Size>string</Size>
<Qty>float</Qty>
<UnitExTax>decimal</UnitExTax>
</Detail>
</Details>
<Guid>guid</Guid>
<DocumentType>string</DocumentType>
<Document>string</Document>
<InvoiceDate>dateTime</InvoiceDate>
<PO>string</PO>
<Customer>string</Customer>
<ShipCustomer>string</ShipCustomer>
<Comment>string</Comment>
<DocumentTotalIncTax>decimal</DocumentTotalIncTax>
</Document>
</UploadASN>
</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>
<UploadASNResponse xmlns="http://mdxclientservice.microhouse.com.au/MdxClientService/">
<UploadASNResult>
<Status>string</Status>
<TransactionID>int</TransactionID>
<Errors>
<string>string</string>
<string>string</string>
</Errors>
</UploadASNResult>
</UploadASNResponse>
</soap12:Body>
</soap12:Envelope>