Web Service de Integração SITX9

Click here for a complete list of operations.

Get_ConsultaPosicao

Método para consultar a última posição do veículo

Test

The test form is not available with struct, array or byref parameter types. Please use a SOAP 1.1 or 1.2 compliant client program for testing of your web service.

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 /NOXWebService/IntegraGR.wso HTTP/1.1
Host: www.noxgr.srv.br
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Get_ConsultaPosicao xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <DadosCP>
        <nCd_CnpjUnidNeg>string</nCd_CnpjUnidNeg>
        <sCd_Placas>
          <string>string</string>
          <string>string</string>
        </sCd_Placas>
      </DadosCP>
    </Get_ConsultaPosicao>
  </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:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Get_ConsultaPosicaoResponse xmlns="http://tempuri.org/">
      <Get_ConsultaPosicaoResult>
        <Retorno>
          <sCode>string</sCode>
          <sResult>string</sResult>
        </Retorno>
        <Veiculos>
          <VeiculoCPResp>
            <sCode>string</sCode>
            <sResult>string</sResult>
            <sPlaca>string</sPlaca>
            <dDh_GeracaoEv>dateTime</dDh_GeracaoEv>
            <sCd_Latitude>string</sCd_Latitude>
            <sCd_Longitude>string</sCd_Longitude>
            <sDc_Referencia>string</sDc_Referencia>
            <iSt_Ignicao>int</iSt_Ignicao>
            <nDc_VelocInst>decimal</nDc_VelocInst>
            <Alertas>
              <string>string</string>
              <string>string</string>
            </Alertas>
          </VeiculoCPResp>
          <VeiculoCPResp>
            <sCode>string</sCode>
            <sResult>string</sResult>
            <sPlaca>string</sPlaca>
            <dDh_GeracaoEv>dateTime</dDh_GeracaoEv>
            <sCd_Latitude>string</sCd_Latitude>
            <sCd_Longitude>string</sCd_Longitude>
            <sDc_Referencia>string</sDc_Referencia>
            <iSt_Ignicao>int</iSt_Ignicao>
            <nDc_VelocInst>decimal</nDc_VelocInst>
            <Alertas>
              <string>string</string>
              <string>string</string>
            </Alertas>
          </VeiculoCPResp>
        </Veiculos>
      </Get_ConsultaPosicaoResult>
    </Get_ConsultaPosicaoResponse>
  </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 /NOXWebService/IntegraGR.wso HTTP/1.1
Host: www.noxgr.srv.br
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Get_ConsultaPosicao xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <DadosCP>
        <nCd_CnpjUnidNeg>string</nCd_CnpjUnidNeg>
        <sCd_Placas>
          <string>string</string>
          <string>string</string>
        </sCd_Placas>
      </DadosCP>
    </Get_ConsultaPosicao>
  </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:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Get_ConsultaPosicaoResponse xmlns="http://tempuri.org/">
      <Get_ConsultaPosicaoResult>
        <Retorno>
          <sCode>string</sCode>
          <sResult>string</sResult>
        </Retorno>
        <Veiculos>
          <VeiculoCPResp>
            <sCode>string</sCode>
            <sResult>string</sResult>
            <sPlaca>string</sPlaca>
            <dDh_GeracaoEv>dateTime</dDh_GeracaoEv>
            <sCd_Latitude>string</sCd_Latitude>
            <sCd_Longitude>string</sCd_Longitude>
            <sDc_Referencia>string</sDc_Referencia>
            <iSt_Ignicao>int</iSt_Ignicao>
            <nDc_VelocInst>decimal</nDc_VelocInst>
            <Alertas>
              <string>string</string>
              <string>string</string>
            </Alertas>
          </VeiculoCPResp>
          <VeiculoCPResp>
            <sCode>string</sCode>
            <sResult>string</sResult>
            <sPlaca>string</sPlaca>
            <dDh_GeracaoEv>dateTime</dDh_GeracaoEv>
            <sCd_Latitude>string</sCd_Latitude>
            <sCd_Longitude>string</sCd_Longitude>
            <sDc_Referencia>string</sDc_Referencia>
            <iSt_Ignicao>int</iSt_Ignicao>
            <nDc_VelocInst>decimal</nDc_VelocInst>
            <Alertas>
              <string>string</string>
              <string>string</string>
            </Alertas>
          </VeiculoCPResp>
        </Veiculos>
      </Get_ConsultaPosicaoResult>
    </Get_ConsultaPosicaoResponse>
  </soap12:Body>
</soap12:Envelope>

JSON

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

POST /NOXWebService/IntegraGR.wso HTTP/1.1
Host: www.noxgr.srv.br
Content-Type: application/json; charset=utf-8
Content-Length: length
{
   "Login":
   {
     "sUserName": string
     "sPassWord": string
     "sToken": string
   }
   "DadosCP":
   {
     "nCd_CnpjUnidNeg": string
     "sCd_Placas":
     [
      string,
      string
     ]
   }
}

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{

   "Retorno":
   {
     "sCode": string
     "sResult": string
   }
   "Veiculos":
   [
     {       
       "sCode": string
       "sResult": string
       "sPlaca": string
       "dDh_GeracaoEv": dateTime
       "sCd_Latitude": string
       "sCd_Longitude": string
       "sDc_Referencia": string
       "iSt_Ignicao": int
       "nDc_VelocInst": decimal
       "Alertas":
       [
        string,
        string
       ]
     },
     {       
       "sCode": string
       "sResult": string
       "sPlaca": string
       "dDh_GeracaoEv": dateTime
       "sCd_Latitude": string
       "sCd_Longitude": string
       "sDc_Referencia": string
       "iSt_Ignicao": int
       "nDc_VelocInst": decimal
       "Alertas":
       [
        string,
        string
       ]
     }
   ]
}