I have a problem with my C # code, I am trying to consume the api of the mails but the data comes null, I found another tutorial on the internet that said to instantiate the class trace and get the property rastroJSON but my service does not have this property (traceJSON), this trace property is displayed on page 7 of the post office documentation. My attempt to get the data null:
correios.rastro a = new correios.rastro();
correios.sroxml xml = new correios.sroxml();
xml = a.buscaEventos("ECT", "SRO", "", "U", "", "CODIGO");
Console.WriteLine(xml.objeto);
Console.ReadKey();
Mail is the namespace of my reference.
the consolewriteline object comes null, I have created a service reference with the address: link
I tried to follow the manual: link , but it did not work.
I created it first with a service reference, then I tried creating a web service reference in the advanced properties.