Beispiel #1
0
        public string SolicitaXmlPlp(SolicitaXmlPlpRequest request)
        {
            Executar("solicitaXmlPlp", request);

            var response = SolicitaXmlPlpResponse.Load(XmlResposta);

            return(response.Result);
        }
Beispiel #2
0
        private void BtnSolicitaXmlPlp_Click(object sender, EventArgs e)
        {
            string idplpmaster = string.Empty;

            idplpmaster = InputBox("Informe o idplp master", idplpmaster);

            if (string.IsNullOrEmpty(idplpmaster))
            {
                return;
            }

            using (var client = GetClient())
            {
                var request = new SolicitaXmlPlpRequest(client)
                {
                    IdPlpMaster = long.Parse(idplpmaster)
                };

                _ = client.SolicitaXmlPlp(request);

                TextXmlEnvio.Text    = client.XmlEnvio;
                TextXmlResposta.Text = client.XmlResposta;
            }
        }