WS_CustMaterials


Click here for a complete list of operations.

CreateMaterialPricingByTable

Update Material Rate for Service, the table will have the following fields: Field NameDescription CM09_CUSTCustomer Number. [int max 10 digit] CM09_SITESite Number. [int max 4 digit] CM09_SERVService Number. [int max 3 digit] CM09_MATLMaterial Code [Max 2 characters] CM09_RATEMaterial Rate. [decimal(18,2)] CM09_UOMMaterial Rate UOM. [Max 2 characters] CM09_INOTEInvoice Description. [Max 40 characters] CM09_EFFDEffective Date. [smalldatetime] CM09_DSTEDisposal Site CM09_TYPEMaterial Rate Type [Max 1 characters] CM09_CAPMaterial Rate Cap [decimal(18,2)] CM09_PRICETYPEMaterial Price Type [Max 1 characters] CM09_FMLAMaterial Price Formula [Max 80 characters] rateChangeReason2 digit code from CD12 Used in Logging Tables [2 characters] Returns Material rate ID for the created rate

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

<?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>
    <CreateMaterialPricingByTable xmlns="http://www.trux.com">
      <CompCode>string</CompCode>
      <dtMaterialRate>xmlxml</dtMaterialRate>
    </CreateMaterialPricingByTable>
  </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>
    <CreateMaterialPricingByTableResponse xmlns="http://www.trux.com">
      <CreateMaterialPricingByTableResult>int</CreateMaterialPricingByTableResult>
    </CreateMaterialPricingByTableResponse>
  </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_CustMaterials/WS_CustMaterials.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>
    <CreateMaterialPricingByTable xmlns="http://www.trux.com">
      <CompCode>string</CompCode>
      <dtMaterialRate>xmlxml</dtMaterialRate>
    </CreateMaterialPricingByTable>
  </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>
    <CreateMaterialPricingByTableResponse xmlns="http://www.trux.com">
      <CreateMaterialPricingByTableResult>int</CreateMaterialPricingByTableResult>
    </CreateMaterialPricingByTableResponse>
  </soap12:Body>
</soap12:Envelope>