Skip to Content
0

Config.s for handling file attachment from web URL using HTTP_AAE adapter in Sender channel

Jun 16, 2017 at 07:24 AM

304

avatar image

Hi Experts,

I have a requirement like need to pick a file posting through web URL and place it in target folder. A passthrough scenario. Using HTTP_AAE adapter to pick the file from web URL.

We are using SAP PI 7.31 single stack.

Please assist what are the configurations required from PI end at sender comm. channel.

Regards,
Raj.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

7 Answers

Patrick Weber Jun 16, 2017 at 09:27 AM
3

A straight answer to your question: It is not possible to use the HTTP adapter to pick up files from an FTP site as FTP and HTTP are two entirely different protocols. Any person stipulating technical requirements in your client's IT department should be able to understand that.

If you can share a bit more details about the system you are trying to connect to as well as the requirements provided by your client or the specific concerns they have around using the file adapter, we may be able to comment further.

Share
10 |10000 characters needed characters left characters exceeded
Mate Moricz
Jun 16, 2017 at 11:32 AM
2

Hi Raj,

As the others already described, the requirement is simply not possible. Try to explain to your client to use SFTP and if they still don't accept that, you need to explain them there is no workaround, they want to use a completely different protocol that is not capable of performing their requirement.

Best regards,

Mate

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Jun 16, 2017 at 10:14 AM
0

Hi Raj!

And how should you get that file from source location? By https link?

Regards, Evgeniy.

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgenity, Patrick,

We are doing manual work by picking file from file server using FileZilla and placing in target directory. We would like to automate the process through an interface. Due to security reasons clients mentioned not to use file adapter.

Regards,
Raj.

0

Hi Raj!

And why not to use SFTP adapter for that? Or do you use FileZilla in FTP mode? Why not to use FTP adapter then?

Regards, Evgeniy.

0

Yes I agree ..if you are using Filezilla in FTP mode Better to use FTP adapter

Thanks,

Guru

0

Raj,

We understand that why client is not proposing FTP to use as the credentials are sent in plain text over internet you can use FTPS here for secure connection. or SFTP as above suggested.

But you need to understand here the restriction in not from PI end if the Client is ready to expose the Files server as web server then u may use Http/Soap/Rest.

You are literally trying to connect one protocol to other which is not possible. Its like you are trying to send a mail to a person having his phone no and not his mail id which is not supported.

Br,

Manoj

2

And as for me, I can't catch the difference. If FileZilla is used now for manual downloading the file, what's the matter if PI does the same using FTP/SFTP adapter. The process will stay the same. Or the client denies using SFTP adapter for any reason?

Regards, Evgeniy.

0

Hi All,

Thanks for all your support.

I had a conversation with client person and explained the scenario and now they are agreeing to send file as attachment through web page. So no point of FTP server picking now.

For this case, may I request to know what are all the configuration changes at Sender HTTP_AAE adapter level required to do the same pass through scenario.

Thanks,
Raj.

0
Manoj K Jun 16, 2017 at 08:14 AM
0

Raj,

You need to understand the functionality of HTTP_AAE and File adapter . You usually use HTTP_AAE to connect to static web service/page.And File adapter to connect the File server .

So what is you intention of using HTTP_AAE for FTP server ?

Br,

Manoj

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Manoj,

Thanks for your comments.

I agree with you completely. Even I am in a impression like what was said above.
But Client not agreeing specifically to use file adapter & SFTP adapters (another case, but no SFTP support) for picking file. So checking the possibilities with other adapters and need to use SSL authentication as well, which is second part.

Primary part is to pick the file.

Regards,
Raj.

0

Raj,

When you say SSL authentication as well then i believe its FTPS server you can use SSL here but SFTP it would be SSH.

AFAIK you cannot connect File Server with HTTP / SOAP.

Br,

Manoj

1
gurudatta d Jun 16, 2017 at 09:27 AM
0

Hi,

I guess the Client is not accepting since only FTP is not secured ..You can go For SFTP which has almost same capabilities as FTP and it is secured .

And Normally To pick up the files from FTP location FTP/ FTPS/SFTP will be used.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Gurudatta,

Yes, due to security concerns itself, they are not accepting to use FTP and we too recommended to go with SFTP. But they don't have SFTP setup and suggesting to proceed with HTTP_AAE.

Regards,
Raj.

0
Raj Kumar L Jun 16, 2017 at 12:59 PM
0

Hi All,

Thanks for all your support.

I had a conversation with client person and explained the scenario and now they are agreeing to send file as attachment through web page. So no point of FTP server picking now. So updating the main post correctly.

For this case, may I request to know what are all the configuration changes at Sender HTTP_AAE adapter level required to do the same pass through scenario.

Thanks,
Raj.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Jun 16, 2017 at 01:17 PM
0

Hi Raj!

You can use file-to-file scenario with OS command in sender channel. Use the script to get the file by link and place it to any folder.

https://blogs.sap.com/2010/01/22/pixi-how-to-get-an-xml-file-from-a-web-page-without-own-development/

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgeniy,

Without using OS based script, may I know any standard procedure using HTTP_AAE adapter at sender comm. channel which will fetch the file attachment from web URL. As I described above, only PI interface need to pick and place in target directory.

Thanks in advance.

Regards,
Raj.

0