OGSA-DAI comes with a client that allows you to:
To submit a perform document to a data service resource exposed by a data service and so perform some data resource-related activites (e.g. query a database):
$ ant dataServiceClient -Ddai.url=SERVICE-URL -Ddai.resource.id=RESOURCE-ID -Ddai.action=PERFORM-DOC-LOCATION
$ ant dataServiceClient -Ddai.url=http://localhost:8080/wsrf/services/ogsadai/MyDataService -Ddai.resource.id=MySQLResource -Ddai.action=examples/Perform/JDBC/query/select1Row.xml
[echo] Executing Perform document on resource One... [java] Contacting ... http://localhost:8080/wsrf/services/ogsadai/MyDataService [java] Service version: OGSA-DAI WSRF 2.1 [java] Number of resources: 2 [java] Resource: MySQLResource [java] Resource: AnotherResource [java] Data Service Resource: MySQLResource [java] About to invoke Perform... [java] Perform completed! [java] Response: [java] <?xml version="1.0" encoding="UTF-8"?> [java] <ns1:response xmlns:ns1="http://ogsadai.org.uk/namespaces/2005/10/types"> [java] <request status="COMPLETED" xmlns="http://ogsadai.org.uk/namespaces/2005/10/service/types"/> ...
The EndToEndClient also supports message-level and transport-level security options, see Using Security with OGSA-DAI Clients for more details.
Back: GetProperty Client | Up: Clients | |
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |