dev@jax-ws.java.net

Re: JAX-WS Null Parameter problem

From: Potociar Marek <Marek.Potociar_at_Sun.COM>
Date: Tue, 02 Feb 2010 14:28:24 +0100

Try to change the parameter types from primitive values to their
wrapper class types (e.g. int -> Integer, etc.).

Marek





On 2.2.2010, at 14:14, Chinces Diana wrote:

> Yes, I know that.
>
> My questions was how do I get to send to parameters? Even though the
> SOAP request is correct I still receive the null/0 parameters.
>
> Do you have any suggestions?
>
> Diana Chinces
>
>
> From: Potociar Marek <Marek.Potociar_at_Sun.COM>
> To: dev_at_jax-ws.dev.java.net
> Sent: Tue, February 2, 2010 3:11:43 PM
> Subject: Re: JAX-WS Null Parameter problem
>
> I would guess it is because null is not a valid primitive value.
>
> Regards,
> Marek
>
>
>
>
>
> On 2.2.2010, at 13:46, Chinces Diana wrote:
>
>> Hi,
>>
>> I have encountered the following issue when developing a Java Web
>> Service with JAX-WS: when calling the web method I always receive
>> null parameters as input. If I use primitive types for the
>> parameter types I get 0 instead of null.
>>
>> Do you have any idea why? Any suggestions would be appreciated.
>>
>> Thanks,
>>
>> Diana Chinces
>>
>>
>>
>
>
>