On 04/10/12 14:28, jbright wrote:
I did google around and got the stuff working...
Apparently,
I was able to get both the JAX-RS and JAX-WS working.... but one question
still persists.
For JAX-RS configuration, we do like this:
<jaxrs:server<b>id="restservice"* *address="/restsalesdept"*>
For JAX-WS configuration, we do like this:
<jaxws:endpoint xmlns:s="http://....../../../service/SalesDept"
serviceName="s:SalesDeptService" endpointName="s:SalesDeptPort"
<b>id="salesdept"*
implementor="#salesDept"
wsdlLocation="WEB-INF/wsdl/SalesDepartment.wsdl"
*address="/salesdept"*>
When I try to give the same ID and ADDRESS for both JAX-RS and JAX-WS, the
JAX-WS service works well but not the JAX-RS.
The JAX-RS service itself is not getting exposed.
It is not possible at the moment to share the same base path between
multiple endpoints (be it jaxws or jaxrs or the combination of the two)
Well, I thought of providing a CXF extension awhile back which would
attempt to figure out, say based on the content type or the presence of
a header like SOAPAction, etc, what kind of request it is and then
forward it to either JAXWS or JAXRS endpoint chain (as opposed to the
runtime picking up the matching endpoint based on the base address), but
it did not happen.
Cheers, Sergey
Kindly advice...
--
View this message in context:
http://cxf.547215.n5.nabble.com/complexType-Parameter-in-CXF-JAX-RS-tp5715509p5715637.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com