I have developed a custom endpoint (non-CXF) that extends ProviderEndpoint. I have added the attributes useJBIWrapper and useSOAPEnvelope to the endpoint and can be configured through xbean.xml. So the component needs to be able to:
(1) accept JBI-wrapped messages and return result JBI-wrapped; or (2) accept SOAP-enveloped messaged and return SOAP-enveloped messages; or (3) accept XML payload without unwrapped and similarly return unwrapped result. To do this, I think it proper to use: org.apache.servicemix.soap.interceptors.jbi.JbiInInterceptor and org.apache.servicemix.soap.interceptors.jbi.JbiOutInterceptor I have the endpoint extending org.apache.servicemix.soap.api.InterceptorProvider and have implemented getInterceptors() to return an instantiation of the JBI interceptors based on the InterceptorProvider.Phase. How do I configure ServiceMix to intercept messages to and from the endpoint and to let it know that it should use the endpoint itself (or some other InterceptorProvider if that's preferable) as its InterceptorProvider. Should the endpoint itself call the interceptor to handle the message? I took a look at the cxf-se-bc endpoint, but they are using CXF-specific Interceptor and InterceptorProvider (in package import org.apache.cxf.interceptor.Interceptor) along with a CXF-specific Server objects. Is there a use case in a sample app that I have happened to miss? Thanks in advance. Kv Chaos -- View this message in context: http://www.nabble.com/Add-JBI-interceptors-on-custom-ProviderEndpoint-tp23657005p23657005.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
