| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Mode | path | Text | Yes | Origem da informacao online/offline (on/off) |
| Tipo | path | Text | No | Tipo da pesquisa (identica ou fonetica) |
| CPF | path | Number | Yes | CPF |
| CNS | path | Text | Yes | Numero de Registro |
| Nome | path | Text | Yes | Nome |
| NomeMae | path | Text | Yes | Nome da Mae |
| DataNascimento | path | Text | Yes | Data de Nascimento (DD/MM/AAAA) |
| MunicipioNascimento | path | Text | Yes | Municipio de Nascimento |
| UFNascimento | path | Text | Yes | UF de Nascimento |
To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap11 HTTP/1.1
Host: api.xdata.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: i2cCNS2
<?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>
<i2cCNS2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
<CNS>String</CNS>
<CPF>String</CPF>
<DataNascimento>String</DataNascimento>
<Mode>String</Mode>
<MunicipioNascimento>String</MunicipioNascimento>
<Nome>String</Nome>
<NomeMae>String</NomeMae>
<Tipo>String</Tipo>
<UFNascimento>String</UFNascimento>
</i2cCNS2>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
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>
<i2cCNS2Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
<Response>
<Error>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
</ResponseError>
</Errors>
</Error>
<Input>
<InputItem>
<Key>String</Key>
<Value>String</Value>
</InputItem>
</Input>
<Output>
<Pessoa>
<CNS>String</CNS>
<CPF>String</CPF>
<Nome>String</Nome>
<NomeMae>String</NomeMae>
<NomePai>String</NomePai>
<Sexo>String</Sexo>
<RacaCorDescricao>String</RacaCorDescricao>
<EtniaIndigena>String</EtniaIndigena>
<TipoSanguineo>String</TipoSanguineo>
<DataNascimento>String</DataNascimento>
<DataObito>String</DataObito>
<MotivoDeclaracaoObito>String</MotivoDeclaracaoObito>
<Vivo>String</Vivo>
<Nacionalidade>String</Nacionalidade>
<PaisNascimento>String</PaisNascimento>
<MunicipioNascimento>String</MunicipioNascimento>
<EmailPrincipal>String</EmailPrincipal>
<EmailAlternativo>String</EmailAlternativo>
<EnderecoTipoLogradouro>String</EnderecoTipoLogradouro>
<EnderecoLogradouro>String</EnderecoLogradouro>
<EnderecoNumero>String</EnderecoNumero>
<EnderecoComplemento>String</EnderecoComplemento>
<EnderecoBairro>String</EnderecoBairro>
<EnderecoCep>String</EnderecoCep>
<EnderecoMunicipio>String</EnderecoMunicipio>
<Telefones>
<Telefone>
<DDD>String</DDD>
<Numero>String</Numero>
<Tipo>String</Tipo>
<Operadora>String</Operadora>
</Telefone>
</Telefones>
<RG>String</RG>
<RGOrgaoEmissorDescricao>String</RGOrgaoEmissorDescricao>
<RGUF>String</RGUF>
<RGDataEmissao>String</RGDataEmissao>
<TituloEleitor>String</TituloEleitor>
<TituloEleitorZona>String</TituloEleitorZona>
<TituloEleitorSecao>String</TituloEleitorSecao>
<CTPS>String</CTPS>
<CTPSSerie>String</CTPSSerie>
<CTPSDataEmissao>String</CTPSDataEmissao>
<Certidoes>
<Certidao>
<Tipo>String</Tipo>
<Modelo>String</Modelo>
<Cartorio>String</Cartorio>
<Livro>String</Livro>
<Folha>String</Folha>
<Termo>String</Termo>
<DataEmissao>String</DataEmissao>
</Certidao>
</Certidoes>
</Pessoa>
</Output>
<Status>
<Protocol>00000000-0000-0000-0000-000000000000</Protocol>
<DateTime>0001-01-01T00:00:00</DateTime>
<Code>0</Code>
<Message>String</Message>
<Detail>String</Detail>
<Mode>String</Mode>
<Type>String</Type>
<Source>String</Source>
<HTML>String</HTML>
<Cookie>String</Cookie>
<URL>String</URL>
</Status>
</Response>
</i2cCNS2Response>
</soap:Body>
</soap:Envelope>