Hi everybody, I'm new to cxf and I would like to know: Is it possible to define a custom protocol binding and if so how can i implement it?
As stated in the CXF documentation it is only possible to use Soap (default), CORBA or pure XML as binding protocols. However, i would like to use a binary protocol binding, meaning that in CXF i would have my custom Message-Objects (as SOAP has its SoapMessage-Objects). I have already searched the forum for an appropriate answer but haven't found anything yet. The background of my question is the following described use case, respectively scenario: I would like to implement a specific client-server application which supports "pipeline processing" and uses TCP as underlying network protocol: Request from a client covers these following steps: 0. Perquisites: Service Interfaces which have to be implemented on the server and be invokable by a client; Messages sent as ByteStreams 1. Creation of a specific Java object (namely MyRequestMessage) with the specific request parameters. This request object has been created with JAXB (xjc) based on a defined XSD. 2. Then marshalling will be done to create a schema instance of this request. 3. As a next step this schema instance will be represented as a EXI ByteStream (W3C Efficient XML Interchange (EXI)) 4. This ByteStream will then be sent to the server (on the underlying transport layer) 5. The server invokes the appropriate service method, and creates the response message and sends it back to the client (Reverse order as the client request) A collegue of mine has done something like above based on the former XFire framework and so advised my do use the Xfire framework or the successor(CXF) to implement this scenario. However his services were based on Soap (SoapMessages) and because of that fact customization of Xfire was not as difficult. One big advantage of CXF is the use of interceptors and the interceptor chain. I have already written interceptors for each mentioned step and used the simple frontend for testing. Sorry for this long description, and thanks in advance for the support. Best regards, Christopher -- View this message in context: http://cxf.547215.n5.nabble.com/Custom-protocol-binding-tp4964209p4964209.html Sent from the cxf-user mailing list archive at Nabble.com.
