You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Christian Bucholdt <ch...@bucholdt.de> on 2002/12/19 14:30:23 UTC
I don't know, which is wrong, Axis od .NET
Hi,
I hope it's not off topic.
Few days ago I've developed an .NET Webservice with same Methods.
Now I want to use this Methods from a java client using Axis 1.0/1.1b. If I
call one of the methods without a parameter it works fine.
But, if I want to use a method with a parameter, I get a
NullPointerException from the services method back, because the parameter is
'null'.
Know somebody this problem? What can I do? It's a problem of axis or .NET?
The parameter definition in the Java client:
call.addParameter("id",org.apache.axis.Constants.XSD_STRING,
paraName.getClass(), ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.XSD_STRING);
Object ret = call.invoke("GetSomeString", new Object[] {"t11"} );
Thanks for help
christian
Re: I don't know, which is wrong, Axis od .NET
Posted by Scott Nichol <sn...@scottnichol.com>.
My recommendation is to use WSDL2Java to generate proxy client code.
You can either use that code directly or read it to see how you should
write your client code.
Scott Nichol
----- Original Message -----
From: "Christian Bucholdt" <ch...@bucholdt.de>
To: <ax...@xml.apache.org>
Sent: Thursday, December 19, 2002 8:30 AM
Subject: I don't know, which is wrong, Axis od .NET
> Hi,
>
> I hope it's not off topic.
> Few days ago I've developed an .NET Webservice with same Methods.
> Now I want to use this Methods from a java client using Axis 1.0/1.1b.
If I
> call one of the methods without a parameter it works fine.
> But, if I want to use a method with a parameter, I get a
> NullPointerException from the services method back, because the
parameter is
> 'null'.
> Know somebody this problem? What can I do? It's a problem of axis or
.NET?
>
> The parameter definition in the Java client:
>
> call.addParameter("id",org.apache.axis.Constants.XSD_STRING,
> paraName.getClass(), ParameterMode.IN);
> call.setReturnType(org.apache.axis.Constants.XSD_STRING);
> Object ret = call.invoke("GetSomeString", new Object[] {"t11"} );
>
> Thanks for help
> christian
>
>