Hi All, When serializing a Bean Mediator in ESB management console, a namespace is adding in the configuration as shown below
<*axis2ns4*:bean xmlns:axis2ns4="http://ws.apache.org/ns/synapse" class="ClassA" action="CREATE" var="x" property="property_name" value="value" target="target"></*axis2ns4:*bean> AFAIK this has occurred due to defining a synapse namespace as shown below, while creating the OMElement inside the serialize method of the BeanMediator. private static final QName BEAN_Q = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "bean"); OMElement beanElem = fac.createOMElement(BEAN_Q); Instead this can be defined as, OMElement beanElem = fac.createOMElement("bean", synNS); Please correct me if this is wrong. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
