cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Cassimon" <>
Subject RE: issue with Spring client setting Object fields to null
Date Fri, 18 Sep 2009 18:32:33 GMT
I almost had the same problem, I solved it by putting the following
annotation above the getter in the User model on both server & client:


Try it and see if the id and name are filled in then.



-----Oorspronkelijk bericht-----
Van: [] Namens Mick
Verzonden: vrijdag 18 september 2009 20:04
Aan: CXF Users
Onderwerp: issue with Spring client setting Object fields to null

I have a simple cxf service that returns a User Object. When I run this is
SOAPUI with the following call:

<soapenv:Envelope xmlns:soapenv=""

I get a valid response User:

<soap:Envelope xmlns:soap="">
      <ns1:findUserResponse xmlns:ns1="">
            *<ns2:id xmlns:ns2="">9687</ns2:id>
            <ns2:name xmlns:ns2="">Mick

But with this Spring client in my Unit Test, I get a User object that has id
and name as null:

    <jaxws:client id="messageServiceClient"
        address="http://localhost:8889/webapp/cxf/MessageService" />

Can anyone help me understand what is wrong with my client?

Thank You.

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Linked IN:
Vacation Rental:

View raw message