I'm trying to get a XML from a asmx using a post.
HttpClient client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,"https://.../esiat.asmx/RecepcionarNFSe");
request.Content = content;
var response = client.Send(request);
var str = await response.Content.ReadAsStringAsync();
And I'm not getting the corret XML, its coming with this response.
What I'm dong wrong?
Corrent data is :
<tcRetornoNFSe><tcValidaGrcNFSe><tsFlgEtt>V</tsFlgEtt><tsDesOco>Estrutura do Arquivo XML OK!</tsDesOco></tcValidaGrcNFSe><tcInfRetNFSe><tsNumNot>37436</tsNumNot><tsCodVer>VMR4NBUTTW</tsCodVer><tsFlgRet>V</tsFlgRet><tsDesOco>NFSe Importado com sucesso.</tsDesOco><tsLnk>https://nfe.araxa.mg.gov.br/Valida_NFELogo_Emissao.aspx?InscricaoMunicipal=3070326219&Distrito=1&NumeroNota=37436&CodVrfNfe=VMR4NBUTTW</tsLnk></tcInfRetNFSe></tcRetornoNFSe>

var str = await response.Content.ReadAsStringAsync();is a string. You now have to load it into an XML document. The response is correct.