Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

JAXB 2.0 now supports StAX natively and integrates easily into ActiveSOAP.

Here is an example application which demonstrates writing a simple POJO based services using purely JAXB and letting ActiveSOAP be the REST or SOAP stack and handling the HTTP or JMS transports for you.

First you need some kinda service to expose. So we wrote a little interface.

An error occurred: cvs.activesoap.codehaus.org. The system administrator has been notified.

There's a method on this interface which accepts a regular Java POJO marshalled via JAXB. We can have as many methods as we like all auto-published, the only requirement is that the parameter must be a type marshalled by JAXB, so that when we register it with JAXBRegistry it can handle the XML marshalling.

Then if we register an implementation of this interface with the JAXBRegistry we can automatically publish the service as both REST and SOAP endpoints...

An error occurred: cvs.activesoap.codehaus.org. The system administrator has been notified.
  • No labels