cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc - HTTP Post

former_member463912
Discoverer
0 Kudos

Hi Experts!

I have the flollowing scenario:

IDoc - PI 7.4 Java only - AAE_HTTP Post

The POST method must have:

_user

_password

_file (with dynamic name and Header, Line, Footer structure)

File eg.:
01|30111111118
02|20060628|91 R000100000001|20060628|......
03|1|3|2|......
03|16|9|2|......
02|20060628|91 R432187654321|20060628|......
03|5|17|1|......
....
....
04|


If the execution is correct, this is the responce:

<TBCOMPROBANTE>
<cuitEmpresa>30506919009</cuitEmpresa>
<numeroComprobante>92291282</numeroComprobante>
<nombreArchivo>TB_30506919009_000000_20160303_000008.txt</nombreArchivo>
<codigoIntegridad>99ccf880d5772630b4375a7577d39ca8</codigoIntegridad>
  <validacionesRemitos class="list">
   <remito>
    <numeroUnico>91 R600000000074</numeroUnico>
    <procesado>SI</procesado>
   </remito>
  </validacionesRemitos>
</TBCOMPROBANTE>

If is incorrect:

<?xml version='1.0' encoding='ISO-8859-1'?><TBError>
  <tipoError>DATO</tipoError>
  <codigoError>11</codigoError>
  <mensajeError>El archivo recibido ya fue procesado con anterioridad.</mensajeError>
</TBError>


Questions:
_How can I handle async sync? with a bridge maybe?
_How can I convert XML to File? and send it in POST HTTP?
_How can I handle the differents responces?

Any kind of help will be apreciated!!
Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos
  1. Yes use a async sync bridge using corresponding adapter modules. There are quite a few documents on them on SCN.
  2. Use the adapter module message transform bean to convert xml to flat on tour receiver http adapter. This should be done before the adapter modules for the async sync bridge are configured.
  3. define a service interface with multiple operations for the 2nd async response flow. Depending on the response root tag PI will automatically process corresponding operation logic.

Regards

Bhavesh