Hi Isuru..
If i use any other name space within payload other than synapse[1] in the
output i get the result with the prefix. If i use synapse namespace, i get
without any ns prefixes.
Do you see any option to avoid that prefix comes at first place?(other than
xslt mediator)
[1]
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<m0:services xmlns:m0="http://ws.wso2.org/dataservice
">$1</m0:services>
</soapenv:Body>
</soapenv:Envelope>
</format>
[2] <m0:services>
<service>
.........
</service>
</m0:services>
Thanks.
On 17 March 2014 18:43, Vijayaratha Vijayasingam <[email protected]> wrote:
> thanks isuru..
>
>
> On 17 March 2014 18:32, Isuru Udana <[email protected]> wrote:
>
>> Hi Ratha,
>>
>> Using synapse namespace for messages is a bad practice.
>> You may modify your PayloadFactory configurations not to add default
>> namespace by adding following to the root element of payload format.
>> xmlns=""
>>
>>
>>
>> On Tuesday, March 18, 2014, Vijayaratha Vijayasingam <[email protected]>
>> wrote:
>>
>>> Hi all;
>>> In the sequence editor, when i add synapse namespace for any of xpath
>>> related mediators, name space is getting removed. So, the xpath expression
>>> validation fails. (when i define payload factory mediator, sometimes if we
>>> don't define namespace for elements, it picks default synapse namespace)
>>> I can open the configuration in the text editor and can able to add
>>> synapse namespace.
>>> How can we overcome at UI?
>>>
>>> Thanks.
>>> --
>>> -Ratha
>>> mobile: (+94)755906608
>>>
>>
>>
>> --
>> Sent from Mobile
>>
>
>
>
> --
> -Ratha
> mobile: (+94)755906608
>
--
-Ratha
mobile: (+94)755906608
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev