isoman
isoman

Reputation: 762

marshal/unmarshal a java method

I have a java class that contain a method with some logic control . This class is avaible as output via a webservice method to a java swing client .

My question sounds crazy but is it possible to marshal/unmarshal the method to make it available to the client when he generate the class from the wsdl file ?

Thanks.

ps:I'm using Metro/jax-ws and glassfish 3.1.1.

Upvotes: 0

Views: 1106

Answers (3)

Rahul Maurya
Rahul Maurya

Reputation: 537

Marshalling" refers to the process of converting the data or the objects into a byte-stream, and "unmarshalling" is the reverse process of converting the byte-stream back into their original data or object. The conversion is achieved through "serialization".

The purpose of the "marshalling/unmarshalling" process is to transfer data between the RMI systems.

For more http://ws.apache.org/old/jaxme/manual/ch02s02.html

Upvotes: -1

MattR
MattR

Reputation: 7048

Why not provide this class (your VO) to the client so both the server and client are marshalling/unmarshalling the same class? Then both can use the your method...

Upvotes: 0

davidfrancis
davidfrancis

Reputation: 3849

You mean so you can send some logic down to the client to be executed there?
I'm afraid the answer is no - this is not how web services work.
All the logic is performed on the server side.

Why do you wish to do this?

Upvotes: 2

Related Questions