Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
adam_kiwon3
Active Participant
0 Kudos
Imagine you need to read a file content from a remote application and you do not want to set up a replication?
This scenario explains how to expose a CSV file (here a product list) as a WebService using the standard SOAP Adapter and the WHINT FileReader Adapter.

FRAS2

CSV File:
FRAS1




Design (ESR):

  • Create Service Interfaces (Sender and Receiver side)

  • For the receiver side you can also use the synchronous Inbound Service Interface FileReaderQueryResponse_In which is shipped with the Adapter

  • Optional: Create a Mapping if you do not want to expose the result of the CSV-to-XML conversion of the MessageTransformBean


FRAS9

FRAS10

FRAS11




Configuration (Eclipse/NWDS):

iFlow:
FRAS4

Receiver Channel (FileReader):
FRAS5


SFTP Connectivity (of course you can read the file from NFS or FTP as well):
FRAS6


Module Configuration (MessageTransformBean: CSV->XML):
FRAS7




Upload File to SFTP Server:
FRAS8

Test from SOAP UI:
FRAS3

 

Update: I think it is obvious that the Files can be also queried with other sender channels, not only from SOAP (like e.g. REST here with a JSON response):

FRAS12
4 Comments
Labels in this area