Hi, As the error message says, it seems the "contact_id" value is not passed in properly, basically check this first with a REST client and see if you do get the result when the request URL is given properly with the parameter.
Cheers, Anjana. On Fri, Mar 28, 2014 at 3:36 PM, Ahsan Shamsudeen <[email protected]> wrote: > The following is the rest data service I wrote to get the contact details > by providing contact id. > > <resource method="GET" path="get/contact/{contact_id}"> > <call-query href="select_with_key_contacts_query"> > <with-param name="contact_id" query-param="contact_id"/> > </call-query> > </resource> > > But, when I call this resource from jaggery script , I got the following > error. > > {"Fault" : {"faultcode" : "axis2ns8:INCOMPATIBLE_PARAMETERS_ERROR", > "faultstring" : "DS Fault Message: Error in 'CallQuery.extractParams', > cannot find parameter with type:query-param name:contact_id\nDS Code: > INCOMPATIBLE_PARAMETERS_ERROR\nSource Data Service:-\nName: > contacts_DataService\nLocation: /contacts_DataService.dbs\nDescription: > N/A\nDefault Namespace: http://ws.wso2.org/dataservice\nCurrent Request > Name: _getget_contact_contact_id\nCurrent Params: {}\n", "detail" : > {"DataServiceFault" : "DS Fault Message: Error in > 'CallQuery.extractParams', cannot find parameter with type:query-param > name:contact_id\nDS Code: INCOMPATIBLE_PARAMETERS_ERROR\nSource Data > Service:-\nName: contacts_DataService\nLocation: > /contacts_DataService.dbs\nDescription: N/A\nDefault Namespace: > http://ws.wso2.org/dataservice\nCurrent Request Name: > _getget_contact_contact_id\nCurrent Params: {}\n"}}} > > Please help me to overcome this issue. Thank you in advance for > considering my request. > > -- > Ahsan Shamsudeen > Software Engineer Intern > WSO2, Inc.:http://wso2.com > lean.enterprise.middleware > > Mobile - +94715444454 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Anjana Fernando* Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
