WS_GUARDIAN
Click here for a complete list of operations.
IdentificaVagao
[OBSOLETO]
Metodo de compatibilização com o Guardian 4.
IMPORTANTE: Se exitir o arquivo BDG4.XML a conexão com o banco será feita utilizado os dados desse arquivo e
serão utilizada as regras de negócio do Guardian 4. Caso contrário se feita a conexão com o Guardian 6 normalmente.
Então para ser conectar com o Guardian 4 crier um arquivo BD.XML com a conexão para um banco de Guardian 4 e renomei o arquivo para BDG4.XML.
Para se conectar ao Guardian 6 o arquivo BDG4.XML deve ser apagado.
Este método é responsável por:
Importar o pré-cadastramento do vagão.
Parâmetros de entrada:
- infoCarregamento (InformaCarregamento): Dados relacionados ao carregamento.
Retornos:
- Retorno da Função (Int) = 0 : erro desconhecido - 1 : sucesso 2 : vagao ja cadastrado.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_GUARDIAN_623/WS_GUARDIAN_PLUS.asmx HTTP/1.1 Host: services.toledobrasil.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://toledobrasil.com.br/WS_Guardian/IdentificaVagao" <?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> <IdentificaVagao xmlns="http://toledobrasil.com.br/WS_Guardian"> <infoCarregamento> <Balanca>string</Balanca> <CodigoVagao>string</CodigoVagao> <PesoBrutoMaximo>double</PesoBrutoMaximo> <PesoCarregamento>double</PesoCarregamento> <Dribble>double</Dribble> <Preact>double</Preact> </infoCarregamento> </IdentificaVagao> </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> <IdentificaVagaoResponse xmlns="http://toledobrasil.com.br/WS_Guardian"> <IdentificaVagaoResult>int</IdentificaVagaoResult> </IdentificaVagaoResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_GUARDIAN_623/WS_GUARDIAN_PLUS.asmx HTTP/1.1 Host: services.toledobrasil.com 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> <IdentificaVagao xmlns="http://toledobrasil.com.br/WS_Guardian"> <infoCarregamento> <Balanca>string</Balanca> <CodigoVagao>string</CodigoVagao> <PesoBrutoMaximo>double</PesoBrutoMaximo> <PesoCarregamento>double</PesoCarregamento> <Dribble>double</Dribble> <Preact>double</Preact> </infoCarregamento> </IdentificaVagao> </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> <IdentificaVagaoResponse xmlns="http://toledobrasil.com.br/WS_Guardian"> <IdentificaVagaoResult>int</IdentificaVagaoResult> </IdentificaVagaoResponse> </soap12:Body> </soap12:Envelope>