cancel
Showing results for 
Search instead for 
Did you mean: 

Http- to-File

Former Member
0 Kudos

Hi XI Gurus,

I would like work on Http-to-File scenario, i.e. I need to use Http adaptor and File Adaptor for above scenario.

Could you please provide procedural steps for this, both Design and Configuration?

Advance thanks

Bala

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member91687
Active Contributor
0 Kudos

Hi Bala,

Have a look at this pdf: "Step-By-Step Approach for Implementing XI Scenarios".

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c...

Cheers,

Chandra

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You want to pass some content from your HTTP client into a File. this is what I ahve understood from

your query.

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 2 communication channels. One for Http as a sender and one for File as a receiver.

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.

Do let me know if you have further clarifications,

Regards,

Bhavesh

PS. Do not forget to award points fo helpful answers.

Message was edited by: Bhavesh Kantilal

Former Member
0 Kudos

Hi Bala,

Here go the links, which will help you do it right from creating datatypes until configuring the adapters:)

For file adapter configuration:-http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm

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

Apart from this, if you have any particular queries regarding the scenario..post!

Cheers

Sushumna

former_member184154
Active Contributor
0 Kudos

Should be just like developing any other interface. The only peculiarity is that in the Configuration you won't have any Sender Agreement nor any Http Sender Communication Channel, as it is managed directly by the ABAP stack.

Mind that the URL to which you'll send http data will have this syntax:

  • http://hostname:port/path

  • ?namespace=???

  • &interface=???

  • &service=???

  • &party=???

  • &agency=???

  • &scheme=???

  • [&qos= EO|BE|EOIO]

  • [&msgguid=???]

  • [&queueid=???]

  • [&trace=[1|2|3]]

where port is 80<sysnr> (not 5<sysnr>00 which is J2EE!)

and path is /sap/xi/adapter_plain

Have fun!

Alex

Former Member
0 Kudos

Hi bala,

u should 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. Here i'm giving one sample url which i've used.

http://host:8000/sap/xi/adapter_plain?bs=Sender_Service&namespace=urn%3Aws%3Aemployee%3Ainsert&inter...;

And remaining steps are similar in IR & ID like any other scenario.

u can define every thing like Datatpe,Msg.type, Msg.Mapp, Intf.Mapping ,Receiver agreement, recv.Determination, and all....like any normal scenario.

hope this helps.

regards,

datta