Tag destination - mail tracking (JAVA)

Asked

Viewed 141 times

1

Good afternoon, everyone!

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

However, the "target" tag within the "event" tag in the "searchEvents" API is not returning any information in the application. I have tried to identify a point or two that could be causing this problem (such as import from package "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>

Someone has managed to shed some light on this matter?

Thanks in advance!

  • Popping up here to see if anybody can help me. :/

  • For those who have a similar problem, I discovered the cause: I commented the line below, before the declaration of Arraylist <destinations>, and the problem was solved. //@XmlElement(namespace = "http://resource.webservice.correios.com.br/")&#xA; protected List<Destinos> destino;

1 answer

0


For those who have a similar problem, I discovered the cause: I commented the line below, before the statement of Arraylist , and the problem was solved.

//@XmlElement(namespace = "http://resource.webservice.correios.com.br/")
protected List<Destinos> destino;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.