Web Service de Integração SITX9

Click here for a complete list of operations.

Set_CadastroRota

Método para cadastar uma nova Rota ou alterar uma existente

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_CadastroRota xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <DadosRota>
        <iCodigo>int</iCodigo>
        <sNomeRota>string</sNomeRota>
        <sApelido>string</sApelido>
        <sAtivo>string</sAtivo>
        <sIBGE_Origem>string</sIBGE_Origem>
        <sLat_Origem>string</sLat_Origem>
        <sLng_Origem>string</sLng_Origem>
        <sIBGE_Destino>string</sIBGE_Destino>
        <sLat_Destino>string</sLat_Destino>
        <sLng_Destino>string</sLng_Destino>
        <PontosPassagem>
          <stPontosPassagem>
            <iSequencia>int</iSequencia>
            <sLatitude>string</sLatitude>
            <sLongitude>string</sLongitude>
            <sNmReferencia>string</sNmReferencia>
          </stPontosPassagem>
          <stPontosPassagem>
            <iSequencia>int</iSequencia>
            <sLatitude>string</sLatitude>
            <sLongitude>string</sLongitude>
            <sNmReferencia>string</sNmReferencia>
          </stPontosPassagem>
        </PontosPassagem>
      </DadosRota>
    </Set_CadastroRota>
  </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_CadastroRotaResponse xmlns="http://tempuri.org/">
      <Set_CadastroRotaResult>
        <iCodigo>int</iCodigo>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Set_CadastroRotaResult>
    </Set_CadastroRotaResponse>
  </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_CadastroRota xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
      <DadosRota>
        <iCodigo>int</iCodigo>
        <sNomeRota>string</sNomeRota>
        <sApelido>string</sApelido>
        <sAtivo>string</sAtivo>
        <sIBGE_Origem>string</sIBGE_Origem>
        <sLat_Origem>string</sLat_Origem>
        <sLng_Origem>string</sLng_Origem>
        <sIBGE_Destino>string</sIBGE_Destino>
        <sLat_Destino>string</sLat_Destino>
        <sLng_Destino>string</sLng_Destino>
        <PontosPassagem>
          <stPontosPassagem>
            <iSequencia>int</iSequencia>
            <sLatitude>string</sLatitude>
            <sLongitude>string</sLongitude>
            <sNmReferencia>string</sNmReferencia>
          </stPontosPassagem>
          <stPontosPassagem>
            <iSequencia>int</iSequencia>
            <sLatitude>string</sLatitude>
            <sLongitude>string</sLongitude>
            <sNmReferencia>string</sNmReferencia>
          </stPontosPassagem>
        </PontosPassagem>
      </DadosRota>
    </Set_CadastroRota>
  </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_CadastroRotaResponse xmlns="http://tempuri.org/">
      <Set_CadastroRotaResult>
        <iCodigo>int</iCodigo>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Set_CadastroRotaResult>
    </Set_CadastroRotaResponse>
  </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
   }
   "DadosRota":
   {
     "iCodigo": int
     "sNomeRota": string
     "sApelido": string
     "sAtivo": string
     "sIBGE_Origem": string
     "sLat_Origem": string
     "sLng_Origem": string
     "sIBGE_Destino": string
     "sLat_Destino": string
     "sLng_Destino": string
     "PontosPassagem":
     [
       {         
         "iSequencia": int
         "sLatitude": string
         "sLongitude": string
         "sNmReferencia": string
       },
       {         
         "iSequencia": int
         "sLatitude": string
         "sLongitude": string
         "sNmReferencia": string
       }
     ]
   }
}

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

{

   "iCodigo": int
   "Retorno":
   [
     {       
       "sCode": string
       "sResult": string
     },
     {       
       "sCode": string
       "sResult": string
     }
   ]
}