• Post Reply Bookmark Topic Watch Topic
  • New Topic

Base64 encoded string deserialization - Axis

 
Ken Pelletier
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a sitiation where a certain service is occasionally returning string members of a structure, not as xsd:string, but as xsd:base64
These strings are UTF-8 and should not need to be encoded in this way.
The trouble is, the deserialzier that works faithfully for the class i'm expecting fails when it sees this in a return value, and I have no control over the service's behavior.
Is there a way to get Axis to silently convert these base64-encoded UTF-8 strings to string?
I'm using a stock BeanDeserializer.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to build and register your own Deserializer to correctly convert these. There are examples of building deserializers and registering them in the Axis docs.
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!