WS_CreateSite
Click here for a complete list of operations.
CreateSite
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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>