cancel
Showing results for 
Search instead for 
Did you mean: 

Download File from SOAP service and send it to File Adapter

Binod_Thakur
Participant
0 Kudos

Hi All,

I have a requirement to download the file from SOAP service and and send it to FILE receiver, i.e. SOAP to FILE interface.

I am able to download the file through SoapUI but don't know how to implement same thing in PO 7.4.

I tried configuring it in Sender SOAP Axis adapter, but don't know where to mention what parameters to call downloadOldestFile method so, attachment will get downloaded. With my current configuration only wsdl file is getting downloaded but main attachment is not getting download.

We can't use normal soap adapter because we don't have option to put the URL, that's why i went for Soap Axis.
Can some one please help me on this ?

Appreciate you time!

former_member190293
Active Contributor

Hi!

Do you need to query the service periodically?

Regards, Evgeniy.

Binod_Thakur
Participant
0 Kudos

Hi Evgeniy,

We don't need to query it, whenever file will be available, PI should call downloadOldestFile method to download it.

Regards,

Binod

former_member190293
Active Contributor
0 Kudos

Hi!

Once again: you use SENDER adapter which will poll the service with 5 minutes interval (according to your settings). PI system doesn't check if the file is available or not.

Is it your requirement to query the service periodically? Or any source system must perform the request?

Regards, Evgeniy.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190293
Active Contributor
0 Kudos

Hi!

SOAP adapter with Task(Axis) as transport protocol supports getting payloads from remote services using "com.sap.aii.adapter.axis.ra.transport.http.HTTPGetter" as task class. But this task queries provided URL using GET HTTP request type.

In your case I would think about:

File sender (dummy, "Test" mode) or JobBean -> PI - > SOAP receiver (Async-Sync bridge) - > File receiver.

Regards, Evgeniy.

Binod_Thakur
Participant
0 Kudos

Hi Evgeniy,

I have tried Async -Sync bridge, with SFTP adapter instead of File adapter, it was throwing the below errorr.

Error while sending message: Cannot send message to module processor com.sap.aii.af.lib.mp.module.ModuleException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of a null object loaded from local variable 'message1'

And below is sender SFTP configuration module config for bridge.

Ref. link: https://blogs.sap.com/2014/03/26/bridges-construction-site-part-13-asynchronous-synchronous-bridge/

Please sugegst me below points

1. Do we have to use only File adapter ?

2. if not then how to resolve aobve mentioend issue.

Regards,

Binod

former_member190293
Active Contributor
0 Kudos

Hi Binod!

First of all, didn't you mention that RequestResponseBean should stay FIRST in the sequense?

Regards, Evgeniy.