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

Xml File polling

  • 1.  Xml File polling

    Posted Wed June 23, 2004 07:37 PM

    In flat file polling we use input variable name as ‘ffdata’ type ‘Object’ in the service input.
    what do we use( variable name and type) if the file is XML and not flat file?


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


  • 2.  RE: Xml File polling

    Posted Wed June 23, 2004 08:26 PM

    Rana,

    use variable “contentStream” type object as the input for filepolling (XML).

    HTH,


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


  • 3.  RE: Xml File polling

    Posted Wed June 23, 2004 08:37 PM

    Rana,

    When you set up the file polling port, there is an option to set the content type there. If you set the content type to text/xml, then it will invoke the xml content handler. In this case, the receiving flow will need a node object to receive the data.

    If you decide to use the default, it requires a java input stream named ffdata.

    You can do a real simple test to see if this works by creating a flow with the input of ffdata as an object.

    Then use pub.io:streamToBytes to convert it to bytes. Then, use pub.string:bytesToString to convert to string.

    Map this string to the message input to pub.flow:debugLog and it should write the entire message to the server log as a test.

    I used this procedure to determine initially how the file polling mechanism worked. It is mainly used for flat files. The reason the content type input box is available is in case you decide to create, register and use your own custom content handler.

    Hope this helps.

    Ray


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


  • 4.  RE: Xml File polling

    Posted Mon August 02, 2004 12:50 PM

    Hi,

    In processing service, is there any way to refer the filename that is being processed?

    Regards,
    Abdul


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


  • 5.  RE: Xml File polling

    Posted Mon August 02, 2004 12:56 PM

    I got it. I can get it using pub.flow:getTransportInfo service.

    Thanks Will.

    Regards,
    Abdul.


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


  • 6.  RE: Xml File polling

    Posted Mon June 11, 2012 12:45 PM

    Hi,

    Its not working with the object - ContentStream. I’m on version 8.0


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


  • 7.  RE: Xml File polling

    Posted Mon June 11, 2012 01:10 PM

    What is the use if getTransportInfo() ??may i know??


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


  • 8.  RE: Xml File polling

    Posted Tue June 12, 2012 06:59 AM

    Are you trying to save the stream in pipeline? Stream cannot be saved and restored.


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


  • 9.  RE: Xml File polling

    Posted Fri June 15, 2012 12:32 PM

    getTransportInfo() Retrieves information about the protocol from which the current service was invoked.
    We can get the infomation regarding protocols .
    FTP
    HTTP
    SMTP
    Filepolling
    Also we can get additional headers sent from the invoking application.
    I suspect if we can get SOAP info using this service?
    For more info please refer 7-1-1_Integration_Server_Built-In_Services_Reference
    Thanks,
    Amol.


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