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

    Posted Sat May 23, 2009 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 Mon June 01, 2009 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 Thu June 04, 2009 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