H Lahiru,
Yeah, I see, for this, we can give the namespace in the Xpath itself, like
the following:-
<property name="host"
expression="//*[local-name()='host' and namespace-uri()='
http://ws.apache.org/ns/synapse']"/>
Cheers,
Anjana.
On Mon, Oct 6, 2014 at 9:36 AM, Lahiru Sandaruwan <[email protected]> wrote:
> Created a Jira for this... https://wso2.org/jira/browse/ESBJAVA-3350
>
> On Mon, Oct 6, 2014 at 10:16 AM, Lahiru Sandaruwan <[email protected]>
> wrote:
>
>> Hi Anjana,
>>
>> I tried that. But when i save, declaration of namespace "
>> http://ws.apache.org/ns/synapse" goes away(does note get saved). That
>> is the issue.
>>
>> Thanks
>>
>> On Mon, Oct 6, 2014 at 6:53 AM, Anjana Fernando <[email protected]> wrote:
>>
>>> Hi Lahiru,
>>>
>>> You can run an Xpath in the usual way for this message also; In the
>>> place you define the expression, simply first declare the namespace "
>>> http://ws.apache.org/ns/synapse" with a namespace prefix, e.g. ns1, and
>>> you can put Xpath expressions with that namespace prefix, e.g.
>>> "/ns1:file/ns1:endpoint/ns1:host".
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Sun, Oct 5, 2014 at 5:05 PM, Lahiru Sandaruwan <[email protected]>
>>> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> Is $subject a bug?
>>>>
>>>> Store get changed to following automatically,
>>>> <axis2ns9:store xmlns:axis2ns9="http://ws.apache.org/ns/synapse"
>>>> messageStore="A"></axis2ns9:store>
>>>>
>>>> I receive this message to a proxy defined in ESB, and the message has
>>>> this namespace.
>>>>
>>>> E.g.
>>>> <file xmlns="http://ws.apache.org/ns/synapse">
>>>> <endpoint>
>>>> <host>myftphost</host>
>>>> <username>username</username>
>>>> </endpoint>
>>>> </file>
>>>>
>>>> This namespace is a special one, which is used to define all synapse
>>>> configs. Is there a way to run a Xpath to access elements in this
>>>> message?
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Committer and PMC member, Apache Stratos,
>>>> Senior Software Engineer,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: [email protected] cell: (+94) 773 325 954
>>>> blog: http://lahiruwrites.blogspot.com/
>>>> twitter: http://twitter.com/lahirus
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: [email protected] cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: [email protected] cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
--
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev