WS_GUARDIAN
Click here for a complete list of operations.
AlteraTipoBalanca
[INTERFACE]
Este método é responsável por:
Ativar ou desativar o modo ferroviário em um ponto de controle.
Aplicado apenas a pontos de controle ativos e devidamente configurados e elegíveis para ambas as operações (periféricos e operações associadas, possuindo MCA).
As descrições dos campos podem ser conferidas nos VOs: VOConfiguracaoAlteraTipoBalanca, VODadosAlteraTipoBalanca, VORetornoAlteraTipoBalanca.
Parâmetros de entrada:
- VOConfiguracaoAlteraTipoBalanca (VOConfiguracaoAlteraTipoBalanca ) = Obrigatório - Configuração para a tomada de decisão quando necessário.
- VODadosAlteraTipoBalanca (VODadosAlteraTipoBalanca ) = Obrigatório - Conforme a definição da estrutura VODadosAlteraTipoBalanca.
Retornos:
- VORetornoAlteraTipoBalanca (VORetornoAlteraTipoBalanca ) = Retorno do resultado da execução do web método. Erro = 0, indicação de sucesso. Qualquer valor diferente disto indica falha na execução.
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_625/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/AlteraTipoBalanca" <?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> <AlteraTipoBalanca xmlns="http://toledobrasil.com.br/WS_Guardian"> <voConfiguracao> <CodigoPontoControle>string</CodigoPontoControle> <CodigoPeriferico>string</CodigoPeriferico> </voConfiguracao> <voDados> <TipoBalancaDesejado>int</TipoBalancaDesejado> </voDados> </AlteraTipoBalanca> </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> <AlteraTipoBalancaResponse xmlns="http://toledobrasil.com.br/WS_Guardian"> <voRetorno> <VORetornoAlteraTipoBalanca /> <VORetornoAlteraTipoBalanca /> </voRetorno> </AlteraTipoBalancaResponse> </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_625/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> <AlteraTipoBalanca xmlns="http://toledobrasil.com.br/WS_Guardian"> <voConfiguracao> <CodigoPontoControle>string</CodigoPontoControle> <CodigoPeriferico>string</CodigoPeriferico> </voConfiguracao> <voDados> <TipoBalancaDesejado>int</TipoBalancaDesejado> </voDados> </AlteraTipoBalanca> </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> <AlteraTipoBalancaResponse xmlns="http://toledobrasil.com.br/WS_Guardian"> <voRetorno> <VORetornoAlteraTipoBalanca /> <VORetornoAlteraTipoBalanca /> </voRetorno> </AlteraTipoBalancaResponse> </soap12:Body> </soap12:Envelope>