sisecvws
Clique aqui para obter uma lista completa das operações.
EnviarItemMidiaVistoria
TICKET 02 (envio-laudo-resiliente-4g): RECEBE UM CHUNK DE UM ITEM DE MIDIA (FOTO OU VIDEO) DE UMA VISTORIA. FOTO = TOTALCHUNKS 1 (ITEM INTEIRO). HASHITEM = MD5 HEX (32 CARACTERES) DO ARQUIVO INTEIRO (FOTO: DA IMAGEM; VIDEO: DO ARQUIVO COMPLETO, REPETIDO EM TODO CHUNK), CONFERIDO NO SERVIDOR ANTES DE GRAVAR. RETORNA "1" (CHUNK ACEITO/ITEM CONFIRMADO SE ERA O ULTIMO), "0" (ERRO GENERICO) OU TEXTO DE ERRO ESPECIFICO.
Testar
O formulário de teste está disponível somente para solicitações na máquina local.SOAP 1.1
O exemplo a seguir mostra uma solicitação e uma resposta SOAP 1.1. Os espaços reservados mostrados devem ser substituídos por valores reais.
POST /sisecvws.asmx HTTP/1.1
Host: ws4.sisecv.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/EnviarItemMidiaVistoria"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<SoapHeaderHelp xmlns="http://tempuri.org/">
<client_type>string</client_type>
<client_identify>string</client_identify>
<client_token>string</client_token>
</SoapHeaderHelp>
</soap:Header>
<soap:Body>
<EnviarItemMidiaVistoria xmlns="http://tempuri.org/">
<vistoria_id>long</vistoria_id>
<tipo_item>string</tipo_item>
<identificador_item>string</identificador_item>
<chunkIndex>int</chunkIndex>
<totalChunks>int</totalChunks>
<chunkData>string</chunkData>
<hashItem>string</hashItem>
</EnviarItemMidiaVistoria>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<SoapHeaderHelp xmlns="http://tempuri.org/">
<client_type>string</client_type>
<client_identify>string</client_identify>
<client_token>string</client_token>
</SoapHeaderHelp>
</soap:Header>
<soap:Body>
<EnviarItemMidiaVistoriaResponse xmlns="http://tempuri.org/">
<EnviarItemMidiaVistoriaResult>string</EnviarItemMidiaVistoriaResult>
</EnviarItemMidiaVistoriaResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
O exemplo a seguir mostra uma solicitação e uma resposta SOAP 1.2. Os espaços reservados mostrados devem ser substituídos por valores reais.
POST /sisecvws.asmx HTTP/1.1
Host: ws4.sisecv.com.br
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<SoapHeaderHelp xmlns="http://tempuri.org/">
<client_type>string</client_type>
<client_identify>string</client_identify>
<client_token>string</client_token>
</SoapHeaderHelp>
</soap12:Header>
<soap12:Body>
<EnviarItemMidiaVistoria xmlns="http://tempuri.org/">
<vistoria_id>long</vistoria_id>
<tipo_item>string</tipo_item>
<identificador_item>string</identificador_item>
<chunkIndex>int</chunkIndex>
<totalChunks>int</totalChunks>
<chunkData>string</chunkData>
<hashItem>string</hashItem>
</EnviarItemMidiaVistoria>
</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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<SoapHeaderHelp xmlns="http://tempuri.org/">
<client_type>string</client_type>
<client_identify>string</client_identify>
<client_token>string</client_token>
</SoapHeaderHelp>
</soap12:Header>
<soap12:Body>
<EnviarItemMidiaVistoriaResponse xmlns="http://tempuri.org/">
<EnviarItemMidiaVistoriaResult>string</EnviarItemMidiaVistoriaResult>
</EnviarItemMidiaVistoriaResponse>
</soap12:Body>
</soap12:Envelope>