cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving XML document and getting attachment via URL

Former Member
0 Kudos

What is the best method to retrieve a file from a provided URL. Here is the scenario. A system will send us an XML document via an HTTP post but the source system is unable to send us the associated attachment as a MIME attachment instead in the XML they will include a extra node with the URL to a file we need to get. What is the ideal method of retrieving this file once we receive the XML message. If the provided link was an ftp site we would hold the message in BPM and use the file adapter but since this is a full url such as http://someserver.com/myfile/file.doc we are looking for the best approach. On thought was a Java Proxy.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

there are just two approaches:

easy one - java proxy

more diffcult - creating sync adapter for http xmls

I'd go for java proxy (if possible from secutiry point of view)

as you will have the link (so no "adapter configuration" necessary in your case)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Thanks Michal for the quick response.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

no problem

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

one more thing:

remember if the file will be big (more then a few seconds to get it)

do it in a BPM and as asyn java proxy (not sync)

acyn call to get the file and asyn call to send java proxy to BPM

(with correlation)

this way you will not have timeout issues... (trust me)

Regards,

michal

Answers (0)