Hello,

I´m trying to export a manager as a webservice. I´ve been following the
whole appfuse guide to create my app.
I already have my webapp working, but I need some methods to be exposed as
web services.

If I run my app as it is, I can access
http://localhost:8080/services/UserService and
http://localhost:8080/services/UserService?wsdl
however, http://localhost:8080/services just gives me a blank page.

Anyway, I followed the steps in here:
http://appfuse.org/display/APF/Web+Services to expose my FixtureManager as a
webservice.
This are my files:

===================== FixtureManager =========================
package com.slsoftware.fanaticofut.service;

public interface FixtureManager extends GenericManager<Fixture, Long> {

    Fixture getNextFixture();

}
===================== End of FixtureManager =========================

I just wanned that method to be exposed, so I created this interface

===================== FixtureService =========================
package com.slsoftware.fanaticofut.service;

@WebService
public interface FixtureService {

    Fixture getNextFixture();

}

===================== End of FixtureService =========================

And finally, here's the implementation ...

===================== FixtureManagerImpl =========================
package com.slsoftware.fanaticofut.service.impl;

@WebService(serviceName = "FixtureService", endpointInterface = "
com.slsoftware.fanaticofut.service.FixtureService")
public class FixtureManagerImpl extends GenericManagerImpl<Fixture, Long>
implements FixtureManager, FixtureService {

    private FixtureDao    fixtureDao;

    public FixtureManagerImpl(FixtureDao fixtureDao) {
        super(fixtureDao);
        this.fixtureDao = fixtureDao;
    }

    public Fixture getNextFixture() {
        return fixtureDao.getNextFixtureByDate(new Date());
    }

}

===================== End of FixtureManagerImpl =========================

So, as far as I understood, that's all I have to do in order to be able to
see http://localhost:8080/services/FixtureService?wsdl
But is not working, I just get a blank page. I set the log level to debug,
and what I found on the initial configuration is the following message:


[fanaticofut] INFO [main] Jsr181HandlerMapping.customizeService(150) |
Exposing  service {http://service.appfuse.org}UserService to
/services/UserService
[fanaticofut] DEBUG [main] DefaultTransportManager.register(77) | Registered
transport [EMAIL PROTECTED]
[fanaticofut] DEBUG [main] Jsr181HandlerMapping.registerHandler(275) |
Mapped URL path [/services/UserService] onto handler [
[EMAIL PROTECTED]


but there's no similar message for the service I'm trying to export...

Can someone point me out what am I missing (some configuration, properties,
whatever) or what other information should I provide to try to find the
issue?

Thank you.

Alejandro

Reply via email to