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
  • 1.  Creating a java service for converting StringToFile

    Posted Fri December 28, 2012 02:28 AM

    Hi,

    I need to create a java service for converting stringtoFile.I can’t use inbuilt services like writeToFile or stringToFile.Kindly help me out…


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


  • 2.  RE: Creating a java service for converting StringToFile

    Posted Fri December 28, 2012 07:19 AM

    Hello,

    File related services are available in the PSUtilities package also. You can refer to those services.

    Cheers,
    Sasanka


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


  • 3.  RE: Creating a java service for converting StringToFile

    Posted Fri December 28, 2012 07:28 AM

    Hi Preeta,

    That is simply in java,Use File class and Read the String via BufferedInputStream and write it in to the file.
    Specify the file path which you going to write a file during run time or Hardcoded.

    regards,
    Sakthi


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


  • 4.  RE: Creating a java service for converting StringToFile

    Posted Fri December 28, 2012 11:44 AM


  • 5.  RE: Creating a java service for converting StringToFile

    Posted Fri December 28, 2012 12:56 PM

    Wonder why can’t you use built-in services for that? They are meant to be used. Are you using prior versions of webMethods 8.x?

    -Senthil


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


  • 6.  RE: Creating a java service for converting StringToFile

    Posted Sat December 29, 2012 02:02 PM

    Hi Senthil,

    Ya i know you will have this doubt…But this is what was said to do…anyways we have sorted this problem…thanks a lot for ur replies…I have seen maximum you have replied to my posts …really thanks alot…just i am updating my knowledge with this group…:slight_smile:


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