Hi, I'm trying for the first time to create a dateService in WSAS 3.1.3
My test configuration is:
<?xml version="1.0" encoding="UTF-8"?>
<data name="LoggingData">
<config id="H2">
<property name="org.wso2.ws.dataservice.driver">org.h2.Driver</property>
<property
name="org.wso2.ws.dataservice.protocol">jdbc:h2:tcp://localhost/db/mydb</property>
<property name="org.wso2.ws.dataservice.user">carbon</property>
<property name="org.wso2.ws.dataservice.password">*****</property>
<property name="org.wso2.ws.dataservice.minpoolsize">1</property>
<property name="org.wso2.ws.dataservice.maxpoolsize">20</property>
<property name="org.wso2.ws.dataservice.autocommit">true</property>
</config>
<query id="totalCount" useConfig="H2">
<sql>select count(*) as counter from ESB_LOG</sql>
<result element="counter" rowName="counter" defaultNamespace="">
<element name="counter" column="counter" requiredRoles="everyone"
xsdType="xs:long"/>
</result>
</query>
<operation name="getTotalCount">
<call-query href="totalCount"/>
</operation>
</data>
The WS method give a response without error, but the result is empty (but the
query executed on DB retrieves a number):
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<datas3:counter xmlns:datas3="http://ws.wso2.org/dataservice">
<datas3:counter/>
</datas3:counter>
</soapenv:Body>
</soapenv:Envelope>
Any idea? Is there an error in configuration?
Thanks
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev