You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by 倪波 <ni...@gmail.com> on 2012/08/30 08:54:59 UTC

cxf接口参数允许为空的设置!

您好:
     我在使用cxf时提供了一个接口希望其中beginTime或e
ndTime在客户端传入值时可以为空!不知道要如何设置?
我记得如果是自己定义的一个对象
可以通过注解 @XmlElement 的 nillable属性来设置,但如果直接在方法中的参数却不行?

Re: cxf接口参数允许为空的设置!

Posted by Glen Mazza <gm...@talend.com>.
We also have a Chinese-language forum:
https://groups.google.com/forum/?fromgroups#!forum/cxf-zh .

Glen

On 08/30/2012 03:47 AM, Freeman Fang wrote:
> Hi,
>
> Please in English, :-)
> Though English isn't the first language for lots of us on this forum, but it's the only way that all of us can understand each other. :-)
> Thanks
> Freeman
> -------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: http://weibo.com/u/1473905042
>
> On 2012-8-30, at 下午2:54, 倪波 wrote:
>
>> 您好:
>>      我在使用cxf时提供了一个接口希望其中beginTime或e
>> ndTime在客户端传入值时可以为空!不知道要如何设置?
>> 我记得如果是自己定义的一个对象
>> 可以通过注解 @XmlElement 的 nillable属性来设置,但如果直接在方法中的参数却不行?
>


Re: cxf接口参数允许为空的设置!

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Please in English, :-)
Though English isn't the first language for lots of us on this forum, but it's the only way that all of us can understand each other. :-)
Thanks
Freeman
-------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-30, at 下午2:54, 倪波 wrote:

> 您好:
>      我在使用cxf时提供了一个接口希望其中beginTime或e
> ndTime在客户端传入值时可以为空!不知道要如何设置?
> 我记得如果是自己定义的一个对象
> 可以通过注解 @XmlElement 的 nillable属性来设置,但如果直接在方法中的参数却不行?