cancel
Showing results for 
Search instead for 
Did you mean: 

Need steps and parameters for File to HTTPS bypass scenario. ..!!

Former Member
0 Kudos

Hi ,

File to HTTP(s) scenario.

Just I need to pick the file and pass to the given site. It is like a Bypass scenario.

They provided the following information.

URL: https://data.XXXXX.com

User Name: user_113

Pwd: XXXXXXXXX

I need to use receiver http adapter ?

Please tell me what are all the required parameters i need to use in the http adapter.?

Looks like I need to send the file with the same name . How can I set this parameter?

The file is a flat file and not XML. Can I Send flat file using http adapter?

pls answers them asap.

thanks

Deepthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please tell me what are all the required parameters i need to use in the http adapter.? - See your input file is a flat file........so in source file adapter you will need to do File Content Conversion to convert it into XML format............then you can skip msg mapping and interface mapping and use the same msg interface for sending the HTTP msg in ID.................so in IR, you will have one msg interface, one msg type, one data type and configure it in ID...........

Looks like I need to send the file with the same name . How can I set this parameter? - See you will send the source file data in a HTTP msg, so your target HTTP application will receive it as a HTTP msg and not a file.........But suppose if you want to send this extra information of source filename in your HTTP msg, then you will have to use adapter specific identifiers in source file adapter and then you will need to have a msg mapping to get your source filename.

Can I Send flat file using http adapter? - No, you can send only XML data from HTTP adapter.

Regards,

Rajeev Gupta

Former Member
0 Kudos

>> Can I Send flat file using http adapter? - No, you can send only XML data from HTTP adapter.

Hi Rajeev,

Please correct me if iam wrong. I think we can acheive it by using the SOAP adapter and checking the option "Do not use SOAP envelope" (Now it will be like HTTP adapter) and by using MessageTransformBean we can so the content conversion and send the flat file to them.

But looks like I am complicating the things for simple bypass scenario. I ask them to provide the FTP details if they possess. So that I can send to there directory with there file name and they are looking into it.

Now the question is I have a requirement to send the output file in the format Output_<Currentdate>.txt

How can I pass the current date in the file name dynamically without using payload?

Pls share ur suggestions.

Thanks

Deepthi.

Former Member
0 Kudos

Hi,

How can I pass the current date in the file name dynamically without using payload? - you can do this using Add timestamp parameter in receiver file adapter..........otherwise you will have to make a UDF to get the current date in target filename and map this UDF output to a header node and you will have to use adapter specific identifiers in target file adapter in ID.

moreover if your req is to send source file to target application as a file, then you will have to use receiver file adapter...............otherwise either by HTTP or SOAP you will send your source file data as a HTTP msg or a SOAP msg, which the target application will need to process and save this data as a file in your target application.

Regards,

Rajeev Gupta

Former Member
0 Kudos

Hi Rajeev,

Thank you for the UDF suggestion. I know how to do it by making use of module "AF_Modules/DynamicConfigurationBean" Since the date is not coming in my payload. I need to use dynamic configuration UDF.

>> otherwise either by HTTP or SOAP you will send your source file data as a HTTP msg or a SOAP msg

Are you sure that by making use of HTTP or SOAP adapter we cannot send flat or csv files?

I need to know about these because I have other scenarios where I need to send flat files by making use of HTTP/SOAP adapter. No way we can acheive it?

Former Member
0 Kudos

Hi,

by using HTTP or SOAP adapter, you can only send a HTTP msg or a SOAP msg to a target application......... then your target application needs to process this msg data and during this processing, your target application can write a flat file from this msg data to the target file system.....

But directly sending files via SOAP adapter to target file system is not feasible.

Regards,

Rajeev Gupta

Answers (1)

Answers (1)

former_member537867
Active Contributor
0 Kudos

Hi Deepthi,

Following are the parameters should be set in receiver HTTP adapter:

Addressing Type: URL address

Target Host:

Service Number:

Path:

For instance if u have a URL like this:

http://z305.natoil.com:5556/invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

Target Host:z305.natoil.com

Service Number:5556

Path:/invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

Check this weblog for your reference:

/people/siva.maranani/blog/2005/09/15/push-data-to-mvc-architectured-application-using-xi

Also see this which may help you:

/people/kausik.medavarapu/blog/2005/12/29/csv-file-lookup-with-http-request-and-response-in-xi

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

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

For sending the file with same name refer the blog:

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards,

Vinod.