axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Design Pattern
Date Wed, 13 Nov 2002 19:37:31 GMT

One tactic might be to have Axis recreate the over-the-wire structures on
both sides from a single WSDL file that creates the interface, using the
mapping logic in wsdl2java to map a namespace to a package name.

in this way both client and server would map
to a class called


you dont want to edit this file because it is autobuilt. Instead you create
a subclass on both sides which has the common methods you want

org.example,myapp.Realperson extends Person {

public boolean validate() {


ah, wait a minute. that doesnt work client side does it, because you cant
cast from a deserialised Person to a Realperson, unless you write a
deserializer that creates the subclass. hmmm.

I'll have to think about this some more.

----- Original Message -----
From: "Ramon Arias" <>
To: <>
Sent: Wednesday, November 13, 2002 10:43 AM
Subject: RE: Design Pattern

I was considering having a wrapper class/object that is available both on
the client and the server. This wraper/class object would have constructors
that consume the ServerSideValueObject and ClientSideBeanMapping, that way
the same behavior is available both on the server and the client. I was
wondering what would you people think about this aproach. Or whether there
is a cleaner, smarter way to achieve the same goal.

View raw message