Hi OK,then how about falling back to your original fix (which uses) script mediator, encode http://www.linkedin.com/pub/XXXXX-XXXX/87/998/935 to http%3A%2F%2Fwww.linkedin.com <http://2fwww.linkedin.com/>% 2Fpub%2FXXXXX-XXXX%2F87%2F998%2F935. basically replace : and / then use setup mediator then use header mediator <header name="To" expression="<<add encoded rul>>"/>, and send request via Default endpoints to send message.
Cheers, Dushan On Mon, Feb 17, 2014 at 11:03 AM, Jay <[email protected]> wrote: > Hi Dushan, > > LinkedIn API required URL encoded value, such as; > > http://www.linkedin.com/pub/XXXXX-XXXX/87/998/935 should to be encoded in > to > > http%3A%2F%2Fwww.linkedin.com%2Fpub%2FXXXXX-XXXX%2F87%2F998%2F935. > > But if we use fn:base64Encode(), value is encoded in to > > "aHR0cDovL3d3dy5saW5rZWRpbi5jb20vcHViL3dzbzJjb25uZWN0b3ItYW > JkZXJhLzg3Lzk5OC85MzU%3D". > > this value is not accept by LinkedIn api. > > Thanks, > > > > > > > -- > View this message in context: > http://wso2-oxygen-tank.10903.n7.nabble.com/Encode-Url-in-ESB-tp92179p92255.html > Sent from the WSO2 Development mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Dushan Abeyruwan | Associate Tech Lead Integration Technologies Team PMC Member Apache Synpase WSO2 Inc. http://wso2.com/ Blog:http://dushansview.blogspot.com/ Mobile:(0094)713942042
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
