Sample SOAP Request and Response from QHOS
Sample SOAP Request and Response from QHOS
This sample XML is for the VerifiyAccess Method from the Driver.asmx WSDL https://hos.omnitracs.com/QHOSWSNA/driver.asmx.
The <Username> and <Password> values will be replaced by the credentials setup on the QHOS Website under the Administration->Web Service User page.
Request
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken> <wsse:Username>username@Company Name</wsse:Username> <wsse:Password>thePassword</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soap:Header> <soap:Body> <VerifyAccess xmlns="http://www.omnitracs.com" /> </soap:Body> < /soap:Envelope>
Response
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <wsa:Action>www.omnitracs.com/VerifyAccessResponse</wsa:Action> </env:Header> <soap:Body> <VerifyAccessResponse xmlns="http://www.omnitracs.com"> <VerifyAccessResult>true</VerifyAccessResult> </VerifyAccessResponse> </soap:Body> < /soap:Envelope>