Hi Dulitha,
Please try {+uri.var.email} ( note the added + sign ) this will escape the
percent encoding.
Regards
Keivn
On Wed, Feb 10, 2016 at 1:54 PM, Dulitha Wijewantha <[email protected]>
wrote:
> But when I access {uri.var.email}
> <http://localhost:9763/services/test/foo/bar/%7Buri.var.email%7D> it's
> encoded to dulitha%40wso2.com
> <http://localhost:9763/services/test/foo/bar/dulitha%40wso2.com>. When
> the backend endpoint is called -the @ sign is encoded. How do I stop this
> behavior?
>
> On Wed, Feb 10, 2016 at 1:52 PM, Kevin Ratnasekera <[email protected]> wrote:
>
>> Hi Dulitha,
>>
>> In ESB 4.9, you don't need that rfc6570-encoding: prefix before the url
>> since at default support rfc6570 encoding. But if you need legacy
>> encoding or make it backward compatible then you need to add legacy-encoding:
>> prefix before the url. This is opposite for the ESB 4.8.1.
>>
>> Regards
>> Kevin
>>
>> On Wed, Feb 10, 2016 at 1:23 PM, Dulitha Wijewantha <[email protected]>
>> wrote:
>>
>>> Hi guys,
>>> I am trying to invoke an endpoint with rfc6570-encoding (since the URI
>>> parameter has an email on it). Below is the definition -
>>> <call>
>>> <endpoint>
>>> <http uri-template="rfc6570-encoding:
>>> http://localhost:9763/services/test/foo/bar/{uri.var.email}"
>>> method="get"></http>
>>> </endpoint>
>>> </call>
>>>
>>> But I get the error -
>>>
>>> 13:13:11,075 Axis2Sender Unexpected error during sending message out
>>> org.apache.axis2.AxisFault: The system cannot infer the transport
>>> information from the rfc6570-encoding:
>>> http://localhost:9763/services/test/foo/bar/dulitha%40wso2.com URL.
>>> at
>>> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
>>> at
>>> org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:542)
>>> at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:79)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:461)
>>> at
>>> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:372)
>>> at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:89)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.handleNonBlockingCall(CallMediator.java:204)
>>> at
>>> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:87)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>>> at org.apache.synapse.rest.Resource.process(Resource.java:297)
>>> at org.apache.synapse.rest.API.process(API.java:378)
>>> at
>>> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
>>> at
>>> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
>>> at
>>> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
>>> at
>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
>>> at
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>> --
>>> Dulitha Wijewantha (Chan)
>>> Software Engineer - Mobile Development
>>> WSO2 Inc
>>> Lean.Enterprise.Middleware
>>> * ~Email [email protected] <[email protected]>*
>>> * ~Mobile +94712112165 <%2B94712112165>*
>>> * ~Website dulitha.me <http://dulitha.me>*
>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>>> *~Github @dulichan <https://github.com/dulichan>*
>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>>>
>>
>>
>
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
> * ~Email [email protected] <[email protected]>*
> * ~Mobile +94712112165 <%2B94712112165>*
> * ~Website dulitha.me <http://dulitha.me>*
> * ~Twitter @dulitharw <https://twitter.com/dulitharw>*
> *~Github @dulichan <https://github.com/dulichan>*
> *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev