Contenu connexe
Similaire à Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
Similaire à Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services (20)
Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
- 1. Creating flexible data services for enterprise SOA with WSO2 Data Services Sumedha Rubasinghe ( [email_address] ) ~ WSO2 Data Services Team ~
- 11. Simple example : configuration file <data name=" ContactInfoService "> <config> <property name="org.wso2.ws.dataservice.driver"> com.mysql.jdbc.Driver </property> <property name="org.wso2.ws.dataservice.protocol"> jdbc:mysql://localhost:3306/dataservice_sample </property> <property name="org.wso2.ws.dataservice.user"> dsuser </property> <property name="org.wso2.ws.dataservice.password"> user123 </property> <property name="org.wso2.ws.dataservice.minpoolsize"> 1 </property> <property name="org.wso2.ws.dataservice.maxpoolsize"> 5 </property> </config> <query id=" contactInfoQuery "> <sql> select firstName,lastName,extension,email from employees where lastName = ? </sql> <param name=" name " sqlType=" STRING " /> <result element=" Employees " rowName=" ContactInfo "> <attribute name=" LastName " column=" lastName " /> <element name=" FirstName " column=" firstName " /> <element name=" Extension " column=" extension " /> <element name=" Email " column=" email " /> </result> </query> <operation name=" getContactInformation "> <call-query href=" contactInfoQuery " > <with-param name=" name " query-param=" name " /> </call-query> </operation> </data>
- 12. WSDL for the Service http://<IP>:<PORT>/services/ContactInfoService?wsdl2
- 13. Invoking the Service – HTTP binding http://<IP>:<PORT>/services/ContactInfoService/getContactInformation?name=Patterson