Destination Tag-Post tracking (JAVA)

Good afternoon guys!

I am working with the maintenance of a JAVA application integrated with the J. D. Edwards ERP, where we have an interface to retrieve tracking code information from the post office.

However, the "destination" tag within the "event" tag in the "event finder" API is not returning any information in the application. I have already tried to identify one or the other point that could be causing this problem (such as package import "oracle.e1.bssv.JC554901.proxyRastreio.types.Destinations"), but nothing seems to solve this problem.

In SoapUI, I can see the information returning correctly, but in no way can I see this information in JDeveloper.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com">pid=152686,requestid=af7a9756ee9e245409e56f9f101ebf9d66f23581c8b19a22</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
   </soapenv:Header>
   <soapenv:Body>
      <ns2:buscaEventosResponse xmlns:ns2="http://resource.webservice.correios.com.br/">
         <return>
            <versao>2.0</versao>
            <qtd>1</qtd>
            <objeto>
               <numero>OH041520310BR</numero>
               <sigla>OH</sigla>
               <nome>ETIQUETA LOGICA SEDEX</nome>
               <categoria>SEDEX</categoria>
               <evento>
                  <tipo>RO</tipo>
                  <status>01</status>
                  <data>23/05/2019</data>
                  <hora>15:56</hora>
                  <descricao>Objeto encaminhado</descricao>
                  <local>CEE TERESINA</local>
                  <codigo>64019976</codigo>
                  <cidade>TERESINA</cidade>
                  <uf>PI</uf>
                  <destino>
                     <local>AVALIACAO - RECEITA ESTADUAL</local>
                     <codigo>00004999</codigo>
                     <uf>BR</uf>
                  </destino>
               </evento>
            </objeto>
         </return>
      </ns2:buscaEventosResponse>
   </soapenv:Body>
</soapenv:Envelope>

Does anyone have can shed any light on this subject?

Thank you!

Author: Daniel Leite, 2019-05-24

1 answers

For anyone with a similar problem, I found out the cause: I commented the line below, before the ArrayList statement, and the problem was solved.

//@XmlElement(namespace = "http://resource.webservice.correios.com.br/")
protected List<Destinos> destino;
 0
Author: Daniel Leite, 2019-05-28 18:09:26