DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Read Binary data

    Posted 08/29/21 09:46 AM

    Dear Hermann,

    I have tested attached Soap service shared by you in earlier posts.

    Can you tell me how i can read only attachment data and print in output without data glue license.

    currently i can see in soapui both request xml and attachment data is printed.

    Thanks

    ---



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Read Binary data

    Posted 08/30/21 03:57 PM


  • 3.  RE: Read Binary data

    Posted 08/31/21 05:46 AM

    Hi,

    can you please be a bit more specific what you are trying to achieve? Do you want to extract just the attachment binary and pass that to the backend or???

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 4.  RE: Read Binary data

    Posted 08/31/21 06:29 AM

    Yes hermann, i just want attachment data and send to backend.

    My attachment contains soap message.



    #DataPower
    #Support
    #SupportMigration


  • 5.  RE: Read Binary data

    Posted 08/31/21 08:39 AM

    Ok, you can use for example Fetch - action to extract the attachment binary using cid:<attachment content id> and then send it directly to the backend.

    And just be to clear, Hermann is the other more experienced guy supporting this forum.

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 6.  RE: Read Binary data

    Posted 10/06/21 01:39 PM

    Correct. Can even be done with dp:url-open() is XSLT or urlopen in GatewayScript. Documented in ""Attachment Protocol":

    https://www.ibm.com/docs/en/datapower-gateways/2018.4?topic=actions-attachment-protocol



    #DataPower
    #Support
    #SupportMigration