EnriquecimentoFoneTk
XMLTest
Resultado
Exemplos de chamada
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://wsnv-dev.novavidatec.com.br/WSLocalizador.asmx' \
-H 'Content-Type: application/soap+xml; charset=utf-8; action="http://tempuri.org/EnriquecimentoFoneTk"' \
--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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</soap12:Body>
</soap12:Envelope>`;
const resp = await fetch('https://wsnv-dev.novavidatec.com.br/WSLocalizador.asmx', {
method : 'POST',
headers: {
'Content-Type': 'application/soap+xml; charset=utf-8; action=\"http://tempuri.org/EnriquecimentoFoneTk\"',
},
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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</soap12:Body>
</soap12:Envelope>
XML;
$ch = curl_init('https://wsnv-dev.novavidatec.com.br/WSLocalizador.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/EnriquecimentoFoneTk"',
],
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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</soap12:Body>
</soap12:Envelope>
'''
resp = requests.post(
'https://wsnv-dev.novavidatec.com.br/WSLocalizador.asmx',
data=envelope.encode('utf-8'),
headers={
'Content-Type': 'application/soap+xml; charset=utf-8; action="http://tempuri.org/EnriquecimentoFoneTk"',
},
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>
<EnriquecimentoFoneTk xmlns=""http://tempuri.org/"">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</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/EnriquecimentoFoneTk\""));
var resp = await http.PostAsync("https://wsnv-dev.novavidatec.com.br/WSLocalizador.asmx", content);
resp.EnsureSuccessStatusCode();
var xml = await resp.Content.ReadAsStringAsync();
POST /WSLocalizador.asmx HTTP/1.1
Host: wsnv-dev.novavidatec.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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</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>
<EnriquecimentoFoneTkResponse xmlns="http://tempuri.org/">
<EnriquecimentoFoneTkResult>string</EnriquecimentoFoneTkResult>
</EnriquecimentoFoneTkResponse>
</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 /WSLocalizador.asmx HTTP/1.1
Host: wsnv-dev.novavidatec.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/EnriquecimentoFoneTk"
<?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>
<EnriquecimentoFoneTk xmlns="http://tempuri.org/">
<entrada>
<Cpf>string</Cpf>
<Token>string</Token>
<Usuario>string</Usuario>
<Senha>string</Senha>
<DddLoja>string</DddLoja>
<Telefones>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
<BureauTelefoneLead>
<DDD>string</DDD>
<Telefone>string</Telefone>
</BureauTelefoneLead>
</Telefones>
</entrada>
</EnriquecimentoFoneTk>
</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>
<EnriquecimentoFoneTkResponse xmlns="http://tempuri.org/">
<EnriquecimentoFoneTkResult>string</EnriquecimentoFoneTkResult>
</EnriquecimentoFoneTkResponse>
</soap:Body>
</soap:Envelope>