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.  Adding new content type to EDIINT content handler

    Posted Fri May 25, 2007 04:42 PM

    All,

    I am trying to add a new content-type to the EDIINT content handler, but am experiencing problems.
    Overview:
    I want to route the payloads of AS2 transmissions to different services by the content-type. Since the EDIINT content handler only recognizes application/edi-x12,application/edifact,application/xml content-types I need to add more for the different files I want to receive.

    I have tried to register a content handler, but I am not able to reference ContentHandlerFactory_EDIINT() from the wm.EDIINT package. Any suggestions?


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 2.  RE: Adding new content type to EDIINT content handler

    Posted Fri May 25, 2007 05:22 PM

    Did you also to set the new contenttype in IS/lib/mimetypes file? and restarted IS.

    HTH,
    RMG.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 3.  RE: Adding new content type to EDIINT content handler

    Posted Fri May 25, 2007 06:45 PM

    I have updated the mime.types file, but the error is when I try to save the java service.

    Java Code:
    import wm.EDIINT.*
    import com.wm.app.b2b.server.ServerAPI ServerAPI.registerContentHandler(“application/bai”, new ContentHandlerFactory_EDIINT());
    Error:
    packages\EDI\code\source\edi\init.java:13: package wm.EDIINT does not exist
    import wm.EDIINT.*;
    packages\EDI\code\source\edi\init.java:38: cannot resolve symbol
    symbol : class ContentHandlerFactory_EDIINT
    location: class edi.init
    ServerAPI.registerContentHandler(“application/bai”, new ContentHandlerFactory_EDIINT());

    Shouldn’t the class files from WmEDIINT\code\classes\wm\EDIINT be in the classpath?


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 4.  RE: Adding new content type to EDIINT content handler

    Posted Fri May 25, 2007 08:16 PM

    Are you sure in the IS/lib/jars whether the new classes loaded there IS expects new classes thru this classpath.

    HTH,
    RMG


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Adding new content type to EDIINT content handler

    Posted Tue May 29, 2007 03:36 PM

    I placed the class files:
    ContentHandler_EDIINT.class
    &
    ContentHandlerFactory_EDIINT.class
    in the %IS_DIR%\lib\jars folder and I am still getting an:

    ‘package wm.EDIINT does not exist’ error when trying to save the registerHandler service.

    Douglas


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Adding new content type to EDIINT content handler

    Posted Mon June 04, 2007 07:39 PM

    All,

    the resolution I found, Don’t know if this is the best way, was: I made my package that held the register and unregister services a dependent of the WmEDIINT package. I have been able to send the new content-type and it is recognized as an EDIINT document.

    Douglas


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 7.  RE: Adding new content type to EDIINT content handler

    Posted Wed June 06, 2007 12:59 PM

    Hi Douglas

    I have a similar requirement and found your posting here. I need to receive a ZIP file via AS2 and drop it on the file system. Can you provide more details how you solved your requirement?

    Thanks,
    Fritzi


    #Integration-Server-and-ESB
    #webMethods
    #edi