IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

base64Binary

  • 1.  base64Binary

    Posted Fri October 30, 2015 08:49 PM

    Hello comunity, I test a webservice provider on IS over SOAPUI my problem its how I do send an type base64binary because my flowservice its waiting for a base64Binary {XML Schema}, I dont know how do that?, the problem is, I want send a file on binary but I investing about MTOM Streaming but me don´t understand.

    best regards.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: base64Binary

    Posted Sat October 31, 2015 04:18 AM

    Mario – Please find attached snapshot, design your service in the same way.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 3.  RE: base64Binary

    Posted Sat October 31, 2015 04:19 AM


  • 4.  RE: base64Binary

    Posted Sat October 31, 2015 04:21 AM


  • 5.  RE: base64Binary

    Posted Sun November 01, 2015 10:14 PM

    Hi Mario,

    Which wM version you are using?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 6.  RE: base64Binary

    Posted Sun November 01, 2015 10:56 PM

    Hi MR as173d thanks a lot, apologies of my english and my orthography, but my problem its the test over SoapUI because a test the flowservice before calling on web (AJAX - javascritp Object XMLHttpRequest), and I don’t now how attatch an file via binary on message SOAP, in the flow service the variable expected is base64Binary {http://www.w3.org/2001/XMLSchema}.

    Best regarts.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: base64Binary

    Posted Sun November 01, 2015 11:00 PM

    Hello Arun Kumar, the verion I Use its 8.2.

    Best regards


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 8.  RE: base64Binary

    Posted Mon November 02, 2015 11:10 AM

    Hi Mario,

    There are 2 options for creating your base64-Object:

    • get the PSUtilities from the Code section of TechCommunity
    • create a custom test flow service with a String input and String output
      – pub.string:StringToByte
      – pub.string:base64Encode

    As the Build-In service base64Enocde uses a node object as input (marked as byte in the Build-in-Services Guide) this needs to be prepared like the service described in this post.
    The Service in the PSUtilities-package handles this internally.

    You can then call this service via the IS-Admin UI to transfrom the String into the base64-Encoded String, which can be placed in the appropriate field in your Soap-Request.

    Regards,
    Holger


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 9.  RE: base64Binary

    Posted Thu November 05, 2015 12:32 PM

    Thanks alot guys, I resolve part of my problem, from SOAP message on javascript AJAX I put the String Base 64 of a PDF, but when put the String Base 64 of a Image the service crash :roll:


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: base64Binary

    Posted Thu November 05, 2015 03:02 PM

    Mario – I am not clear with your prior statement, can you please a bit more clear.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services