axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dies Koper <>
Subject Re: How does java2wsdl work?
Date Wed, 25 Jan 2006 01:32:02 GMT
Hi Bas,

If your class follows the Javabean conventions (public getter and 
setter), Axis will pick up that field and include it in the WSDL.
Otherwise the field needs to be public.
Check out the Java->XML mapping section in the JAX-RPC 1.1 spec for details.


Bas A. Schulte wrote:
> Hi all,
> I'm trying to send an existing java class (not my app, don't have the  
> source, beyond a decompiled version to see what's in it) over the  wire 
> using Axis on both ends, with very little success.
> What I'm wondering about: how does java2wsdl work in terms of  
> establishing what attributes a given class has? It appears to derive  
> this from the methods of the class, not by looking at the (private)  
> attributes, would that be how it works?
> My problem is that the class has an array (boolean[]) for which there  
> is no getter/setter, hence it does not show up in the wsdl. It  doesn't 
> get transferred over the wire and thus the instance on the  server end 
> doesn't have this array set properly, causing some methods  to toss a 
> null pointer exception :(
> I'll have to solve it by creating a similar class, construct one in  the 
> client and send that over the wire instead. Not nice, but workable.
> Just can't seem to figure out how a) the wsdl gets created and b)  
> serialization takes place.
> Cheers,
> Bas.

Dies KOPER <> (changed on 1 July 2005)
Fujitsu Ltd - MWPF1  (changed from MWPF3 on 21 Nov 2005)
2-15-16, Shin-Yokohama, Kouhoku-ku, Yokohama, 222-0033, Japan
Tel. +81(45)-475-5605  (internal 7181-4217)

View raw message