cancel
Showing results for 
Search instead for 
Did you mean: 

Hi! I need steps for HTTP Receiver adapter

Former Member
0 Kudos

My scenario is like this:

HTTP(HTTP Sender adapter)->XI->File(File adapter).

For this Iam sending the data as payload in the body of HTTP. Now What am i going to do is the opposite of above scenario:

File(FileAdapter)->XI->(HTTP Receiver Adapter)HTTP.

I would like to know what are the steps to transfer a file(xml) from File adapter to XI and from there to Http.

How to send the data using File adapter. Please suggest me some steps.

Hoping a quick response!!!

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check this link which talks abt file to file scenario. You will get more clear on how to configure sender file adapter

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Datta,

In File to XI and from then to HTTP Scenario,

1) In Sender file adapter everything is common and use FTP as Message Protocol.

2) Receiver HTTP: Use this link what you need to do on the receiver side. Here it shows the parameters which are mandatory are to be fill and do the rest are the same.

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

Abdullah Shaik

Former Member
0 Kudos

I guess it would be almost similar now you need to configure File Sender adapter and HTTP receiver adapter.

In File sender side, since its an XML file, you should load the XSD/DTD to define your message type, then message interface, message mapping, interface mapping.

On HttpReceiver adapter side, specify the http url you are going to invoke.

--Archana

Former Member
0 Kudos

Hi Archana,

Yes it will be similar with one twist though. I'm trying to send a simple tab delimited file in the http request. I don't know how to send a text file using the http adapter.

I can read the file using the file adapter without problems but how can I send it using the http adapter.

Former Member
0 Kudos

i think plain http adapter doesnt allow attachments and mutipart-documents. the payload should contain in the body of the HTTP request.

No attachments are allowed.

--Archana

Former Member
0 Kudos

Even the simplest stuff is hard doing with XI

Former Member
0 Kudos

I have also the same problem.

I have the payload which consists out of a textfile. It will be there in the monitoring till to the "Technical Routing" but at step "Call Adapter" (plain_http_adapter) the payload vanishes.

Any hints are highly appreciated.

best regards

Peter

Former Member
0 Kudos

Hi Datta,

For a HHTP -> XI -> FILE Scenario:

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. Create 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 mapping of the fields.

5. Create the Interface Mapping.

Configuration:

1. Import your Business System under your Configuration Scenario.

2. Create 2 communication channels. One for Http as a sender and one for File as a receiver.

Check these links for the configuration 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

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

3. Do the Receiver Agreement for file. HTTP doesn’t need a sender agreement.

4. DO the Receiver Determination and Interface Determination.

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...

Check this SDN tv demo, it has detail of HTTP adapter setup.

https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107

Refer to this link for adapter settings.

http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm

You should also have a HTTP client to send message to XI. In the connecting parameters to XI u have to use the URL in the pattern mentioned by Alex. U have to give all the configuration details in the URL.

Regards,

Abhy

Message was edited by: Abhy Thomas

Former Member
0 Kudos

Hi Abhy!

I have done this scenario HTTP->XI->File

Now I want to do the next part i.e., File->XI->HTTP.

Can you give me the steps how to do that.

I have to use HTTP Adapter as Receiver.I just need to write a java application(JSP) that listens the XI and displays the xml file in browser.How to do that?

Thanks in advance!

Former Member
0 Kudos

Hi Datta,

Were you ever able to implement the File -> XI -> HTTP scenario? I'm about to implement a similar scenario. My scenario, however, uses a plain text file instead of an xml one. I would like to read tab delimited file and be able to send it to a webserver using HTTP post. Is that possible?

Do you have any sample code to the scenario you implemented?

Thanks,

Alaa

Former Member
0 Kudos

Hi ,

For File to HTTP scenario you can use following blog

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

Regards

Bipin Joshi

Former Member
0 Kudos

Hi Bipin,

The blog you referred to implements an HTTP to File scenario. I'm looking for steps to implement the reverse scenario.

Alaa

Former Member
0 Kudos

HI datta,

The steps are simple,

First configure a sender file adapter. Use the protocol ftp if you have an ftp server or use NFS protocol.

In case of NFS you will have to share a folder on the server where your Adapter engine runs.For ex. if you are using the central AE(ON XI itself), then you will have to share a folder on XI server. Place your xml file there in shared folder.

While configuring sender file adapter give the address of the shared folder and name of your file.

Give polling interval as 600 secs(It depends how frequently u want to poll the file.)

Similarly create a new receiver HTTP channel.

Rest steps will be same as creating new Reciever determination , Interface determination and Reciever agreement.

Here you will also have to create a new sender agreement.

Yomesh

Message was edited by: yomesh P Sharma