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.  Problem setting BrokerDate in using C API

    Posted 08/15/02 10:35 PM

    Hello,
    I’m trying to set up a BrokerDate using the the “C” API awNewBrokerDate function, but I’m getting a compilation error.
    I’m doing the following:

    BrokerDate timeStamp;
    timeStamp = awNewBrokerDate(yr,mon, day, hr, min, sec, 0);
    err = awSetDateField(e,“INSERT_TIMESTAMP”,timeStamp);

    Variables yr, mon, day, hr, min, and sec are integers with a value already assigned.
    When I compile, I get the following error in the second line of code.

    Operation between types “struct BrokerDate” and “struct BrokerDate*” is not allowed.

    Then I made the following change to the timeStamp definition:

    BrokerDate *timeStamp;

    Now I get the same compilation error but in the third line of code (awSetDateField).

    It might be a minor detail that I’m overlooking, but I need another pair of eyes to look at it.
    Thanks for your help.


    #webMethods
    #Integration-Server-and-ESB
    #broker
    #Universal-Messaging-Broker


  • 2.  RE: Problem setting BrokerDate in using C API

    Posted 08/15/02 11:04 PM

    Your change to the BrokerDate declaration is definitely the right thing to do. Change the third line to:

    err = awSetDateField(e, “INSERT_TIMESTAMP”, *timeStamp);

    The function expects a struct parm, not a pointer so you need to dereference the pointer.


    #webMethods
    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB


  • 3.  RE: Problem setting BrokerDate in using C API

    Posted 08/16/02 12:07 AM