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, Shakila Sivagnanarajah shak...@wso2.com
wrote:

 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 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 Mahendralingam 
 keerth...@wso2.com wrote:

 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] DEBUG - wire  Content-Length: 650[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Action:
 urn:createAndUpdateLeads[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/41.0.2272.89 Safari/537.36[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept: */*[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Cookie: CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  [\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  {[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  marketoInstanceURL:
 https://667-LPB-079.mktorest.com,[\n];

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]action:updateOnly,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]lookupField:email,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]partitionName:default,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 asyncProcessing:true,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire [0x9]input:[  [\n]

 [2015-03-16 11:56:26,193] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-1,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-2,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,195] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 firstName:con-3,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire}[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire ][\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  }

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  POST
 /services/marketo HTTP/1.1

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Host:
 keerthikas-macbook-pro.local:8280

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Connection: keep-alive

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Content-Length: 650

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Action:
 urn:createAndUpdateLeads

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Cache-Control: no-cache

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5)
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Content-Type: application/json

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Accept: */*

 

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 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 Mahendralingam 
 keerth...@wso2.com wrote:

 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] DEBUG - wire  Content-Length: 650[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Action:
 urn:createAndUpdateLeads[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/41.0.2272.89 Safari/537.36[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept: */*[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Cookie: CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  [\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  {[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  marketoInstanceURL:
 https://667-LPB-079.mktorest.com,[\n];

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]action:updateOnly,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]lookupField:email,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]partitionName:default,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 asyncProcessing:true,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire [0x9]input:[  [\n]

 [2015-03-16 11:56:26,193] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-1,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-2,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,195] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 firstName:con-3,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire}[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire ][\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  }

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  POST
 /services/marketo HTTP/1.1

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Host:
 keerthikas-macbook-pro.local:8280

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Connection:
 keep-alive

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Content-Length: 650

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Action:
 urn:createAndUpdateLeads

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Cache-Control: no-cache

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  User-Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/41.0.2272.89 Safari/537.36

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Content-Type: application/json

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Accept: */*

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Encoding: gzip, deflate

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Language: en-US,en;q=0.8

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Cookie:
 CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 

[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 xmlns=http://ws.apache.org/ns/synapse;
   name=marketo
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  inSequence
  property name=marketoInstanceURL
expression=json-eval($.marketoInstanceURL)/
  property name=clientId expression=json-eval($.clientId)/
  property name=clientSecret
expression=json-eval($.clientSecret)/
  property name=input expression=json-eval($.input)/
  property name=action expression=json-eval($.action)/
  property name=lookupField
expression=json-eval($.lookupField)/
  property name=asyncProcessing
expression=json-eval($.asyncProcessing)/
  property name=partitionName
expression=json-eval($.partitionName)/
  property name=leadId expression=json-eval($. leadId)/
  property name=fields expression=json-eval($. fields)/
  marketo.init

marketoInstanceURL{$ctx:marketoInstanceURL}/marketoInstanceURL
  clientId{$ctx:clientId}/clientId
  clientSecret{$ctx:clientSecret}/clientSecret
  /marketo.init
  switch source=get-property('transport','Action')
  case regex=urn:createAndUpdateLeads
  marketo.createAndUpdateLeads
  input{$ctx:input}/input
  action{$ctx:action}/action
  lookupField{$ctx:lookupField}/lookupField

asyncProcessing{$ctx:asyncProcessing}/asyncProcessing
  partitionName{$ctx:partitionName}/partitionName
  /marketo.createAndUpdateLeads
  /case
  case regex=urn:getLeadById
  marketo.getLeadById
  leadId{$ctx:leadId}/leadId
  fields{$ctx:fields}/fields
  /marketo.getLeadById
  /case
  /switch
  respond/
  /inSequence
  outSequence
 log/
 send/
  /outSequence
   /target
   description/
/proxy

init method works fine. But  createAndUpdateLeads method is not executed.
Am I missing anything?
-- 
dev-requ...@wso2.org
Keerthika Mahendralingam
Associate Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 sequence
 for switch case condition is 'null'. Switch case will not be executed*.
 *Proxy:*
 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=marketo
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
   property name=marketoInstanceURL
 expression=json-eval($.marketoInstanceURL)/
   property name=clientId expression=json-eval($.clientId)/
   property name=clientSecret
 expression=json-eval($.clientSecret)/
   property name=input expression=json-eval($.input)/
   property name=action expression=json-eval($.action)/
   property name=lookupField
 expression=json-eval($.lookupField)/
   property name=asyncProcessing
 expression=json-eval($.asyncProcessing)/
   property name=partitionName
 expression=json-eval($.partitionName)/
   property name=leadId expression=json-eval($. leadId)/
   property name=fields expression=json-eval($. fields)/
   marketo.init

 marketoInstanceURL{$ctx:marketoInstanceURL}/marketoInstanceURL
   clientId{$ctx:clientId}/clientId
   clientSecret{$ctx:clientSecret}/clientSecret
   /marketo.init
   switch source=get-property('transport','Action')
   case regex=urn:createAndUpdateLeads
   marketo.createAndUpdateLeads
   input{$ctx:input}/input
   action{$ctx:action}/action
   lookupField{$ctx:lookupField}/lookupField

 asyncProcessing{$ctx:asyncProcessing}/asyncProcessing
   partitionName{$ctx:partitionName}/partitionName
   /marketo.createAndUpdateLeads
   /case
   case regex=urn:getLeadById
   marketo.getLeadById
   leadId{$ctx:leadId}/leadId
   fields{$ctx:fields}/fields
   /marketo.getLeadById
   /case
   /switch
   respond/
   /inSequence
   outSequence
  log/
  send/
   /outSequence
/target
description/
 /proxy

 init method works fine. But  createAndUpdateLeads method is not executed.
 Am I missing anything?
 --
 dev-requ...@wso2.org
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware




-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 Mahendralingam 
 keerth...@wso2.com wrote:

 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] DEBUG - wire  Content-Length: 650[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Action:
 urn:createAndUpdateLeads[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Cache-Control:
 no-cache[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  User-Agent: Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/41.0.2272.89 Safari/537.36[\r][\n]

 [2015-03-16 11:56:26,192] DEBUG - wire  Content-Type:
 application/json[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept: */*[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Encoding: gzip,
 deflate[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Accept-Language:
 en-US,en;q=0.8[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  Cookie: CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  [\r][\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  {[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  marketoInstanceURL:
 https://667-LPB-079.mktorest.com,[\n];

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]action:updateOnly,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]lookupField:email,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 [0x9]partitionName:default,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire  
 asyncProcessing:true,[\n]

 [2015-03-16 11:56:26,193] DEBUG - wire [0x9]input:[  [\n]

 [2015-03-16 11:56:26,193] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-1,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,194] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 firstName:con-2,[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,194] DEBUG - wire},[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire{  [\n]

 [2015-03-16 11:56:26,195] DEBUG - wire   email:
 co...@gmail.com,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 firstName:con-3,[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  
 postalCode:04828[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire}[\n]

 [2015-03-16 11:56:26,195] DEBUG - wire ][\n]

 [2015-03-16 11:56:26,195] DEBUG - wire  }

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  POST
 /services/marketo HTTP/1.1

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Host:
 keerthikas-macbook-pro.local:8280

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Connection:
 keep-alive

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Content-Length: 650

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Action:
 urn:createAndUpdateLeads

 [2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
 Cache-Control: no-cache

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  User-Agent:
 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/41.0.2272.89 Safari/537.36

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Content-Type: application/json

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Accept: */*

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Encoding: gzip, deflate

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
 Accept-Language: en-US,en;q=0.8

 [2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Cookie:
 CFID=111368577;
 CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
 BIGipServersjgcp-restapi_https=4262002698.47873.

 [2015-03-16 11:56:27,766] DEBUG - headers http-outgoing-2  GET
 

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] DEBUG - wire  Content-Length: 650[\r][\n]

[2015-03-16 11:56:26,192] DEBUG - wire  Action:
urn:createAndUpdateLeads[\r][\n]

[2015-03-16 11:56:26,192] DEBUG - wire  Cache-Control: no-cache[\r][\n]

[2015-03-16 11:56:26,192] DEBUG - wire  Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]

[2015-03-16 11:56:26,192] DEBUG - wire  User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/41.0.2272.89 Safari/537.36[\r][\n]

[2015-03-16 11:56:26,192] DEBUG - wire  Content-Type:
application/json[\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  Accept: */*[\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  Accept-Encoding: gzip,
deflate[\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  Accept-Language:
en-US,en;q=0.8[\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  Cookie: CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.[\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  [\r][\n]

[2015-03-16 11:56:26,193] DEBUG - wire  {[\n]

[2015-03-16 11:56:26,193] DEBUG - wire  marketoInstanceURL:
https://667-LPB-079.mktorest.com,[\n];

[2015-03-16 11:56:26,193] DEBUG - wire  
clientSecret:Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd,[\n]

[2015-03-16 11:56:26,193] DEBUG - wire  
clientId:01f22a42-0f05-4e7f-b675-550b6de66f91,[\n]

[2015-03-16 11:56:26,193] DEBUG - wire  
[0x9]action:updateOnly,[\n]

[2015-03-16 11:56:26,193] DEBUG - wire  
[0x9]lookupField:email,[\n]

[2015-03-16 11:56:26,193] DEBUG - wire  
[0x9]partitionName:default,[\n]

[2015-03-16 11:56:26,193] DEBUG - wireasyncProcessing:true,[\n]

[2015-03-16 11:56:26,193] DEBUG - wire [0x9]input:[  [\n]

[2015-03-16 11:56:26,193] DEBUG - wire{  [\n]

[2015-03-16 11:56:26,194] DEBUG - wire   email:co...@gmail.com
,[\n]

[2015-03-16 11:56:26,194] DEBUG - wire  
firstName:con-1,[\n]

[2015-03-16 11:56:26,194] DEBUG - wire  
postalCode:04828[\n]

[2015-03-16 11:56:26,194] DEBUG - wire},[\n]

[2015-03-16 11:56:26,194] DEBUG - wire{  [\n]

[2015-03-16 11:56:26,194] DEBUG - wire   email:co...@gmail.com
,[\n]

[2015-03-16 11:56:26,194] DEBUG - wire  
firstName:con-2,[\n]

[2015-03-16 11:56:26,194] DEBUG - wire  
postalCode:04828[\n]

[2015-03-16 11:56:26,194] DEBUG - wire},[\n]

[2015-03-16 11:56:26,195] DEBUG - wire{  [\n]

[2015-03-16 11:56:26,195] DEBUG - wire   email:co...@gmail.com
,[\n]

[2015-03-16 11:56:26,195] DEBUG - wire  
firstName:con-3,[\n]

[2015-03-16 11:56:26,195] DEBUG - wire  
postalCode:04828[\n]

[2015-03-16 11:56:26,195] DEBUG - wire}[\n]

[2015-03-16 11:56:26,195] DEBUG - wire ][\n]

[2015-03-16 11:56:26,195] DEBUG - wire  }

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  POST
/services/marketo HTTP/1.1

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Host:
keerthikas-macbook-pro.local:8280

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Connection:
keep-alive

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2 
Content-Length: 650

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Action:
urn:createAndUpdateLeads

[2015-03-16 11:56:26,196] DEBUG - headers http-incoming-2  Cache-Control:
no-cache

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/41.0.2272.89 Safari/537.36

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Content-Type:
application/json

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Accept: */*

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
Accept-Encoding: gzip, deflate

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2 
Accept-Language: en-US,en;q=0.8

[2015-03-16 11:56:26,197] DEBUG - headers http-incoming-2  Cookie:
CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.

[2015-03-16 11:56:27,766] DEBUG - headers http-outgoing-2  GET
/identity/oauth/token?grant_type=client_credentialsclient_id=01f22a42-0f05-4e7f-b675-550b6de66f91client_secret=Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd
HTTP/1.1

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 
Accept-Language: en-US,en;q=0.8

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2  Cookie:
CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2