Re: [Dev] [AS] Data Service Error

2015-09-10 Thread Chanika Geeganage
Hi Lasantha,

JOSN Mapping [1] was introduced from DSS 3.2.0 onwards and therefore that
feature is not available in AS 5.2.1 or previous versions. You can install
DSS 3.2.2 features (latest) on AS 5.2.1

[1] https://docs.wso2.com/display/DSS320/JSON+Mapping


On Thu, Sep 10, 2015 at 3:32 PM, Lasantha Dharmakeerthi 
wrote:

> I created data service using wso2 data service server and it's working
> properly. Then I deployed it in WSO2 application server. In Application
> server it's not working. Showing as a faulty service. How can I figure out
> this error?
>
> Return type of query is json.
>
> I have attached screen shots of errors.
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards..

Chanika Geeganage
Software Engineer
Mobile : +94773522586
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Data Service Error

2015-09-10 Thread Sumedha Rubasinghe
Thanks Chanika. Do we have a separate DSS instance on cloud or as we using
AS for hosting DSS on cloud?
We are planning to deploy this on WSO2 Cloud.

On Thu, Sep 10, 2015 at 4:19 PM, Chanika Geeganage  wrote:

> Hi Lasantha,
>
> JOSN Mapping [1] was introduced from DSS 3.2.0 onwards and therefore that
> feature is not available in AS 5.2.1 or previous versions. You can install
> DSS 3.2.2 features (latest) on AS 5.2.1
>
> [1] https://docs.wso2.com/display/DSS320/JSON+Mapping
>
>
> On Thu, Sep 10, 2015 at 3:32 PM, Lasantha Dharmakeerthi <
> lasant...@wso2.com> wrote:
>
>> I created data service using wso2 data service server and it's working
>> properly. Then I deployed it in WSO2 application server. In Application
>> server it's not working. Showing as a faulty service. How can I figure out
>> this error?
>>
>> Return type of query is json.
>>
>> I have attached screen shots of errors.
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards..
>
> Chanika Geeganage
> Software Engineer
> Mobile : +94773522586
> WSO2, Inc.; http://wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Rest Data Service Error

2014-03-28 Thread Ahsan Shamsudeen
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 - +9471554
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Rest Data Service Error

2014-03-28 Thread Anjana Fernando
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 ah...@wso2.com 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 - +9471554

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
*Anjana Fernando*
Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev