aspose file tools*
The moose likes Web Services and the fly likes Axis1 Serialization/Deserialization Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis1 Serialization/Deserialization Issue" Watch "Axis1 Serialization/Deserialization Issue" New topic
Author

Axis1 Serialization/Deserialization Issue

Andrew Prinoli
Greenhorn

Joined: Jan 11, 2007
Posts: 22
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

Joined: Jan 11, 2007
Posts: 22
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

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Jan 11, 2007
Posts: 22
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis1 Serialization/Deserialization Issue