WS_CreateSite


Click here for a complete list of operations.

CreateSite

Create Site, using Authentication Key. Customer Number [10 digits, unpadded] Site Number [4 digits, unpadded] Site Name Address Number Unit Number Street Prefix Road Name Direction Address Line 2 Address Line 3 Address Line 4 Address Line 5 City State Postal/Zip Code Phone Number Fax Number Primary Contact ID Business Code [2 characters] Mailing Name Mailing Address Line 1 Mailing Address Line 2 Mailing Address Line 3 Mailing Address Line 4 Mailing City Mailing Postal/Zip Code Mailing State/Province Tax Jurisdiction [2 characters] Tax Exempt License 1 Tax Exempt License 2 Closed Date Credit Limit Credit Warning Amount Contract Number Suspend Reason [2 characters] Suspend Date Currency [3 characters, unpadded] Purchase Order Number Contract Date Expiration Date Contract Signed ['False' = Not Signed, 'True' = Signed] Service Between Start Time Service Between End Time Sales Representative [2 characters] Store ID Number of Work Order Copies to Print Cash On Demand ['False' = COD, 'True' = Non COD] Initial Term Renewal Term Email Returns 'Customer Number - Site Number' [E.g. '111111-2222']

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
cust:
site:
name:
anum:
unit:
spfx:
road:
nesw:
add2:
add3:
add4:
add5:
city:
stat:
pzip:
phon:
fax:
cont:
bucd:
mnam:
mad1:
mad2:
mad3:
mad4:
mcity:
mpzip:
mstat:
txju:
txe1:
txe2:
edte:
cred:
warn:
agre:
susrea:
susdate:
curr:
ponum:
adte:
xdte:
contractsigned:
stim:
etim:
srep:
storedid:
wocopies:
cod:
initialterm:
renewterm:
email:

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

<?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>
    <CreateSite xmlns="http://www.trux.com">
      <cust>string</cust>
      <site>string</site>
      <name>string</name>
      <anum>string</anum>
      <unit>string</unit>
      <spfx>string</spfx>
      <road>string</road>
      <nesw>string</nesw>
      <add2>string</add2>
      <add3>string</add3>
      <add4>string</add4>
      <add5>string</add5>
      <city>string</city>
      <stat>string</stat>
      <pzip>string</pzip>
      <phon>string</phon>
      <fax>string</fax>
      <cont>string</cont>
      <bucd>string</bucd>
      <mnam>string</mnam>
      <mad1>string</mad1>
      <mad2>string</mad2>
      <mad3>string</mad3>
      <mad4>string</mad4>
      <mcity>string</mcity>
      <mpzip>string</mpzip>
      <mstat>string</mstat>
      <txju>string</txju>
      <txe1>string</txe1>
      <txe2>string</txe2>
      <edte>string</edte>
      <cred>string</cred>
      <warn>string</warn>
      <agre>string</agre>
      <susrea>string</susrea>
      <susdate>string</susdate>
      <curr>string</curr>
      <ponum>string</ponum>
      <adte>string</adte>
      <xdte>string</xdte>
      <contractsigned>string</contractsigned>
      <stim>string</stim>
      <etim>string</etim>
      <srep>string</srep>
      <storedid>string</storedid>
      <wocopies>string</wocopies>
      <cod>string</cod>
      <initialterm>string</initialterm>
      <renewterm>string</renewterm>
      <email>string</email>
    </CreateSite>
  </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>
    <CreateSiteResponse xmlns="http://www.trux.com">
      <CreateSiteResult>string</CreateSiteResult>
    </CreateSiteResponse>
  </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_CreateSite/WS_CreateSite.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>
    <CreateSite xmlns="http://www.trux.com">
      <cust>string</cust>
      <site>string</site>
      <name>string</name>
      <anum>string</anum>
      <unit>string</unit>
      <spfx>string</spfx>
      <road>string</road>
      <nesw>string</nesw>
      <add2>string</add2>
      <add3>string</add3>
      <add4>string</add4>
      <add5>string</add5>
      <city>string</city>
      <stat>string</stat>
      <pzip>string</pzip>
      <phon>string</phon>
      <fax>string</fax>
      <cont>string</cont>
      <bucd>string</bucd>
      <mnam>string</mnam>
      <mad1>string</mad1>
      <mad2>string</mad2>
      <mad3>string</mad3>
      <mad4>string</mad4>
      <mcity>string</mcity>
      <mpzip>string</mpzip>
      <mstat>string</mstat>
      <txju>string</txju>
      <txe1>string</txe1>
      <txe2>string</txe2>
      <edte>string</edte>
      <cred>string</cred>
      <warn>string</warn>
      <agre>string</agre>
      <susrea>string</susrea>
      <susdate>string</susdate>
      <curr>string</curr>
      <ponum>string</ponum>
      <adte>string</adte>
      <xdte>string</xdte>
      <contractsigned>string</contractsigned>
      <stim>string</stim>
      <etim>string</etim>
      <srep>string</srep>
      <storedid>string</storedid>
      <wocopies>string</wocopies>
      <cod>string</cod>
      <initialterm>string</initialterm>
      <renewterm>string</renewterm>
      <email>string</email>
    </CreateSite>
  </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>
    <CreateSiteResponse xmlns="http://www.trux.com">
      <CreateSiteResult>string</CreateSiteResult>
    </CreateSiteResponse>
  </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/WSCust_CreateSite/WS_CreateSite.asmx/CreateSite?cust=string&site=string&name=string&anum=string&unit=string&spfx=string&road=string&nesw=string&add2=string&add3=string&add4=string&add5=string&city=string&stat=string&pzip=string&phon=string&fax=string&cont=string&bucd=string&mnam=string&mad1=string&mad2=string&mad3=string&mad4=string&mcity=string&mpzip=string&mstat=string&txju=string&txe1=string&txe2=string&edte=string&cred=string&warn=string&agre=string&susrea=string&susdate=string&curr=string&ponum=string&adte=string&xdte=string&contractsigned=string&stim=string&etim=string&srep=string&storedid=string&wocopies=string&cod=string&initialterm=string&renewterm=string&email=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"?>
<string xmlns="http://www.trux.com">string</string>

HTTP POST

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

POST /TruxWeb/WSCust_CreateSite/WS_CreateSite.asmx/CreateSite HTTP/1.1
Host: payments.robinsonwasteservices.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

cust=string&site=string&name=string&anum=string&unit=string&spfx=string&road=string&nesw=string&add2=string&add3=string&add4=string&add5=string&city=string&stat=string&pzip=string&phon=string&fax=string&cont=string&bucd=string&mnam=string&mad1=string&mad2=string&mad3=string&mad4=string&mcity=string&mpzip=string&mstat=string&txju=string&txe1=string&txe2=string&edte=string&cred=string&warn=string&agre=string&susrea=string&susdate=string&curr=string&ponum=string&adte=string&xdte=string&contractsigned=string&stim=string&etim=string&srep=string&storedid=string&wocopies=string&cod=string&initialterm=string&renewterm=string&email=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

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