Hi,

I was trying a sample for Builder Mediator [1] to override the default
message formatter/builder and use PlainTextBuilder/PlainTextFormatter for
application/json content type. As per the documentation [1] we should be
enable BinaryRealyBuilder/ExpandingMessageFormatter for at least one
content type in axis2.xml.

1. I tried enabling a different content-type for
BinaryRealyBuilder/ExpandingMessageFormatter and kept the defaults for
application/json type and then tried to override it using the builder
mediator. But then the Builder mediator does not work as expected and it
uses default JsonBuilder/JsonBuilder to build the message.

2. If I enable BinaryRealyBuilder/ExpandingMessageFormatter for
application/json in axis2.xml, Builder mediator works as expected.

Am I doing anything wrong when I am trying the first option? Or is (2) the
correct behaviour and we should
set BinaryRealyBuilder/ExpandingMessageFormatter for the same content type
we are trying to override?

Kindly appreciate your help on this.

Thanks,
Malintha

[1] https://docs.wso2.com/display/ESB490/Builder+Mediator

-- 
Malintha Amarasinghe
Software Engineer
*WSO2, Inc. - lean | enterprise | middleware*
http://wso2.com/

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

Reply via email to