Hi,

I need to implement JAX WS and JAX RS services to the same endpoint in CXF.
Here, JAX WS will be used for a POST call, while JAX RS is for a GET.

In the POST call there is a SOAP message as the body and GET call will be a
normal REST call.

My example cxf-servlet.xml looks like,

* <jaxws:endpoint*
*            id="DiscoveryService"*
*            implementor="com.ex.soap.impl.DiscoveryServiceGetImpl"*
*            address="test/send"/>*

*    <jaxrs:server id="DiscoveryService_rest" address="/test/send">*
*        <jaxrs:serviceBeans>*
*            <ref bean="DiscoveryService_rest_bean"/>*
*        </jaxrs:serviceBeans>*
*    </jaxrs:server>*
*    <bean id="DiscoveryService_rest_bean"
class="com.ex.soap.impl.DiscoveryServiceGetImpl"/> *

This doesn't work for POST, but only works for GET method.

Does anyone know how to achieve this ?

Note : When the endpoint addresses are different for JAX WS and JAX RS, the
implementation works fine for both GET and POST. The issue occurs only when
the endpoint addresses are the same.

BR

*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware

Mobile: +94722241032
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to