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

Processing FlatFile On TN

  • 1.  Processing FlatFile On TN

    Posted Thu August 18, 2011 11:16 AM

    Hi All
    I am Trying To Create a Flatfile Document Type in TN COnsole When I create a FF Document Type .I test For Document Type match i refer to flatfile its showing

    There was an error in trying to get XML header information (DOCTYPE and DTD). The document is probably not valid XML.

    Any Help Appreciated


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 2.  RE: Processing FlatFile On TN

    Posted Thu August 18, 2011 02:27 PM

    How did you create document type as Flat File in TN?

    Also how did you route the flat file usingg routeFlatFile and all identifiers,stream object to TN?

    HTH,
    RMG


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Processing FlatFile On TN

    Posted Thu August 18, 2011 05:29 PM

    Please review the TN documentation. It provides the steps for setting up and processing flat files.


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 4.  RE: Processing FlatFile On TN

    Posted Fri August 19, 2011 06:19 AM

    I have created flatfile TN DocumentType on TN COnsole.
    In Developer I created a Gateway flow service in that i have used gateway service specification for that i have given flatfile as input to ffdata variable and also specified the Required TNparams like sender id, receiver id and then i used TN built in service to route the flatfile to TN

    I read the Documentation But i am:confused::confused:


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 5.  RE: Processing FlatFile On TN

    Posted Fri August 19, 2011 04:24 PM

    In TNparams you need to specify the TN doc type.


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 6.  RE: Processing FlatFile On TN

    Posted Fri August 19, 2011 05:23 PM

    Set these exact same fields under the TNparams in the routeFlatFile service step for doc type/profile recognition etc…

    TNparams/
    [COLOR=#0000ff]DoctypeName
    SenderID
    ReceiverID
    [/color]

    [B][/b]HTH,
    RMG


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 7.  RE: Processing FlatFile On TN

    Posted Thu August 25, 2011 03:00 PM

    Hi i have given Document type name also But i am not
    i have created one flat file using convert to string Service
    the same flat file only am sending to TN
    i used gateway service specificatn
    for that i have given flatfile as input
    TN Params i have specified
    I have created one flatfile TN document type
    i used same flatfile to test TN document type but it is showing error
    that the document is not in valid xml form

    please give any hints


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 8.  RE: Processing FlatFile On TN

    Posted Thu August 25, 2011 05:32 PM

    Also are you doing string to stream object conversion and then sending it via routeFlatfile?

    Make sure the doc type you created in TN is not XML type:

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 9.  RE: Processing FlatFile On TN

    Posted Mon September 05, 2011 01:33 PM

    I Input the flafile as Stream only and also TN Document type as flatfile only
    then also am not getting


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 10.  RE: Processing FlatFile On TN

    Posted Wed September 07, 2011 04:07 PM

    Hi Prachi,

    I have recently implemented what you are trying.

    Steps that i have followed.

    1. Read the file as bytes and call the EDIINT:send service.
    2. Map the bytes to content in EDIINT:send service and provide the sender is and receiver ID.
    3. Also, set the content type to application/csv.

    Try this thing , if it doesnt work out then i’ll mail you the sample code.

    Thanks,
    Amit


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 11.  RE: Processing FlatFile On TN

    Posted Wed September 07, 2011 04:25 PM

    “Read the file as bytes and call the EDIINT:send service”

    You should convert it to stream object only and EDIINT:send.

    HTH,
    RMG


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: Processing FlatFile On TN

    Posted Wed September 07, 2011 05:17 PM

    you can go through TN documentation to get the solution. Even i have learned something from documentation.


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 13.  RE: Processing FlatFile On TN

    Posted Wed September 07, 2011 05:22 PM

    you bet:


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 14.  RE: Processing FlatFile On TN

    Posted Thu September 08, 2011 10:50 AM

    i created one flatfile DocumentType in TN and i tried to check the Document type with respect to flatfile its showing following error

    ErrorMessage:
    TRNCONS.000030.000016
    ERROR






    DocTypePanel
    TestAction
    Wed Jun 08 14:44:41 GMT+05:30 2011
    There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.


    com.wm.ui2.UiException: wm.tn.doctype:getAllMatches

    com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

    null
    wm.tn.doctype:getAllMatches
    com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

    null
    null

    com.wm.ui2.UiException: wm.tn.doctype:getAllMatches

    com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

    at com.wm.ui2.UiException.handle(UiException.java:215)
    at com.wm.ui2.UiException.handle(UiException.java:184)
    at com.wm.app.tn.ui.Server.invoke(Server.java:388)
    at com.wm.app.tn.ui.doctype.DocTypePanel$10$1.run(DocTypePanel.java:397)
    



    wm.tn.doctype:getAllMatches

    com.wm.app.tn.doc.CorruptXMLException
    There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

    com.wm.app.tn.doc.CorruptXMLException: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

    at com.wm.app.tn.doc.CorruptXMLException.badXmlHeader(CorruptXMLException.java:89)
    at com.wm.app.tn.doc.XMLDocType.checkDocType(XMLDocType.java:289)
    at com.wm.app.tn.doc.XMLDocType.recognize(XMLDocType.java:253)
    at com.wm.app.tn.doc.BizDocTypeReg.recognize(BizDocTypeReg.java:336)
    at com.wm.app.tn.doc.BizDocTypeReg.recognizeAll(BizDocTypeReg.java:457)
    at wm.tn.doctype.getAllMatches(doctype.java:392)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:439)
    at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:635)
    at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
    at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
    at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:232)
    at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
    at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
    at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:266)
    at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
    at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:384)
    at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:539)
    at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:384)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:226)
    at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
    at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:160)
    at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:190)
    at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:354)
    at com.wm.util.pool.PooledThread.run(PooledThread.java:131)
    at java.lang.Thread.run(Thread.java:619)
    

    any valuable suggestion will be great help!!!


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: Processing FlatFile On TN

    Posted Thu September 08, 2011 11:24 AM

    i have attached the gateway service that i tried to send flatfile to TN please let me know what are the faults
    SendFlatFile.zip (6.17 KB)


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 16.  RE: Processing FlatFile On TN

    Posted Thu September 08, 2011 02:07 PM

    we will see if time allows:…

    But can you describe the logic you have put in place and errors you are getting:

    HHT,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 17.  RE: Processing FlatFile On TN

    Posted Mon September 19, 2011 08:05 AM

    Hi Amit I tried But it s not working Can you please send me the sample code:sad:


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 18.  RE: Processing FlatFile On TN

    Posted Wed October 05, 2011 08:23 PM

    Seems you are in a wrong site/thread…


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB