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

how to create a String field, not a Unicode String Field?

  • 1.  how to create a String field, not a Unicode String Field?

    Posted Wed January 29, 2003 05:37 AM

    I just would like to create a String Field, not a UnicodeString Field …
    here is my code:


    monEvent.setStringField( “champ1N1”, “champ bla bla bla” );

    System.out.println( "BrokerTypeDef.FIELD_TYPE_STRING: " + BrokerTypeDef.FIELD_TYPE_STRING );
    System.out.println( "BrokerTypeDef.FIELD_TYPE_UNICODE_STRING: " + BrokerTypeDef.FIELD_TYPE_UNICODE_STRING );

    System.out.println( "monEvent.getFieldType( "champ1N1" ): " + monEvent.getFieldType( “champ1N1” ));

    The results:

    BrokerTypeDef.FIELD_TYPE_STRING: 65
    BrokerTypeDef.FIELD_TYPE_UNICODE_STRING: 66
    monEvent.getFieldType( “champ1N1” ): 66

    The BrokerEvent object “monObjet” is created using a storage class, defining the “champ1N1” field as a String (“String champ1N1”)

    I also tried with the “setField” method, but the result is the same.

    Any idea ?


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods