Both Integer and int are serialized as xsd:int. By default, xsd:int is
deserialized to int. For your particular method, you need to
deserialize to Integer, which you can do with a custom mapping. Of
course, this means all xsd:int will be deserialized to Integer, which
probably breaks any method that has an int parameter.
Scott Nichol
----- Original Message -----
From: "Tanmay Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 9:21 AM
Subject: Silly Error
> Hi all,
>
> I am getting an strange error of no such method with the following
code.
>
>
> My method signature for Webservice is
> public float testMethod(String city, Integer p)
>
> The parameter setting part of Client code is like this:
>
>
> Vector params = new Vector();
> params.addElement(new Parameter("city", String.class, "Tokyo",
null));
> Integer p = new Integer(44);
> params.addElement(new Parameter("p", Integer.class, p, null));
> call.setParams (params);
>
> Exception says "java.lang.NoSuchMethodException:
> TanWS.testMethod(java.lang.String,int)"
> Basically it converts the Integer wrapper class to prinmitive int.
>
> DO I need to do something special in SOAPMappingRegistry class for
this.
> I am using SOAP-2_3_1 and Tomcat 4.0.
>
> Please response to this.
>
> TAI,
> Tans
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>