To get the properties of a data service resource exposed by a data service:
$ ant getPropertyClient -Ddai.url=SERVICE-URL
-Ddai.resource.id=RESOURCE-ID
-Ddai.property={PROPERTY-NAMESPACE}PROPERTY-LOCAL-NAME
$ ant getPropertyClient
-Ddai.url=http://localhost:8080/wsrf/services/ogsadai/MyDataService
-Ddai.resource.id=MySQLResource
-Ddai.property={http://ogsadai.org.uk/namespaces/2005/10/properties}productInfo
[java] Contacting ... http://localhost:8080/wsrf/services/ogsadai/DataService
[java] - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
[java] Service version: OGSA-DAI WSRF 2.1
[java] Number of resources: 1
[java] Resource: MySQLResource
[java] Data Service Resource: MySQLResource
[java] Property Value:
[java] <?xml version="1.0" encoding="UTF-8"?>
[java] <ns1:productInfo xmlns:ns1="http://ogsadai.org.uk/namespaces/2005/10/properties">
[java] <ns1:productName>MySQL</ns1:productName>
[java] <ns1:productVersion>5.0</ns1:productVersion>
[java] <ns1:vendorName>MySQL</ns1:vendorName>
[java] </ns1:productInfo>
The ListResources client also supports message-level and transport-level security options, see Using Security with OGSA-DAI Clients for more details.
| Back: ListResources Client | Up: Clients | Next: End-to-end Client |
| © International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |