Skip to Content
avatar image
Former Member

Webservice that gets file without receiver

Hello experts,

I want to know if following is possible in PI:

Let's say we have a SOAP Adapter that receives some input. The input is basically only a path/filename of a file I want to have. The process shall get me this file and return it base64 encoded back to the requester. There is no receiver it is just a sync request for a file.

So basically it is: give me file X, PI looks for the file gets it and returns it.

My question is:  Is this possible ? A scenario without receivers?

Thanks in advance

Aleks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jul 26, 2013 at 01:52 PM

    Hi Aleksandar,

    Your PI system can be the receiver here or you can make up a dummy receiver as well.

    Hope it helps!

    Ambrish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 26, 2013 at 10:08 AM

    Hi,

    The above scenario is possible with both sender and receiver as XI.

    And using ASMA, you can try to fetch the file from XI using NFS.

    Thanks,

    Ashok

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Ashok thank you for your answer.

      I tried to implement such a scenario. Getting the file from a network (or local) storage is just one option. But what if I decide to get the files not via the storage, but from an FTP. I want to be flexible and to be able to change the way I receive my file. My idea was to use the apdater for that but that seem not to work.

      The following diagram shows what I tried to do and shows maybe clearer what I am trying to do:

      Something like this should be possible. But i am not sure if this is the way to achiev this.

      Thanks

      Aleks

      Scenario.png (31.8 kB)
  • avatar image
    Former Member
    Jul 26, 2013 at 03:27 PM

    Hi ,

    Are you trying to call this kind of lookup (So basically it is: give me file X, PI looks for the file gets it and returns it.) in another mapping  or System ?

    My question is:  Is this possible ? A scenario without receivers?

    As Amrish & Ashok said it's possible .

    Regards

    Hari.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Hari

      "Are you trying to call this kind of lookup (So basically it is: give me file X, PI looks for the file gets it and returns it.) in another mapping  or System ?"

      Yes you are right I want to call this form another mapping in a lookup.

  • avatar image
    Former Member
    Jul 29, 2013 at 06:08 AM

    Thanks guys the orignal question is answerd. I have an additional question, but I think i will ask it in another post.

    Add comment
    10|10000 characters needed characters exceeded