ConsultaSituacaoRGTK
XMLTest
Resultado
Exemplos de chamada
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
curl -X POST 'https://www.wsnv.novavidati.com.br/Online.asmx/ConsultaSituacaoRGTK' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: text/xml' \
--data-urlencode 'nome=' \
--data-urlencode 'dataNascimento=' \
--data-urlencode 'genero=' \
--data-urlencode 'rg=' \
--data-urlencode 'rg_digito=' \
--data-urlencode 'dataExpedicaoRG=' \
--data-urlencode 'mae=' \
--data-urlencode 'token=SEU_TOKEN'
const params = new URLSearchParams({
nome: '',
dataNascimento: '',
genero: '',
rg: '',
rg_digito: '',
dataExpedicaoRG: '',
mae: '',
token: 'SEU_TOKEN',
});
const resp = await fetch('https://www.wsnv.novavidati.com.br/Online.asmx/ConsultaSituacaoRGTK', {
method : 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body : params.toString(),
});
const xml = await resp.text();
console.log(xml);
<?php
$payload = http_build_query([
'nome' => '',
'dataNascimento' => '',
'genero' => '',
'rg' => '',
'rg_digito' => '',
'dataExpedicaoRG' => '',
'mae' => '',
'token' => 'SEU_TOKEN',
]);
$ch = curl_init('https://www.wsnv.novavidati.com.br/Online.asmx/ConsultaSituacaoRGTK');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $payload,
CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded'],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "HTTP $status\n";
echo $response;
import requests
resp = requests.post(
'https://www.wsnv.novavidati.com.br/Online.asmx/ConsultaSituacaoRGTK',
data={
'nome': '',
'dataNascimento': '',
'genero': '',
'rg': '',
'rg_digito': '',
'dataExpedicaoRG': '',
'mae': '',
'token': 'SEU_TOKEN',
},
headers={'Accept': 'text/xml'},
timeout=60,
)
resp.raise_for_status()
print(resp.text)
using var http = new HttpClient();
var form = new FormUrlEncodedContent(new Dictionary<string, string> {
["nome"] = "",
["dataNascimento"] = "",
["genero"] = "",
["rg"] = "",
["rg_digito"] = "",
["dataExpedicaoRG"] = "",
["mae"] = "",
["token"] = "SEU_TOKEN",
});
var resp = await http.PostAsync("https://www.wsnv.novavidati.com.br/Online.asmx/ConsultaSituacaoRGTK", form);
resp.EnsureSuccessStatusCode();
var xml = await resp.Content.ReadAsStringAsync();
POST /Online.asmx/ConsultaSituacaoRGTK HTTP/1.1 Host: www.wsnv.novavidati.com.br Content-Type: application/x-www-form-urlencoded Content-Length: length nome=string&dataNascimento=string&genero=string&rg=string&rg_digito=string&dataExpedicaoRG=string&mae=string&token=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
curl -X POST 'https://www.wsnv.novavidati.com.br/Online.asmx' \
-H 'Content-Type: application/soap+xml; charset=utf-8; action="http://tempuri.org/ConsultaSituacaoRGTK"' \
--data-raw '<?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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</soap12:Body>
</soap12:Envelope>'
const envelope = `<?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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</soap12:Body>
</soap12:Envelope>`;
const resp = await fetch('https://www.wsnv.novavidati.com.br/Online.asmx', {
method : 'POST',
headers: {
'Content-Type': 'application/soap+xml; charset=utf-8; action=\"http://tempuri.org/ConsultaSituacaoRGTK\"',
},
body: envelope,
});
const xml = await resp.text();
console.log(xml);
<?php
$envelope = <<<XML
<?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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</soap12:Body>
</soap12:Envelope>
XML;
$ch = curl_init('https://www.wsnv.novavidati.com.br/Online.asmx');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $envelope,
CURLOPT_HTTPHEADER => [
'Content-Type: application/soap+xml; charset=utf-8; action="http://tempuri.org/ConsultaSituacaoRGTK"',
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import requests
envelope = '''\
<?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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</soap12:Body>
</soap12:Envelope>
'''
resp = requests.post(
'https://www.wsnv.novavidati.com.br/Online.asmx',
data=envelope.encode('utf-8'),
headers={
'Content-Type': 'application/soap+xml; charset=utf-8; action="http://tempuri.org/ConsultaSituacaoRGTK"',
},
timeout=60,
)
resp.raise_for_status()
print(resp.text)
using var http = new HttpClient();
const string envelope = @"<?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:Body>
<ConsultaSituacaoRGTK xmlns=""http://tempuri.org/"">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</soap12:Body>
</soap12:Envelope>";
var content = new StringContent(envelope, Encoding.UTF8, "application/soap+xml");
content.Headers.ContentType.Parameters.Add(
new System.Net.Http.Headers.NameValueHeaderValue("action", "\"http://tempuri.org/ConsultaSituacaoRGTK\""));
var resp = await http.PostAsync("https://www.wsnv.novavidati.com.br/Online.asmx", content);
resp.EnsureSuccessStatusCode();
var xml = await resp.Content.ReadAsStringAsync();
POST /Online.asmx HTTP/1.1
Host: www.wsnv.novavidati.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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</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:Body>
<ConsultaSituacaoRGTKResponse xmlns="http://tempuri.org/">
<ConsultaSituacaoRGTKResult>string</ConsultaSituacaoRGTKResult>
</ConsultaSituacaoRGTKResponse>
</soap12:Body>
</soap12:Envelope>
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Online.asmx HTTP/1.1
Host: www.wsnv.novavidati.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ConsultaSituacaoRGTK"
<?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:Body>
<ConsultaSituacaoRGTK xmlns="http://tempuri.org/">
<nome>string</nome>
<dataNascimento>string</dataNascimento>
<genero>string</genero>
<rg>string</rg>
<rg_digito>string</rg_digito>
<dataExpedicaoRG>string</dataExpedicaoRG>
<mae>string</mae>
<token>string</token>
</ConsultaSituacaoRGTK>
</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:Body>
<ConsultaSituacaoRGTKResponse xmlns="http://tempuri.org/">
<ConsultaSituacaoRGTKResult>string</ConsultaSituacaoRGTKResult>
</ConsultaSituacaoRGTKResponse>
</soap:Body>
</soap:Envelope>
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /Online.asmx/ConsultaSituacaoRGTK?nome=string&dataNascimento=string&genero=string&rg=string&rg_digito=string&dataExpedicaoRG=string&mae=string&token=string HTTP/1.1 Host: www.wsnv.novavidati.com.br
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>