Hi, You don't need to specify configKey="initnew" if you specify init method inline.
This may recursively call init method. Try following, <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="getuserdetailsprox" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <log level="custom"> <property name="XXXXXXXXXXXXX - Status - XXXXXXXXXXXXXXXXxx" value=" Before Init "/> </log> <foursquare.init> <apiUrl>https://api.foursquare.com</apiUrl> <accessToken>3EVR4GJLWJOYADANHOCCNYI4NLGYCTPR41UDIUUYIKF2QQTY</accessToken> </foursquare.init> <log level="custom"> <property name="XXXXXXXXXXXXX - Status - XXXXXXXXXXXXXXXXxx" value=" After Init "/> </log> <foursquare.getUserDetails configKey="getuserdetails"> <username>87842593</username> </foursquare.getUserDetails> <log level="custom"> <property name="XXXXXXXXXXXXX - Status - XXXXXXXXXXXXXXXXxx" value=" After getUserDetails "/> </log> <respond/> </inSequence> <outSequence/> <faultSequence/> </target> <description/> </proxy> On Tue, Jun 24, 2014 at 11:22 AM, Sewwandi Perera <[email protected]> wrote: > Hi Asanki, > > "configKey" attribute is used to reference the stored configurations as > local entries. > Have you stored two local entries named "initnew" and "getuserdetails" in > your synapse configuration? > > Thanks, > Sewwandi > > > On Mon, Jun 23, 2014 at 5:10 PM, Asanki Fernando < > [email protected]> wrote: > >> Hi Chanaka, >> >> Yes, I did enable it from the console. But still it''s giving me this >> error. >> This is the proxy configuration. >> >> <?xml version="1.0" encoding="UTF-8"?> >> <proxy xmlns="http://ws.apache.org/ns/synapse" >> name="getuserdetailsprox" >> transports="https,http" >> statistics="disable" >> trace="disable" >> startOnLoad="true"> >> <target> >> <inSequence> >> <foursquare.init configKey="initnew"> >> <apiUrl>https://api.foursquare.com</apiUrl> >> >> <accessToken>3EVR4GJLWJOYADANHOCCNYI4NLGYCTPR41UDIUUYIKF2QQTY</accessToken> >> </foursquare.init> >> <foursquare.getUserDetails configKey="getuserdetails"> >> <username>87842593</username> >> </foursquare.getUserDetails> >> <respond/> >> </inSequence> >> <outSequence/> >> <faultSequence/> >> </target> >> <description/> >> </proxy> >> >> >> Thanks, >> Asanki. >> >> >> On Mon, Jun 23, 2014 at 4:57 PM, Chanaka Fernando <[email protected]> >> wrote: >> >>> Hi Asanki, >>> >>> After uploading the connector to the ESB, did you enable it from the >>> management console. Unless you enable the connector, synapse cannot >>> identify the connector element during runtime. This may be the reason for >>> your error. >>> >>> Thanks, >>> Chanaka >>> >>> >>> On Sun, Jun 22, 2014 at 4:25 AM, Asanki Fernando < >>> [email protected]> wrote: >>> >>>> Hi All, >>>> >>>> I've uploaded the connector to the ESB and have created a custom >>>> proxy. When I tried the service, it gives me the following error. I'm >>>> passing the parameters through the url, no payload. >>>> >>>> <TryitProxyError xmlns:h="http://wso2.org/ns/TryitProxy" >>>> h:status="SOAP envelope error">org.apache.axis2.AxisFault: The input stream >>>> for an incoming message is null.</TryitProxyError> >>>> >>>> In console >>>> >>>> [2014-06-22 13:39:48,931] ERROR - InvokeMediator Failed to locate the >>>> configure element for connector >>>> [org.wso2.carbon.connectors.foursquare.init] >>>> >>>> In the REST client >>>> >>>> Status Code: 202 Accepted >>>> Connection: keep-alive >>>> >>>> >>>> Date: Sun, 22 Jun 2014 07:34:26 GMT >>>> Server: WSO2-PassThrough-HTTP >>>> >>>> >>>> Transfer-Encoding: chunked >>>> >>>> >>>> Please let me know what cause this error. >>>> >>>> Thank you. >>>> Best Regards, >>>> Asanki Fernando. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> -- >>> Chanaka Fernando >>> Technical Lead >>> WSO2, Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 773337238 >>> Blog : http://soatutorials.blogspot.com >>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 >>> Twitter:https://twitter.com/chanakaudaya >>> Wordpress:http://chanakaudaya.wordpress.com >>> >>> >>> >>> >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sewwandi Perera > Software Engineer > > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
