• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis1 Serialization/Deserialization Issue

 
Andrew Prinoli
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing for my thesis a java project implemented ad the top of Axis1. I should implement an addition handler for Axis1 (and wss4j).
I've almost done all the work..but I have a big problem that I cannot solve..:
have to implement serialization/deserialization methods to a class (called SoapPair) using Axis serialization/deserialization.
The class SoapPair ,as the name indicates, contains a Soap message divided into header+body . At the constructor receives a MessageContext obect from Axis.


I have to implement those methods but I don't know how..
I have to call them from a test class that simulates Axis engine (passing to soappair a MessageContext obj).


Thanks in Advance
 
Andrew Prinoli
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok..I've googled around..
I've tried in the following way , but I still receive an exception (java.net.MalformedURLException) , while deserializing..


If you have any idea please help me..
Thanks a lot..
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely unrelated to your problem but the first parameter to QName

is supposed to be a namespaceURI

"typeNS" isn't a URI - it is missing a URI scheme.

URI generic syntax

Aside:
I can only think of one reason why you have to deal with object (de)serialization in Axis 1.x - because the "RPC/encoded" messaging mode was Axis 1.x default mode of operation. Current generation web services do not support RPC/encoded at all because RPC/encoded caused more trouble then it was worth. So if that is in fact at the root of your problem then you may want to reconsider your approach in your current project.

Which style of WSDL should I use?
 
Andrew Prinoli
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..my aim is to serialize/deserialize my "SoapPair" class , that contains Axis MessageContext obj (SoapPair receives this from its constructor), not serializable object(when trying to normally serialize , it returns "axis MessageContext not serializable")..
How do I serialize/deser the SoapPair class?
Do I have to use SerializationContext/Deser context? How?
Thanks in Advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic