Hi John,
In your bean.xml you can do something like :
<beans>
<!-- your service class -->
<bean name="ServiceClass" class="com.Service">
<!-- JAXWS SOAP-->
<jaxws:endpoint implementor="#ServiceClass" address="/Greeter"/>
<!-- JAXRS -->
<jaxrs:server address="/jaxrsgreeter">
<jaxrs:serviceBeans>
<bean ref="#ServiceClass" />
</jaxrs:serviceBeans>
</jaxrs:server>
<!-- JAXWS HTTP Binding -->
<jaxws:endpoint implementor="#ServiceClass" address="/GreeterHttpBinding"/>
</beans>
and then have both JAX-WS and JAX-RS annotations applied to the com.Service
class at will...
By the way, as far as writing RESTful services is concerned, I do encourage you to migrate your HTTP Binding service to JAX-RS.
JAX-RS is a standard and in the end of the day you should be able to run the same code with different JAX-RS implementations
Cheers, Sergey
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland