cancel
Showing results for 
Search instead for 
Did you mean: 

receive file content based on file Id/fileName

Former Member
0 Kudos

Hi,

I want to configure a scenario in XI that I can call via HTTP, pass the filename and receive the file conetnt of XML document.

Suppose I had created two structres, 1st is fileID, and 2nd is FileContent.

If i send the FileID/Filename, I should get File content based on FileId/Filename as output.

If I am doing HTTP to RFC, for BAPI-Company getdetail, I can fetch the data, based on the company ID, and can get company details as result,

I am doing Http to file, Now how shd i proceed with my case.

I send fileid/filename as input parameter, i shd get filecontent as output

Regards,

varun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Actualy RFC and HTTP adapters are synchronous adapters.You can able to send and Receive

the data synchronously.But File adapter is asynchronous adapter.It can able to do send or Receive the

data only.

Regards,

Prakasu

Answers (2)

Answers (2)

sunil_singh13
Active Contributor
0 Kudos

Hi Varun,

i don't know how to do it in .Net

But procedure must be the same as that of java.

in java to develope web service we create a standalone EJB and expose it as a web service.

you will have a variable that will contain the path of the file.

then as return type take a variable of string type that will return the content of file.

Down load the WSDL of your webservice from WebserviceNevigator of your WAS,

Import it as a external defination in XI

Do the Required Mapping.

Thanks

Sunil Singh

sunil_singh13
Active Contributor
0 Kudos

Hi Varun,

First thing i would like to tell you is you can't configure a scenario in which you will get response using File Adapter

coz it does not support synchronous communication.

But still as an attempt you can create a web service that will pick the file from mentioned location and will return the content to the HTTP as a response.

Reward Points If Helpful

Thanks

Sunil Singh

varun_k
Contributor
0 Kudos

Hi SUNIL SINGH,

Thanks for your reply,

Actually i was trying to do the same.

you can create a web service that will pick the file from mentioned location and will return the content to the HTTP as a response.

how do i proceed. can you give some inputs on that.

I am creating Webservice in .net.

Regards,

Varun

Edited by: Varun on Aug 19, 2008 3:58 PM