...
Code Block |
---|
language | xml |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | BuscaTransportadorRequest |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tms="http://tmsfrete.v2.targetmp.com.br">
<soapenv:Header/>
<soapenv:Body>
<tms:BuscarTransportador>
<tms:auth>
<tms:Usuario>?</tms:Usuario>
<tms:Senha>?</tms:Senha>
<tms:Token>?</tms:Token>
</tms:auth>
<tms:buscaTransportador>
<tms:QuantidadeItensPorPagina>?</tms:QuantidadeItensPorPagina>
<tms:NumeroPagina>?</tms:NumeroPagina>
<tms:CPFCNPJ>?</tms:CPFCNPJ>
</tms:buscaTransportador>
</tms:BuscarTransportador>
</soapenv:Body>
</soapenv:Envelope> |
Buscar Transportador
Abaixo, segue exemplo do método - 'BuscaTransportador'.
Code Block |
---|
language | xml |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Exemplo - BuscaTransportador |
---|
linenumbers | true |
---|
|
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tms="http://tmsfrete.v2.targetmp.com.br" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<tms:BuscarTransportador>
<tms:auth>
<tms:Usuario>tms.exemplo</tms:Usuario>
<tms:Senha>v0hXPrwerKblaBs=</tms:Senha>
<tms:Token i:nil="true" />
</tms:auth>
<tms:buscaTransportador>
<tms:QuantidadeItensPorPagina>1</tms:QuantidadeItensPorPagina>
<tms:NumeroPagina>1</tms:NumeroPagina>
<tms:CPFCNPJ>08277185430</tms:CPFCNPJ>
</tms:buscaTransportador>
</tms:BuscarTransportador>
</soapenv:Body>
</soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tmsfrete.v2.targetmp.com.br/FreteTMSService/BuscarTransportadorResponse</Action>
</s:Header>
<s:Body>
<BuscarTransportadorResponse xmlns="http://tmsfrete.v2.targetmp.com.br">
<BuscarTransportadorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Erro i:nil="true" />
<CPFCNPJ>08277185430</CPFCNPJ>
<DataAtualizacao i:nil="true" />
<DataRegistro>0001-01-01T00:00:00</DataRegistro>
<IdCliente>29800</IdCliente>
<IdDmTipoPessoa>1</IdDmTipoPessoa>
<IdDmTipoTransportador>0</IdDmTipoTransportador>
<NomeRazaoSocial>DURVAN ELLITON VIANA DA SILVA</NomeRazaoSocial>
<RNTRC>50817399</RNTRC>
</BuscarTransportadorResult>
</BuscarTransportadorResponse>
</s:Body>
</s:Envelope> |