Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while invoking Webservice : No serializer found for class java.io.ByteArrayInputStream  RSS feed

 
murali jackson
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am a fresher to webservices . I am trying to call the below webservice method in my client


When i invoke the call using the below method




Below is the excetion thrown :

No serializer found for class java.io.ByteArrayInputStream in registry org.apache.axis.encoding.TypeMappingDelegate@3541f8c1

I dont know how to proceed further, I saw one previous post in coderanch where user said to implement serializable interface, But i dont know how to do that also as I have just started learning ...

Please throw some light on this !!!

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The input stream is tied to the operating system of the client - meaningless to the service. Don't you want to send the byte[]s

Bill
 
Dave Tolls
Ranch Hand
Posts: 2818
30
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As William suggests, the signature of the service is expecting byte[]'s, so even if a ByteInputStream was serialisable it would still not be the correct thing to send.
Just send those byte[]'s.
 
murali jackson
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill and Dave !!!

It is working perfectly now ..... 

I thought Byte and InputByteStream has same properties because Byte will also pass as Stream of Bytes only right ...

Could you please tell me what is the difference between these two types.

Thanks in Advance !!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!