cancel
Showing results for 
Search instead for 
Did you mean: 

File-XI-HTTP Scenario with multipart

former_member562530
Active Participant
0 Kudos

Hello everyone,

Argentina has a legal requirement which is necessary to send a TXT file containing data related to outbound delivery (transaction VL03N) in a website created by the government.

Nowadays the users are using a HTML page to send this file. This HTML page has 3 parameters ( user, pass, file path+name ) and is sending data through "POST" method using encoding type "multipart". Please take a look on the statement below contained in the page:

<FORM action="http://cot.ec.gba.gov.ar/Transporte.do" enctype="multipart/form-data" method="post" name="form" onSubmit="">

I am not expert in SAP XI, but I would like to convert all in an automatic process using XI:

(SAP R/3) File -> XI -> HTTP.

My question is: How could I configure a communication channel in order to send a TXT File to a HTTP service with all attributes mentioned right above (multipart, user + pass)? I think its necessary to use HTTP adapter but I am not sure.

Best Regards

Gabriel Santana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The problem I can see here is, once your file on the sender side is picked up by XI,it no longer is in file format and instead is in XI message format. so you need to tackle this issue first...may be this thread will give you nice pointers abt it.

The second issue being, sending the multipart message...i guess your scenario wont be that simple file-xi-http..instead might turn out to be SOAP->XI->Proxy(Java/ABAP)

former_member562530
Active Participant
0 Kudos

Amol,

Thank you for your reply... I am working in order to finish this scenario.

Best Regards

Former Member
0 Kudos

Hi Gabriel !

I have the same requirements as you. How did you finally managed to get this scenario to work?

Thanks,

Matias.

Answers (2)

Answers (2)

former_member562530
Active Participant
0 Kudos

issue postponed!

Thanks

Former Member
0 Kudos

Hello Gabriel Santana

I have the same requerimient as you and i need some help. As you know the web service have 3 obligatoies parameters . User , password and File.

I have no problems with the two first parameters passing them with the class

cl_http_client method ->request->set_form_field. and this values.

However i cant pass the third parameter (File) using the same mode.

i tried:

CALL METHOD http_client->request->set_form_field

EXPORTING

name = 'file'

value = 'Path source of my file'.

but i recive an error response from the web service .

Hope you can help me with this issue because it turned to me to an Urgent matter.

Thank you and will look forward for your answer.

if you prefer my e-mail address is martincol@hotmail.com

Regards

Mcol.

former_member562530
Active Participant
0 Kudos

Hi everyone,

Please forgive me the delay on reply... Unfortunately I still looking for a solution to my scenario. In the beginning of this month I contacted some XI consultants from SAP Brazil and they told me that SAP XI 3.0 does not support this kind of scenario.

Actually I am working in an upgrade project to ECC 6.0, so this issue was postponed...

If I find something helpful I will be posting in this thread...

Best Regards,

Gabriel