WS_Cust


Click here for a complete list of operations.

GetSites

Get Details for all Sites for specified Customer Number Company Code [2 characters] Customer Number [10 digits, unpadded] Returns Details for all Sites for specified Customer Number Field NameDescription CM04_CUSTCustomer Number [Max 10 characters] CM04_SITESite Number [Max 4 characters] CM04_NAMESite Name CM04_ANUMAddress Number CM04_UNITSite Unit Number CM04_SPFXSite Street Prefix CM04_ROADSite Road Name CM04_NESWSite Direction CM04_ADD2Address Line 2 CM04_ADD3Address Line 3 CM04_ADD4Address Line 4 CM04_ADD5Address Line 5 CM04_CITYCity CM04_STATState [2 characters] CM04_PZIPPostal/Zip Code CM04_PHONPhone Number CM04_FAXFax Number CM04_CONTPrimary Contact ID CM04_BUCDBusiness Code [2 characters] CM04_NOT1Note 1 CM04_PRT1Note 1 Print ['0' = Does Not Print, '1' = Print] CM04_NOT2Note 2 CM04_PRT2Note 2 Print ['0' = Does Not Print, '1' = Print] CM04_MAPMap Code [Max 3 characters] CM04_MCOLMap Column Number ['1' to '26'] CM04_MROWMap Row Number ['A' to 'Z') CM04_MNAMMailing Name CM04_MAD1Mailing Address Line 1 CM04_MAD2Mailing Address Line 2 CM04_MAD3Mailing Address Line 3 CM04_MAD4Mailing Address Line 4 CM04_MCITMailing City CM04_MSTAMailing State/Province CM04_MPZIMailing Postal/Zip Code CM04_MCARMailing Delivery/Carrier [Max 4 characters Delivery and 2 characters Carrier] CM04_TXJUTax Jurisdiction [2 characters] CM04_TXE1Tax Exempt License 1 CM04_TXE2Tax Exempt License 2 CM04_EDTEClosed Date CM04_CREDCredit Limit CM04_WARNCredit Warning CM04_AGREContract Number CM04_LONGLongitude CM04_LATTLatitude CM04_SUSREASuspend Reason [2 characters] CM04_SUSDATESuspend Date CM04_CCARDTYPECredit Card Type [2 characters] CM04_CCARDNUMCredit Card Number CM04_CCARDEXPCredit Card Expiration Date CM04_CURRCurrency [Max 3 characters] CM04_INVNOTEInvoice Note CM04_INVNOTEEXPIRESInvoice Note Expiration Date CM04_FLD1Custom Field 1 CM04_FLD2Custom Field 2 CM04_FLD3Custom Field 3 CM04_FLD4Custom Field 4 CM04_FLD5Custom Field 5 CM04_FLD6Custom Field 6 CM04_FLD7Custom Field 7 CM04_FLD8Custom Field 8 CM04_FLD9Custom Field 9 CM04_FLD10Custom Field 10 CM04_PCLASSPrice Class ID CM04_ADTEContract Date CM04_XDTEContract Expiration Date CM04_PONUMPurchase Order Number CM04_CONTRACTSIGNEDContract Signed ['0' = Not Signed, '1' = Signed] CM04_EMAILEmail CM04_STIMService Between Start Time CM04_ETIMService Between End Time CM04_SREPSales Representative CM04_STOREDIDStore ID CM04_WOCOPIESNumber of Work Order Copies to Print CM04_CODCash On Demand ['0' = COD, '1' = Non COD] CM04_LOSTLost To [2 characters] CM04_INITALTERMInitial Term CM04_RENEWTERMRenewal Term SITEINFOSite Address Summary (E.g. Site Number, Site Address, etc.)

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
sLoginComp:
sCust:

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/WSCustomer_Cust/WS_Cust.asmx HTTP/1.1
Host: payments.robinsonwasteservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.trux.com/GetSites"

<?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>
    <GetSites xmlns="http://www.trux.com/">
      <sLoginComp>string</sLoginComp>
      <sCust>string</sCust>
    </GetSites>
  </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>
    <GetSitesResponse xmlns="http://www.trux.com/">
      <GetSitesResult>xmlxml</GetSitesResult>
    </GetSitesResponse>
  </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/WSCustomer_Cust/WS_Cust.asmx HTTP/1.1
Host: payments.robinsonwasteservices.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>
    <GetSites xmlns="http://www.trux.com/">
      <sLoginComp>string</sLoginComp>
      <sCust>string</sCust>
    </GetSites>
  </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>
    <GetSitesResponse xmlns="http://www.trux.com/">
      <GetSitesResult>xmlxml</GetSitesResult>
    </GetSitesResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /TruxWeb/WSCustomer_Cust/WS_Cust.asmx/GetSites?sLoginComp=string&sCust=string HTTP/1.1
Host: payments.robinsonwasteservices.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://www.trux.com/">xmlxml</DataTable>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /TruxWeb/WSCustomer_Cust/WS_Cust.asmx/GetSites HTTP/1.1
Host: payments.robinsonwasteservices.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

sLoginComp=string&sCust=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://www.trux.com/">xmlxml</DataTable>