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
Expand all | Collapse all

Procedure group autogenerated WSDL and maxLength attribute

  • 1.  Procedure group autogenerated WSDL and maxLength attribute

    Posted Fri September 02, 2011 08:07 PM

    Hello,

    Is there anyway to have the generated WSDL include the maxLength attribute for string types?

    Thanks.


    #webMethods
    #Mainframe-Integration
    #ApplinX


  • 2.  RE: Procedure group autogenerated WSDL and maxLength attribute

    Posted Sun September 04, 2011 03:50 PM

    Hi Erik,

    Currently, there is no way for you to generate the WSDL file with maxLength attribute for string types.

    You can check the length of strings passed to an ApplinX procedure from within the procedure. If a certain string is too long you can throw an exception or just return a “String too long” message in the procedure’s output.
    Another option is checking the string length in application consuming the web service.

    However, defining the maxLength of a string type, sounds to me like a very good idea.
    You should definitely post this enhancement in Brainstorm community.

    I hope this helps,
    Ohad


    #Mainframe-Integration
    #webMethods
    #ApplinX