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.0000[\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.0000

[2015-03-16 11:56:27,766] DEBUG - headers http-outgoing-2 >> GET
/identity/oauth/token?grant_type=client_credentials&client_id=01f22a42-0f05-4e7f-b675-550b6de66f91&client_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.0000

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

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 >>
Accept-Encoding: gzip, deflate

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 >> Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 >> Content-Type:
application/json

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

[2015-03-16 11:56:27,767] DEBUG - headers http-outgoing-2 >> Cache-Control:
no-cache

[2015-03-16 11:56:27,768] DEBUG - headers http-outgoing-2 >> Host:
667-LPB-079.mktorest.com:80

[2015-03-16 11:56:27,768] DEBUG - headers http-outgoing-2 >> Connection:
Keep-Alive

[2015-03-16 11:56:27,768] DEBUG - headers http-outgoing-2 >> User-Agent:
Synapse-PT-HttpComponents-NIO

[2015-03-16 11:56:27,768] DEBUG - wire << "GET
/identity/oauth/token?grant_type=client_credentials&client_id=01f22a42-0f05-4e7f-b675-550b6de66f91&client_secret=Vgo6rzIiJyPOzTcefP3Zr56tK2hv8fJd
HTTP/1.1[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Cookie: CFID=111368577;
CFTOKEN=1ba347821ba3e220-DE2DA792-BD64-DEC4-81B7FFE0BDDDB561;
BIGipServersjgcp-restapi_https=4262002698.47873.0000[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Action:
urn:createAndUpdateLeads[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Accept-Encoding: gzip,
deflate[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"

[2015-03-16 11:56:27,768] DEBUG - wire << "Content-Type:
application/json[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "Accept: */*[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "Host: 667-LPB-079.mktorest.com:80
[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"

[2015-03-16 11:56:27,769] DEBUG - wire << "[\r][\n]"

[2015-03-16 11:56:28,117] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"

[2015-03-16 11:56:28,117] DEBUG - wire >> "Server: nginx[\r][\n]"

[2015-03-16 11:56:28,117] DEBUG - wire >> "Date: Mon, 16 Mar 2015 06:21:11
GMT[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "Content-Type:
application/json;charset=UTF-8[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "Transfer-Encoding:
chunked[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "Connection: keep-alive[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "Cache-Control: no-store[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "Pragma: no-cache[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "7e[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >>
"{"access_token":"6d648429-969f-4eaa-bb66-cea0b0385dcb:sj","token_type":"bearer","expires_in":265,"scope":"
keerth...@wso2.com"}[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "0[\r][\n]"

[2015-03-16 11:56:28,118] DEBUG - wire >> "[\r][\n]"

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << HTTP/1.1 200 OK

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << Server: nginx

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << Date: Mon, 16
Mar 2015 06:21:11 GMT

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << Content-Type:
application/json;charset=UTF-8

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 <<
Transfer-Encoding: chunked

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << Connection:
keep-alive

[2015-03-16 11:56:28,119] DEBUG - headers http-outgoing-2 << Cache-Control:
no-store

[2015-03-16 11:56:28,120] DEBUG - headers http-outgoing-2 << Pragma:
no-cache

[2015-03-16 11:56:28,142]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:0c1eef8c-6f5a-428b-962c-4fda13c4cee1, Direction:
request, actionCheck = null, Envelope: <?xml version="1.0"
encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Body><jsonObject><access_token>6d648429-969f-4eaa-bb66-cea0b0385dcb:sj</access_token><token_type>bearer</token_type><expires_in>265</expires_in><scope>
keerth...@wso2.com</scope></jsonObject></soapenv:Body></soapenv:Envelope>

[2015-03-16 11:56:28,143]  WARN - SwitchCase Provided character sequence
for switch case condition is 'null'. Switch case will not be executed.

[2015-03-16 11:56:28,144]  WARN - SwitchCase Provided character sequence
for switch case condition is 'null'. Switch case will not be executed.

[2015-03-16 11:56:28,145] DEBUG - headers http-incoming-2 << HTTP/1.1 200 OK

[2015-03-16 11:56:28,145] DEBUG - headers http-incoming-2 << Authorization:
Bearer 6d648429-969f-4eaa-bb66-cea0b0385dcb:sj

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

[2015-03-16 11:56:28,145] DEBUG - headers http-incoming-2 << Content-Type:
application/json;charset=UTF-8

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Accept:
application/json

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Pragma:
no-cache

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Cache-Control:
no-store

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Date: Mon, 16
Mar 2015 06:26:28 GMT

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Server:
WSO2-PassThrough-HTTP

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 <<
Transfer-Encoding: chunked

[2015-03-16 11:56:28,146] DEBUG - headers http-incoming-2 << Connection:
keep-alive

[2015-03-16 11:56:28,146] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]"

[2015-03-16 11:56:28,146] DEBUG - wire << "Authorization: Bearer
6d648429-969f-4eaa-bb66-cea0b0385dcb:sj[\r][\n]"

[2015-03-16 11:56:28,146] DEBUG - wire << "Content-Type:
application/json[\r][\n]"

[2015-03-16 11:56:28,146] DEBUG - wire << "Content-Type:
application/json;charset=UTF-8[\r][\n]"

[2015-03-16 11:56:28,146] DEBUG - wire << "Accept: application/json[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Pragma: no-cache[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Cache-Control: no-store[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Date: Mon, 16 Mar 2015 06:26:28
GMT[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Server:
WSO2-PassThrough-HTTP[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "Connection: keep-alive[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "7e[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire <<
"{"access_token":"6d648429-969f-4eaa-bb66-cea0b0385dcb:sj","token_type":"bearer","expires_in":265,"scope":"
keerth...@wso2.com"}[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "0[\r][\n]"

[2015-03-16 11:56:28,147] DEBUG - wire << "[\r][\n]"



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
>



-- 
<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

Reply via email to