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.  custom Operation - input Field Type

    Posted Tue April 09, 2002 09:05 AM

    hello,

    I am developping a custom adapter in which I would like to be able to set in the input tab an array of bytes :
    we would enter in the Options tab ${myArray} and in the input_field_names would appear
    Type: byte
    Name: myArray

    I have only managed to get “Type: unicode string”

    Same for the output_field_names, I need to output a byte.

    At the moment, my code looks like this:

    createGroup(“params”, new String
    {“myArray”,“myOutput”});

    setNamespace(“myArray”,INPUT_FIELD_NAMES,null);
    setNamespace(“myOutput”, OUTPUT_FIELD_NAMES, null);

    …scriptInvoke(…) {
    byte INput = getMyArray();
    setEventField(brokerevent, getMyOutput(), INput, null); // this does not work… how do I set anything different from a String here ?
    }

    public byte getMyArray() {…}
    public void setMyArray(byte b) {…}

    public byte getMyOutput() {…}
    public void setMyOutput(byte b) {…}
    }

    in advance, thank you very much,

    Cedric


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


  • 2.  RE: custom Operation - input Field Type

    Posted Wed April 10, 2002 04:27 PM

    Send me your email address. It’s easier for me to send you some of my adapter code than it is to explain it. And IMO, namespaces are about as simple quantum physics!

    tony.wold@supervalu.com


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


  • 3.  RE: custom Operation - input Field Type

    Posted Wed April 10, 2002 04:28 PM


  • 4.  RE: custom Operation - input Field Type

    Posted Thu April 11, 2002 10:28 AM