[Wsf-general] data services and resources

sumedha rubasinghe sumedha at wso2.com
Wed Mar 21 05:32:51 PDT 2007


Updated http://www.wso2.org/wiki/display/wsf/Data+Services+and+Resources.

1.
I would like to propose a new REQUIRED attribute called 'name' to data 
element. The value of this will be the name of the service deployed.

<data baseURI="xs:anyURI" name="xs:NMTOKEN">
    config
    query+
    (operation | resource)+
</data>

    * data/@baseURI: a REQUIRED URI indicating the base URI for the
      operations and resources defined within the <data> element.
    * data/@name: a REQUIRED name of the data service.


2. Changed one of the examples to match latest specification.

<data baseURI="xs:anyURI" name="StudentInfoService">
    <config>
    	<property name="driver">org.apache.derby.jdbc.EmbeddedDriver</property>
    	<property name="protocol">jdbc:derby:../database/WSO2WSAS_DB</property>
    	<property name="user">wso2wsas</property>
    	<property name="password">wso2wsas</property>
    </config>

    <query id="studentInfo">
       <param name="index" sqlType="INTEGER"/>
       <sql>select name, index, e-mail from student where student.index=?</sql>
        <result element="Students" rowName="student">
          <element name="Name" column="name"/>
          <element name="Index" column="index"/>
          <element name="E-mail" column="email"/>
        </result>
     </query>

     <operation name="getStudentByProjectId">
       <call-query href="studentInfo">
        <with-param name="indexParam" query-param="index"/>
       </call-query>
     </operation>
</data>






More information about the Wsf-general mailing list