Hi, 

We have a binding implementation like this: 
public class RawBinding extends AbstractBasicInterceptorProvider
implements Binding {
        private BindingInfo bindingInfo;

        public RawBinding(BindingInfo bindingInfo) {
                this.bindingInfo = bindingInfo;
        }

        /**
         * @see org.apache.cxf.binding.Binding#createMessage()
         */
        public Message createMessage() {
                return createMessage(new MessageImpl());
        }

        
        public Message createMessage(Message m) {
                return m;
        }

        public BindingInfo getBindingInfo() {
                return bindingInfo;
        }

}

The createMessage(Message m) method works for most transports except
http jetty. 
In jetty, protocol headers in the request got copied over to response
creating mismatched Content Length in reply. 

I have questions on the responsibilities of Binding. 
Should binding copy over all headers and transport ignore and create new
ones for reply ? (this would imply there is a problem with jetty
transport)
Should binding always return empty messages (like no arg createMessage)
?

Or should there be a if statement switch in the binding that decides the
logic based on destination type? 

Thanks, 
Ram
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

Reply via email to