Question

i am getting messages from Proxy client how could i know client url means i want to do a filter condition based on url so in that case i could know that which url hitting me i have tried with some sample code nut its notworking my code like this

<property name="client_url" expression="get-property('From')"/>

and also i logged it but its not returning null log is like this

LogMediator To: /services/RoleDetails, MessageID: urn:uuid:695faeb5-b26e-405d-ab7b-ce27213f5cbe, Direction: request, client_url = null

same thing working for

<property name="client_url" expression="get-property('To')"/>

Log for his

LogMediator To: /services/RoleDetails, MessageID: urn:uuid:a550ba76-201d-48c8-b069-3afdbb2b2db1, Direction: request, client_url = /services/RoleDetails

how could i know the client uri

Was it helpful?

Solution

I think You need to set 'From' property from your client.

But you can do something like this.

 <property name="from property------->" expression="get-property('axis2','REMOTE_ADDR')"/>

and

<property name="from property------->" expression="get-property('axis2','REMOTE_HOST')"/>

OTHER TIPS

you have to get that from axis2 context. refer this post

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top