There is Call.registerTypeMapping method. First register your bean to
some XMLType QName and then use that XMLType in the addParameter. That
should do the job.

e.g.
/* obtain instances of BeanSerializerFactory and
BeanDeserializerFactory as sf and df respecitively
*/
MyXMLType = new QName("http://sample.org/xsd","BeanXMLType";);
Call.registerTypeMapping(MyBean.class, MyXMLType,sf,df);
...
...
Call.addParameter(...)
Call.addParameter("BeanParam", MyXMLType, ParameterMode.IN);
Call.addParameter(...)
...

Hope that helps,
Jayachandra

On Tue, 1 Mar 2005 17:02:20 -0000, Suzy Fynes
<[EMAIL PROTECTED]> wrote:
> 
> 
>  
> 
> Hi,
> 
>  
> 
> Can anyone tell if there is a different approach to adding a java bean
> (simple types) as a parameter for an axis web service using a java client.
> 
>  
> 
> For strings and ints the following is used
> 
>  
> 
> call.addParameter("name", XMLType.XSD_STRING, ParameterMode.IN);
> 
>  
> 
> what would be used if the parameter is an bean object?
> 
>  
> 
> Thanks
> 
> Suzy


-- 
-- Jaya

Reply via email to