cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP to File ??

Former Member
0 Kudos

Hi

Can XI receive a file(pdf) that is posted by a web application. If yes, what is the adapter that would be used. is it HTTP ?

The requirement is like this: The other system(web application) sends the file to XI and XI ftps the file into another location. Please let me know how this can be done ?

Regards,

Sreenivas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srinivas,

In your scenario, HTTP would be sender adapter and FILE would be receiver.

DESIGN.

1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file

2. Craate MessageTypes for the two datatypes.

3.Create Message Interfaces. the One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.

4. Do the mapping. It will be mostly a one to one mappingof the fields.

5.Create the Interface Mapping.

Configuration

1. Import your Business System under your Configuration Scenario.

2.Create 1 communication channel. for File as a receiver. no need to create sender communication channel as HTTP resides on integration engine on abap stack.

check these links for the confiuration part.

http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

3.Do the Receiver Agreement for file. HTTP doesnt need a sender agreement.

4.DO the Receiver Determination and Interface Determination.

Also go through below:

For Http adapter configuration:-

http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm

Weblog which talk about the same scenario:-

/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is

aimed at explaining the sync-async bridge..sriram has taken http-to-file scenario as the example

(use case) and explained it..

regards,

Ravi.

Former Member
0 Kudos

Hi Ravi,

Thanks for your inputs. In my case, XI receives the pdf file and the file will be directly ftped to another location. So, I think there is no need to define the data types and mappings. correct me if I'm wrong. First of all my doubt is whether HTTP sender adapter can receive a pdf file ??

Regards,

Sreenivas

Former Member
0 Kudos

HI Srinivas,

If I understand correctly, you want to send a pdf file to XI through a webapplication.

Yes it is very much possible to send like this.

for this u need to use HTTP adapter as sender, follow the links that I have given to you.

After getting the content to XI, u need to send to third party system as pdf, there u use file adapter as receiver and save as .pdf.

Regards,

Ravi.

Former Member
0 Kudos

Hi Ravi,

In the link below

http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm

The note says that:

"The plain HTTP adapter only evaluates the main payload of a received XML message. Additional attachments are ignored and not forwarded."

Can u tell me how can XI receive pdf file from Sender HTTP adapter

Regards,

Sreenivas