cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <ning.ji...@iona.com>
Subject Re: CodeFirstTest [was Re: FW: Java first question]
Date Tue, 12 Dec 2006 02:06:09 GMT
Hi Dan,

That comes to my question. If there are some complex types used in SEI's 
method, and they can not be handled by JAXB by default. 
How can  we  make sure the JAXB can make the xml marshal and unmarshal 
right without get the type info from the SEI's annotation?

Willem.

Dan Diephouse wrote:

> No, JAXB can't deal with List<String> - but you can make it work. I 
> managed
> to have it working at one point. Its a hack. You need to convert it to an
> array and tell JAXB that the type class is String[]. I will look at 
> the test
> and see if I can get it working again...
>
> - Dan
>
> On 12/12/06, Willem Jiang <ning.jiang@iona.com> wrote:
>
>>
>> Hi Dan,
>>
>> You can take a look at the test which I add for the CodeFirstTest client
>> side test.
>> It is org.apache.cxf.jaxws.CodeFirstTest.testClient(), I commented the
>> last 2 line codes which can not work yet.
>> AFAIK, JAXB can't deal with the List<string> as default.
>> Can you point out what else I should do to make the test work?
>>
>> Regards,
>>
>> Willem.
>>
>> Dan Diephouse wrote:
>>
>> > Hi Willem,
>> >
>> > Sorry for the delayed response. Can you explain more what you mean or
>> > give
>> > an example? I'm not sure I understand.
>> > Thanks,
>> > - Dan
>> >
>> > On 12/7/06, Willem Jiang <ning.jiang@iona.com> wrote:
>> >
>> >>
>> >> Hi Eric and Dan,
>> >>
>> >> I wrote a unit test in the CodeFirstTest, and found that in code 
>> first
>> >> mode the client side can't deal with the complex type result or
>> >> parameters' marshal and unmarshal.
>> >>
>> >> Eric , IMO the WSDL first option could be the best solution.
>> >>
>> >> Dan , I have no ideal about how to build up the type info (for XML
>> >> marshal an unmarshal) in the parameters without read annotation from
>> >> SEI, Can you point it out?
>> >>
>> >> Cheers,
>> >>
>> >> Willem.
>> >>
>>
>>
>
>


Mime
View raw message