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.  document to clob xml

    Posted Mon October 07, 2013 12:02 PM

    What is the easiest way to convert idata document to clob object (in oracle db)? My idea below:
    Document->pub.xml:documentToXMLString->myOwnJavaService->clobe (xml)

    I have clob input in my jdbc storedProcedure adapter, and simple conversion by the line string → clob, doesn’t work.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 2.  RE: document to clob xml

    Posted Mon October 07, 2013 12:50 PM

    For the clob type are you trying to set java.lang.string in the JDBC Field type on the adapter service and it didn’t work?

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 3.  RE: document to clob xml

    Posted Mon October 07, 2013 12:54 PM

    It works fine with storedProcedureWithSignature, but not with storedProcedure adapter.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: document to clob xml

    Posted Mon October 07, 2013 01:09 PM

    What is the error you are getting any more details on that?


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: document to clob xml

    Posted Mon October 07, 2013 01:53 PM

    I can’t debug over db function code (no grants on db), but I think It might be a problem with type conversion.

    com.wm.app.b2b.server.ServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service tests:invokeAdapterService.
    [ADA.1.541] Cannot execute the SQL statement "? = call SchemaOne.packageOne.INVOKE_ADAPTER_SERVICE (?, ?, ?) ". "
    (72000/12899) ORA-12899: value too large for column “SchemaOne”.“ADAPTER_SERVICE”.“INPUT_XML” (actual: 2836, maximum: 2000)
    ORA-06512: at line 1
    "

    INPUT_XML length = 279


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: document to clob xml

    Posted Mon October 07, 2013 03:05 PM

    OK…What JDBC field type have you chosen on the adapter service for CLOB type?

    HTH,
    RMG


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: document to clob xml

    Posted Tue October 08, 2013 06:04 AM

    Both adapters
    Input type String

    storedProcedure
    Param JDBC type == CLOB

    storedProcedureWithSignature
    SQL Type == CLOB
    JDBC Type == CLOB


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods