Web Service de Integração SITX9

Click here for a complete list of operations.

Get_ConsultaModelo

Método para consultar modelos de veículos

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: vader.streamsoft.com.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_ConsultaModelo xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
    </Get_ConsultaModelo>
  </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_ConsultaModeloResponse xmlns="http://tempuri.org/">
      <Get_ConsultaModeloResult>
        <Marcas>
          <stMarcas>
            <iCd_Marca>int</iCd_Marca>
            <sNm_Marca>string</sNm_Marca>
          </stMarcas>
          <stMarcas>
            <iCd_Marca>int</iCd_Marca>
            <sNm_Marca>string</sNm_Marca>
          </stMarcas>
        </Marcas>
        <Categorias>
          <stCategorias>
            <iCd_Categoria>int</iCd_Categoria>
            <sNm_Categoria>string</sNm_Categoria>
          </stCategorias>
          <stCategorias>
            <iCd_Categoria>int</iCd_Categoria>
            <sNm_Categoria>string</sNm_Categoria>
          </stCategorias>
        </Categorias>
        <Modelos>
          <stModelos>
            <iCd_Modelo>int</iCd_Modelo>
            <sNm_Modelo>string</sNm_Modelo>
            <iCd_Marca>int</iCd_Marca>
            <iCd_Categoria>int</iCd_Categoria>
            <iQt_Eixos>int</iQt_Eixos>
            <sId_Truck>string</sId_Truck>
            <sTp_Tracao>string</sTp_Tracao>
            <sId_VeicTrator>string</sId_VeicTrator>
          </stModelos>
          <stModelos>
            <iCd_Modelo>int</iCd_Modelo>
            <sNm_Modelo>string</sNm_Modelo>
            <iCd_Marca>int</iCd_Marca>
            <iCd_Categoria>int</iCd_Categoria>
            <iQt_Eixos>int</iQt_Eixos>
            <sId_Truck>string</sId_Truck>
            <sTp_Tracao>string</sTp_Tracao>
            <sId_VeicTrator>string</sId_VeicTrator>
          </stModelos>
        </Modelos>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Get_ConsultaModeloResult>
    </Get_ConsultaModeloResponse>
  </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: vader.streamsoft.com.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_ConsultaModelo xmlns="http://tempuri.org/">
      <Login>
        <sUserName>string</sUserName>
        <sPassWord>string</sPassWord>
        <sToken>string</sToken>
      </Login>
    </Get_ConsultaModelo>
  </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_ConsultaModeloResponse xmlns="http://tempuri.org/">
      <Get_ConsultaModeloResult>
        <Marcas>
          <stMarcas>
            <iCd_Marca>int</iCd_Marca>
            <sNm_Marca>string</sNm_Marca>
          </stMarcas>
          <stMarcas>
            <iCd_Marca>int</iCd_Marca>
            <sNm_Marca>string</sNm_Marca>
          </stMarcas>
        </Marcas>
        <Categorias>
          <stCategorias>
            <iCd_Categoria>int</iCd_Categoria>
            <sNm_Categoria>string</sNm_Categoria>
          </stCategorias>
          <stCategorias>
            <iCd_Categoria>int</iCd_Categoria>
            <sNm_Categoria>string</sNm_Categoria>
          </stCategorias>
        </Categorias>
        <Modelos>
          <stModelos>
            <iCd_Modelo>int</iCd_Modelo>
            <sNm_Modelo>string</sNm_Modelo>
            <iCd_Marca>int</iCd_Marca>
            <iCd_Categoria>int</iCd_Categoria>
            <iQt_Eixos>int</iQt_Eixos>
            <sId_Truck>string</sId_Truck>
            <sTp_Tracao>string</sTp_Tracao>
            <sId_VeicTrator>string</sId_VeicTrator>
          </stModelos>
          <stModelos>
            <iCd_Modelo>int</iCd_Modelo>
            <sNm_Modelo>string</sNm_Modelo>
            <iCd_Marca>int</iCd_Marca>
            <iCd_Categoria>int</iCd_Categoria>
            <iQt_Eixos>int</iQt_Eixos>
            <sId_Truck>string</sId_Truck>
            <sTp_Tracao>string</sTp_Tracao>
            <sId_VeicTrator>string</sId_VeicTrator>
          </stModelos>
        </Modelos>
        <Retorno>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
          <stResult>
            <sCode>string</sCode>
            <sResult>string</sResult>
          </stResult>
        </Retorno>
      </Get_ConsultaModeloResult>
    </Get_ConsultaModeloResponse>
  </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: vader.streamsoft.com.br
Content-Type: application/json; charset=utf-8
Content-Length: length
{
   "Login":
   {
     "sUserName": string
     "sPassWord": string
     "sToken": string
   }
}

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

{

   "Marcas":
   [
     {       
       "iCd_Marca": int
       "sNm_Marca": string
     },
     {       
       "iCd_Marca": int
       "sNm_Marca": string
     }
   ]
   "Categorias":
   [
     {       
       "iCd_Categoria": int
       "sNm_Categoria": string
     },
     {       
       "iCd_Categoria": int
       "sNm_Categoria": string
     }
   ]
   "Modelos":
   [
     {       
       "iCd_Modelo": int
       "sNm_Modelo": string
       "iCd_Marca": int
       "iCd_Categoria": int
       "iQt_Eixos": int
       "sId_Truck": string
       "sTp_Tracao": string
       "sId_VeicTrator": string
     },
     {       
       "iCd_Modelo": int
       "sNm_Modelo": string
       "iCd_Marca": int
       "iCd_Categoria": int
       "iQt_Eixos": int
       "sId_Truck": string
       "sTp_Tracao": string
       "sId_VeicTrator": string
     }
   ]
   "Retorno":
   [
     {       
       "sCode": string
       "sResult": string
     },
     {       
       "sCode": string
       "sResult": string
     }
   ]
}