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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Validate entry against SQL Database

    Posted 04/05/18 12:29 PM

    I am trying to validate an entry (which I manually input right now) against an oracle databse that I queried using a sql select. I need to check to make sure that entry exists in the table.


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


  • 2.  RE: Validate entry against SQL Database

    Posted 04/05/18 12:47 PM

    Hi Ryan,

    can you describe your business case in detail please?

    Your question is not quite clear to me.

    Additionally provide wM version, JDBC Adapter version as well as database version.

    Regards,
    Holger


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


  • 3.  RE: Validate entry against SQL Database

    Posted 04/05/18 01:01 PM

    A user enters information into a webform and it needs to be validate (does it exist) in the database. Users cannot enter invalid information. Linking cloud applications to hosted databases.
    wM 9.12
    JDBC_9.0_Fix10
    I honestly couldn’t tell you what the database version is.


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


  • 4.  RE: Validate entry against SQL Database

    Posted 04/05/18 03:54 PM

    Hi Ryan,

    just try to insert the data into the database (use Connection based on Local_Transaction) for this.

    when there is an issue with existing data the service should receive an exception (most likely some sort of unique key violation) and the transaction will be rolled back.
    Hopefully the tables have been designed properly to support this.

    Regards,
    Holger


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


  • 5.  RE: Validate entry against SQL Database

    Posted 04/05/18 05:11 PM

    The database access is read only so it would create an error regardless. The values will not be added. I need to make sure that the values that are being typed in are valid. Think of it as a ledger that needs to know business unit and project number to charge. A user would type in a business unit and project number, if either entry does not exist, returns an error.
    Is there a way to iterate through a database 1 row at a time? The database is 24,000 rows. I have it set up where it is validating off of the first row (Index 0) but even with a loop or repeat in place, only parses index 0


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


  • 6.  RE: Validate entry against SQL Database

    Posted 04/06/18 12:04 PM

    Hi Ryan,

    what about doing a select for the values entered in the form against the database and check for result count.
    0 means nothing was found, any positiv value means that there was at least one row found.

    If this does not help please provide more informations about your implementation.

    Regards,
    Holger


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