I tried with a new Entity call Person and the invoke to webservice work!. Thanks!
On Tue, Sep 23, 2008 at 12:47 PM, Michael Duergner < [EMAIL PROTECTED]> wrote: > The exception looks like XFire assumes that there is a property called > accountNotExpired which has no setter method. As I have never worked with > XFire I cannot really tell you how to solve the problem with XFire, but for > the persistence layer this error would mean you have to declare the property > as @Transient. I do not know if there is a similar solution for XFire. > > > On Tue, Sep 23, 2008 at 5:01 PM, Mauriff <[EMAIL PROTECTED]> wrote: > >> >> >> Any ideas? >> >> >> >> >> >> >> Mauriff wrote: >> > >> > Hi, I want invoke a webservice, I'm using the next code: >> > UserService userService = (UserService) new XFireProxyFactory().create( >> > new ObjectServiceFactory().create(UserService.class), >> > "http://localhost:8080/services/UserService"); >> > users = userService.getUsers(new User()); >> > >> > But, When I run the app, the next exception is throws: >> > >> > javax.servlet.ServletException: >> org.codehaus.xfire.XFireRuntimeException: >> > Could not invoke service.. >> > Nested exception is org.codehaus.xfire.fault.XFireFault: No write method >> > for >> > property {http://model.app.company.com}accountNonExpired in class >> > com.company.app.model.User >> > >> > How I can fix this error? >> > >> > thanks! >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Invoke-a-Webservice.-tp19616854s2369p19629697.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > -- > Mit freundlichen Grüßen / With kind regards > > Michael Dürgner > -- Mauricio F. Ferreyra |tel #: (0351) 156-623072 | Cordoba - Argentina
