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.  send byte[] over webservice

    Posted 05/23/09 12:20 AM

    Hi there,

    I’ve created a service in IS which returns a byte and then I’ve created a webservice connector in a portlet project. The portlet contains a command button which refreshes the connector, thus invoking the service.

    I’m having an exception everytime the service is invoked:
    electric.util.WrappedException: java.rmi.UnmarshalException: java.io.IOException: java.lang.IllegalArgumentException: argument type mismatch

    any ideas?

    Regards,
    Rui Cabete


    #soa
    #webMethods
    #API-Management


  • 2.  RE: send byte[] over webservice

    Posted 06/01/09 11:12 PM

    you may consider to use base64 encoding the bytes, then you can change the interface type to String to avoid the type mismatch problem.


    #webMethods
    #soa
    #API-Management


  • 3.  RE: send byte[] over webservice

    Posted 06/04/09 03:16 PM

    Thanks tongwang, I’m now using base64 with success. Bu now I’m facing a new problem: Sometimes the data is to large and some I can’t send it all. Is there a way to send it using small chunks with a fixed sized via webservice?

    Regards


    #webMethods
    #soa
    #API-Management