axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Call.invoke parameter not getting in server side
Date Mon, 29 Aug 2005 12:07:40 GMT

I am developing a module in wsdl and axis. I have deployed the wsdl and
I am writing the client to dynamically invoke a method which contains
some arguments/parameters. But I am not getting the parameters correctly
passed or seems like it is getting missed some where.


QName inputQName // QName of input parameter

QName  returnQName // QName of return type


Inputparamaeterbeanclass obj;

All the necessary set methods are called


org.apache.axis.client.Service  service = new

   org.apache.axis.client.Call     call    =
(org.apache.axis.client.Call) service.createCall();

call.registerTypeMapping(beanclass of input parameter, inputQName,

org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of input
parameter, inputQName),        

org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of input
parameter, inputQName));  


        call.registerTypeMapping(AuthenticateResult.class, returnQName,

org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of return
type, returnQName),        

org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of return
type, returnQName));


call.setTargetEndpointAddress( new"service url") );

call.setOperationName("operation name");

call.addParameter( "arg1", inputQName, ParameterMode.IN );

call.setReturnType( returnQName );

Object  resultObj = call.invoke( new Object[] obj } );


After invoke control is going to the correct method BindingImpl class.
But in that method, the  get method of the argument is returning null.



 Priya Ruby Jose


  Associate Consultant -  Investment Banking Group

   i-flex solutions limited - Bangalore

   Tel. Office:  91-80-5759-6868




This message contains privileged and confidential information and is intended only for the
individual named.If you are not the intended recipient you should not disseminate,distribute,store,print,
copy or deliver this message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot
be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive
late or incomplete or contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version.

View raw message