I am trying to setup a UserService via Spring that takes a userId, and
returns a User object.

I setup a LoggingInterceptor, and I seem to be getting a user object back:
*INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers: {SOAPAction=[""], Accept=[*]}
Messages:
Payload: <soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ns1:getUser
xmlns:ns1="http://service.baselogic.com/";>
<userId>-1</userId></ns1:getUser></soap:Body></soap:Envelope>
--------------------------------------
14-Apr-2008 10:02:32 org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding: UTF-8
Headers: {Content-Length=[1576], Date=[Mon, 14 Apr 2008 17:02:32 GMT],
SOAPAction=[""], Server=[Apache-Coyote/1.1], content-type=[text/xml;charse
t=UTF-8]}
Messages:
Message:

Payload: <soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ns1:getUserResponse
xmlns:ns1="http://service.baselogi
c.com/"><return><ns2:address xmlns:ns2="http://domain.baselogic.com
"><ns2:address>725 Florida Street #5</ns2:address><ns2:city>San
Francisco</ns2
:city><ns2:country>US</ns2:country><ns2:id>-1
</ns2:id><ns2:postalCode>94110</ns2:postalCode><ns2:province>CA</ns2:province><ns2:version>1</ns2:ve
rsion></ns2:address><ns2:confirmPassword xmlns:ns2="
http://domain.baselogic.com"; xmlns:ns3="
http://www.w3.org/2001/XMLSchema-instance"; ns3:nil="t
rue" /><ns2:email xmlns:ns2="http://domain.baselogic.com";>
[EMAIL PROTECTED]</ns2:email><ns2:firstName xmlns:ns2="
http://domain.baselogic.com";
>Mick</ns2:firstName><ns2:id
xmlns:ns2="http://domain.baselogic.com";>-1</ns2:id><ns2:lastName
xmlns:ns2="http://domain.baselogic.com";>Knutson</ns
2:lastName><ns2:password
xmlns:ns2="http://domain.baselogic.com";>12dea96fec20593566ab75692c9949596833adc9</ns2:password><ns2:passwordHint
xmlns:n
s2="http://domain.baselogic.com";>A male
kitty.</ns2:passwordHint><ns2:phoneNumber xmlns:ns2="
http://domain.baselogic.com";>(415) 555-1804</ns2:pho
neNumber><ns2:roles xmlns:ns2="http://domain.baselogic.com"; xmlns:ns3="
http://www.w3.org/2001/XMLSchema-instance"; ns3:nil="true" /><ns2:username
xmlns:ns2="http://domain.baselogic.com";>mickknutson</ns2:username><ns2:version
xmlns:ns2="http://domain.baselogic.com";>1</ns2:version><ns2:websit
e xmlns:ns2="http://domain.baselogic.com";>http://baselogic.com
</ns2:website></return></ns1:getUserResponse></soap:Body></soap:Envelope>
*


So when I do this:

*UserManager userManager = (UserManager) factory.create();*
then *userManager.getUser("-1");* I get a <null> User Object. Not the object
I see in my soap envelope above.

How do I get my User Object? All the examples I see show me to do the same
thing I am already doing, but this does not work....
Thanks for your help....


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---

Reply via email to