[wsf-c-dev] (no subject)

Diluka Moratuwage diluka at wso2.com
Mon Feb 19 22:46:28 PST 2007


Hi,

 I suggest the following type of a configuration file, the <output>
element indicates how the response should be encoded.

 If its a query which asks for some data, we can represent the response
as a table, with <table></table> elements include the data.

 And if its a query which cause to update the state of the database then
we can indicate the result as a SUCCESS or FAILURE. The <output type =
"ack"> would indicate this. And the SUCCESS or FAILURE can is encoded in
<response></response> element as shown.

 And all the information regarding the database connectivity can be put
in the <connectivity> tags. Also we can have an element indicating the
type of connectivity (mysql or some other one).

 The sql query can be extracted consistently using the <param> tags, with
attribute type, as james explained earliar.

<configuration>
    <connectivity>
        <hostname></hostname>
        <username></username>
        <password></password>
        <database></database>
        <socket></socket>
        <port></port>
    </connectivity>
    <operations>
        <operation name = "getInfoByName">
            <query>
                select * from MyTable where name = <param type = "char">
                {xpath to name}</param>
            </query>
            <output type = "data">
                <!-- output can be data|acknowledgement -->
                <!-- For data we can represent as a table.
                    <table>
                    </table>
                -->
            </output>
        </operation>


        <operation name = "updateMyInfo">
            <query>
                <!--
                    {sql query with <param></param> elements show how
                    to extract the data from incomming soap message}
                -->
            </query>
            <output type = "ack">
                <!-- For response type, we can specify as follows.
                <response>
                    {SUCCESS/FAILURE}
                </response>
                -->
            </output>
        </operation>
    </operations>
</configuration>

 Any suggestions please...

Thanks,
Diluka.




More information about the Wsf-c-dev mailing list