webMethods

webMethods

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

Bytes to String

  • 1.  Bytes to String

    Posted Tue December 18, 2007 08:05 AM

    I have one XML which contains some content feild with bytes.

    when I convert the XML string to Node and Node to document then I was getting the conent in a string which actually contains the bytes data.

    I have to convert that data into string.

    I am using bytesToString service to do that but the input for it is bytes…but I have my input int he form of String.

    Can anyone help on this please???


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


  • 2.  RE: Bytes to String

    Posted Tue December 18, 2007 12:12 PM

    Savani,

    Can you please elaborate it?
    what do you mean by “XML which contains some content feild with bytes”?

    ~Snehal


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


  • 3.  RE: Bytes to String

    Posted Tue December 18, 2007 05:12 PM

    Your issue is really confusing…what is your flow trying to do?? In the results pane are you seeing String (which its content in bytes)??Its kind fo strange…

    HTH,
    RMG


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


  • 4.  RE: Bytes to String

    Posted Wed December 19, 2007 01:49 AM

    For Example

    afafagaiiodmnvmghogiosvlvnLgio

    The data that was there in content tag is in bytes I have to convert that into string…

    when I convert the XML String to document I am getting content string in pipeline which has the bytes data…


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


  • 5.  RE: Bytes to String

    Posted Wed December 19, 2007 03:22 PM

    afafagaiiodmnvmghogiosvlvnLgio

    From where you are getting this data?? received thru TN or direct HTTP/FTP request??Is your XML has some encrypted content in it that you are expecting from the source??

    HTH,
    RMG


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


  • 6.  RE: Bytes to String

    Posted Thu December 20, 2007 01:21 AM

    I got that data converted…

    Thanks for all ur help


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


  • 7.  RE: Bytes to String

    Posted Thu December 20, 2007 02:04 AM

    Can you elaborate on how you converted it?


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


  • 8.  RE: Bytes to String

    Posted Thu December 20, 2007 02:38 AM

    Can you share the resolution part here…Thanks!!


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


  • 9.  RE: Bytes to String

    Posted Thu December 20, 2007 02:38 AM

    I have used http service to invoke bytestostring service by giving the by giving name as bytes and value as content string in the arguments of http invoke…


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


  • 10.  RE: Bytes to String

    Posted Thu December 20, 2007 02:42 AM

    Why do you need have http call?? I dont see any reason for it for this kind of coversion?? I am totally lost…

    Are you just trying to simulate the receive XML process for your testing??

    HTH,
    RMG


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


  • 11.  RE: Bytes to String

    Posted Thu December 20, 2007 03:32 AM