WS_OnlineBin
Click here for a complete list of operations.
ProcessCashOrder
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 /TruxWeb/WSCust_OnlineBin/WS_OnlineBin.asmx HTTP/1.1
Host: trux.organicdiversion.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.trux.com/ProcessCashOrder"
<?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>
<Credentials xmlns="http://www.trux.com/">
<sAccountID>string</sAccountID>
<sAuthCode>string</sAuthCode>
<isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
<areParametersEncrypted>boolean</areParametersEncrypted>
<encryptedParameterNames>
<string>string</string>
<string>string</string>
</encryptedParameterNames>
<requireEncryptedResponse>boolean</requireEncryptedResponse>
<encryptionMethod>string</encryptionMethod>
<keyInfo>
<encryptedKey>string</encryptedKey>
<encryptionPublicKey>string</encryptionPublicKey>
</keyInfo>
<publicAuthKey>string</publicAuthKey>
</Credentials>
</soap:Header>
<soap:Body>
<ProcessCashOrder xmlns="http://www.trux.com/">
<customerNumber>int</customerNumber>
<siteNumber>int</siteNumber>
<companyCode>string</companyCode>
<zone>string</zone>
<firstName>string</firstName>
<lastName>string</lastName>
<phone>string</phone>
<email>string</email>
<siteName>string</siteName>
<latitude>double</latitude>
<longitude>double</longitude>
<address1>string</address1>
<address2>string</address2>
<city>string</city>
<state>string</state>
<pzip>string</pzip>
<mailingaddress1>string</mailingaddress1>
<mailingaddress2>string</mailingaddress2>
<mailingcity>string</mailingcity>
<mailingstate>string</mailingstate>
<mailingpzip>string</mailingpzip>
<sitenote>string</sitenote>
<serviceId>int</serviceId>
<dropOffDate>dateTime</dropOffDate>
<pickupDate>dateTime</pickupDate>
<materialId>int</materialId>
<activityId_A>int</activityId_A>
<activityId_U>int</activityId_U>
<cardType>string</cardType>
<cardNumber>string</cardNumber>
<expirationMonth>string</expirationMonth>
<expirationYear>string</expirationYear>
<cvv2>string</cvv2>
<paymentFirstName>string</paymentFirstName>
<paymentLastName>string</paymentLastName>
<paymentAmount>decimal</paymentAmount>
<serviceQuantity>int</serviceQuantity>
<workOrderMessage>string</workOrderMessage>
</ProcessCashOrder>
</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>
<ProcessCashOrderResponse xmlns="http://www.trux.com/">
<ProcessCashOrderResult>int</ProcessCashOrderResult>
</ProcessCashOrderResponse>
</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 /TruxWeb/WSCust_OnlineBin/WS_OnlineBin.asmx HTTP/1.1
Host: trux.organicdiversion.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>
<Credentials xmlns="http://www.trux.com/">
<sAccountID>string</sAccountID>
<sAuthCode>string</sAuthCode>
<isAuthCodeEncrypted>boolean</isAuthCodeEncrypted>
<areParametersEncrypted>boolean</areParametersEncrypted>
<encryptedParameterNames>
<string>string</string>
<string>string</string>
</encryptedParameterNames>
<requireEncryptedResponse>boolean</requireEncryptedResponse>
<encryptionMethod>string</encryptionMethod>
<keyInfo>
<encryptedKey>string</encryptedKey>
<encryptionPublicKey>string</encryptionPublicKey>
</keyInfo>
<publicAuthKey>string</publicAuthKey>
</Credentials>
</soap12:Header>
<soap12:Body>
<ProcessCashOrder xmlns="http://www.trux.com/">
<customerNumber>int</customerNumber>
<siteNumber>int</siteNumber>
<companyCode>string</companyCode>
<zone>string</zone>
<firstName>string</firstName>
<lastName>string</lastName>
<phone>string</phone>
<email>string</email>
<siteName>string</siteName>
<latitude>double</latitude>
<longitude>double</longitude>
<address1>string</address1>
<address2>string</address2>
<city>string</city>
<state>string</state>
<pzip>string</pzip>
<mailingaddress1>string</mailingaddress1>
<mailingaddress2>string</mailingaddress2>
<mailingcity>string</mailingcity>
<mailingstate>string</mailingstate>
<mailingpzip>string</mailingpzip>
<sitenote>string</sitenote>
<serviceId>int</serviceId>
<dropOffDate>dateTime</dropOffDate>
<pickupDate>dateTime</pickupDate>
<materialId>int</materialId>
<activityId_A>int</activityId_A>
<activityId_U>int</activityId_U>
<cardType>string</cardType>
<cardNumber>string</cardNumber>
<expirationMonth>string</expirationMonth>
<expirationYear>string</expirationYear>
<cvv2>string</cvv2>
<paymentFirstName>string</paymentFirstName>
<paymentLastName>string</paymentLastName>
<paymentAmount>decimal</paymentAmount>
<serviceQuantity>int</serviceQuantity>
<workOrderMessage>string</workOrderMessage>
</ProcessCashOrder>
</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>
<ProcessCashOrderResponse xmlns="http://www.trux.com/">
<ProcessCashOrderResult>int</ProcessCashOrderResult>
</ProcessCashOrderResponse>
</soap12:Body>
</soap12:Envelope>