Web Service de Integração SITX9

Click here for a complete list of operations.

Set_LiberacaoHorario

Método para Fazer Liberação de Horario

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>
    <Set_LiberacaoHorario xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <tLiberaHorario>
        <sCd_CnpjUnidNeg>string</sCd_CnpjUnidNeg>
        <sNo_CpfCondutor>string</sNo_CpfCondutor>
        <sCd_Placa>string</sCd_Placa>
        <sCd_PlacaCarretas>
          <string>string</string>
          <string>string</string>
        </sCd_PlacaCarretas>
        <sTp_MotivoLibera>string</sTp_MotivoLibera>
        <sTp_Liberacao>string</sTp_Liberacao>
        <dtLiberadoAte>dateTime</dtLiberadoAte>
        <dtReinicioViagem>dateTime</dtReinicioViagem>
        <sNm_UsuarioLibera>string</sNm_UsuarioLibera>
        <sDc_Obs>string</sDc_Obs>
      </tLiberaHorario>
    </Set_LiberacaoHorario>
  </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>
    <Set_LiberacaoHorarioResponse xmlns="http://tempuri.org/">
      <Set_LiberacaoHorarioResult>
        <iCd_Ocorrencia>int</iCd_Ocorrencia>
        <dtRegistro>dateTime</dtRegistro>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Set_LiberacaoHorarioResult>
    </Set_LiberacaoHorarioResponse>
  </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>
    <Set_LiberacaoHorario xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <tLiberaHorario>
        <sCd_CnpjUnidNeg>string</sCd_CnpjUnidNeg>
        <sNo_CpfCondutor>string</sNo_CpfCondutor>
        <sCd_Placa>string</sCd_Placa>
        <sCd_PlacaCarretas>
          <string>string</string>
          <string>string</string>
        </sCd_PlacaCarretas>
        <sTp_MotivoLibera>string</sTp_MotivoLibera>
        <sTp_Liberacao>string</sTp_Liberacao>
        <dtLiberadoAte>dateTime</dtLiberadoAte>
        <dtReinicioViagem>dateTime</dtReinicioViagem>
        <sNm_UsuarioLibera>string</sNm_UsuarioLibera>
        <sDc_Obs>string</sDc_Obs>
      </tLiberaHorario>
    </Set_LiberacaoHorario>
  </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>
    <Set_LiberacaoHorarioResponse xmlns="http://tempuri.org/">
      <Set_LiberacaoHorarioResult>
        <iCd_Ocorrencia>int</iCd_Ocorrencia>
        <dtRegistro>dateTime</dtRegistro>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Set_LiberacaoHorarioResult>
    </Set_LiberacaoHorarioResponse>
  </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
   }
   "tLiberaHorario":
   {
     "sCd_CnpjUnidNeg": string
     "sNo_CpfCondutor": string
     "sCd_Placa": string
     "sCd_PlacaCarretas":
     [
      string,
      string
     ]
     "sTp_MotivoLibera": string
     "sTp_Liberacao": string
     "dtLiberadoAte": dateTime
     "dtReinicioViagem": dateTime
     "sNm_UsuarioLibera": string
     "sDc_Obs": string
   }
}

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

{

   "iCd_Ocorrencia": int
   "dtRegistro": dateTime
   "Retorno":
   [
     {       
       "sCode": string
       "sResult": string
     },
     {       
       "sCode": string
       "sResult": string
     }
   ]
}