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.  Webservice and boolean

    Posted 10/28/11 03:56 PM

    Hi,

    In first i’m sorry for my english.

    I explain

    I have 2 IS, with the same document publishableDoc
    In this you have other document and attribute boolean. Like this :
    PublishableDoc
    –>doc
    ----->booleanValue (objec boolean not a string)

    this document is use in return of webservice

    I generate the WSDL and i use it in the second IS for generate Webservice consummer.
    But the generating doc publishableDoc is like this :
    PublishableDoc
    –>doc
    ----->booleanValue (string with content type boolean)

    But when i call Webservice with my first doc i have this error :
    Type mismatch, String expected

    What is the problem? how can i resolved it?


    #API-Management
    #soa
    #webMethods


  • 2.  RE: Webservice and boolean

    Posted 10/28/11 04:22 PM

    Set the Java Wrapper type on the Object "booleanValue"to java.lang.Boolean and then regenerate the WSDL.

    Cheers,
    Akshith


    #webMethods
    #soa
    #API-Management


  • 3.  RE: Webservice and boolean

    Posted 10/28/11 04:30 PM

    This doc is doc generate by the wsdl in webMethods.


    #soa
    #API-Management
    #webMethods


  • 4.  RE: Webservice and boolean

    Posted 10/28/11 04:52 PM

    Can you post a sample code?


    #API-Management
    #webMethods
    #soa


  • 5.  RE: Webservice and boolean

    Posted 10/28/11 05:23 PM

    I m sorry but i can’t.

    I explain

    first IS
    Doc is :
    PublishableDoc
    –>doc
    ----->booleanValue (objec boolean not a string) wrapper boolean

    And flow service use in a webservice provider return this doc.
    With this Webservices i generate WSDL.

    Second IS
    I use WSLD of my first is for generate Webservice consummer
    And he generate this doc (DOC A)
    PublishableDoc
    –>doc
    ----->booleanValue (string with content type boolean)

    And in this IS i have also :
    the document of first IS (DOC B)
    PublishableDoc
    –>doc
    ----->booleanValue (objec boolean not a string) wrapper boolean

    On the second IS when i map DOC A in DOC B and i call webservice i have this error : Type mismatch, String expected


    #API-Management
    #soa
    #webMethods


  • 6.  RE: Webservice and boolean

    Posted 10/28/11 05:39 PM

    In the web service provider you’ll need/want to convert the Boolean object to a string (with content type boolean) before returning it to the caller. Passing objects around via web services is not a good practice. In other words, don’t use the publishable doc type as the message format of the web service. Define a message that uses strings (with type contraints as desired) instead.


    #soa
    #API-Management
    #webMethods


  • 7.  RE: Webservice and boolean

    Posted 11/02/11 10:40 AM

    Thanks for this reply.

    I change the document used in my WS


    #webMethods
    #API-Management
    #soa