Re: [Dev] Switch case is not working in the proxy

2015-03-23 Thread Shakila Sivagnanarajah
Hi Keerthika, You can get the transport header property named 'Action' as shown below property name=transportAction expression=$trp:Action / switch source=get-property('transportAction') case regex=urn:createAndUpdateLeads /case /switch Thank you On Mon, Mar 23, 2015 at 12:04 PM,

Re: [Dev] Switch case is not working in the proxy

2015-03-23 Thread Shakila Sivagnanarajah
Hi Keerthika, Can you try by setting Accept-Charset as UTF-8 in header. Thank you. On Mon, Mar 16, 2015 at 12:14 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi Elil, I have added the Action header. Thanks, On Mon, Mar 16, 2015 at 12:06 PM, Elilmatha Sivanesan

[Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Hi All, I am using switch mediator in the following proxy. When I invoking the proxy I am getting the warning: *SwitchCase Provided character sequence for switch case condition is 'null'. Switch case will not be executed*. *Proxy:* ?xml version=1.0 encoding=UTF-8? proxy

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Shakila Sivagnanarajah
Did you set the scope of the property 'Action' as transport? On Mon, Mar 16, 2015 at 11:36 AM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi All, I am using switch mediator in the following proxy. When I invoking the proxy I am getting the warning: *SwitchCase Provided character

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Hi Elil, I have added the Action header. Thanks, On Mon, Mar 16, 2015 at 12:06 PM, Elilmatha Sivanesan elilma...@wso2.com wrote: make sure you have added Action header and value urn:createAndUpdateLeads when testing via postman/rest.. On Mon, Mar 16, 2015 at 11:59 AM, Keerthika

Re: [Dev] Switch case is not working in the proxy

2015-03-16 Thread Keerthika Mahendralingam
Please find the wire log: [2015-03-16 11:56:26,191] DEBUG - wire POST /services/marketo HTTP/1.1[\r][\n] [2015-03-16 11:56:26,192] DEBUG - wire Host: keerthikas-macbook-pro.local:8280[\r][\n] [2015-03-16 11:56:26,192] DEBUG - wire Connection: keep-alive[\r][\n] [2015-03-16 11:56:26,192]