You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pr...@iflexsolutions.com on 2005/08/29 14:07:40 UTC
Call.invoke parameter not getting in server side
Hi
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.Service();
org.apache.axis.client.Call call =
(org.apache.axis.client.Call) service.createCall();
call.registerTypeMapping(beanclass of input parameter, inputQName,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of input
parameter, inputQName),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of input
parameter, inputQName));
call.registerTypeMapping(AuthenticateResult.class, returnQName,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of return
type, returnQName),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of return
type, returnQName));
call.setTargetEndpointAddress( new java.net.URL("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.
Regards,
Priya Ruby Jose
Associate Consultant - Investment Banking Group
www.iflexsolutions.com/services/services.asp
i-flex solutions limited - Bangalore
Tel. Office: 91-80-5759-6868
e-mail: priyaruby.jose@iflexsolutions.com
<ma...@iflexsolutions.com>
DISCLAIMER:
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.