Example #1
0
        private void BtnBuscaOpcoes_Click(object sender, EventArgs e)
        {
            string listaobjetos  = "1";
            string tiporesultado = "1";

            listaobjetos  = InputBox("Informe o objeto", listaobjetos);
            tiporesultado = InputBox("Informe o tipo", tiporesultado);

            if (string.IsNullOrEmpty(listaobjetos) || string.IsNullOrEmpty(tiporesultado))
            {
                return;
            }

            using (var client = GetClient())
            {
                var request = new BuscaOpcoesRequest(client)
                {
                    ListaObjetos  = listaobjetos,
                    TipoResultado = tiporesultado
                };

                _ = client.BuscaOpcoes(request); // Erro: Usuário ou senha inválidos

                TextXmlEnvio.Text    = client.XmlEnvio;
                TextXmlResposta.Text = client.XmlResposta;
            }
        }
Example #2
0
        public string BuscaOpcoes(BuscaOpcoesRequest request)
        {
            Executar("buscaOpcoes", request);

            var response = BuscaOpcoesResponse.Load(XmlResposta);

            return(response.Result);
        }