Skip to Content
avatar image
Former Member

Receiving XML document and getting attachment via URL

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 we are looking for the best approach. On thought was a Java Proxy.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 27, 2007 at 08:30 PM


    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)




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

    Add comment
    10|10000 characters needed characters exceeded

    • 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) 😊