This discussion is archived
1 Reply Latest reply: Jul 27, 2009 10:39 AM by 843849 RSS

Example consuming webservice in J9 WEME CDC

843849 Newbie
Currently Being Moderated
Hi somebody have a example consuming webservice in J9 IBM? I using ksoap in my application, in conected no ocurred erros but in return string ocurred a error:
Hello, anyone have an example in consuming a webservice IBM J9? I'm using ksoap in my application, the connection no error occurs, but the string to return ocurred a error:
Invalid stream or encoding: java.io.UnsupportedEncondingException: UTF-8 (position: START_DOCUMENT null@0:0) caused by:java.io.UnsupportedEncondingException: UTF-8; nested exception is:
java.io.UnsupportedEncondingException: UTF-8 
at java.io.InputStreamReader<init>(Unknown Source)
at org.kxml2.io.KXmlParser.setInput (Unknown Source)
at org.ksoap2.transport.Transport.parseResponse(Unknown Source)
at org.ksoap2.transport.HttpTransportSE.call(Unknown Source)
Somebody help me?
thz.
  • 1. Re: Example consuming webservice in J9 WEME CDC
    843849 Newbie
    Currently Being Moderated
    hi Shakall !
    I m use the hessian binary web service with Creme CDC. Its very similar with J9. I believe that this solution work for you too

    See the simple sample, its very simple, of the server implementation:
    http://hessian.caucho.com/#Java

    And, for the JavaMe, the client its a little different, but work fine:
    http://www.caucho.com/resin-3.0/protocols/hessian.xtp#Hessian-Client-for-a-cell-phone

    For download and upload objects (POJO), I m use JSON format. Works perfectly

    If you have any problem, post a question again!

    thanks!
    Fábio Pinheiro