GetProperty Client

To get the properties of a data service resource exposed by a data service:

  1. Ensure that your Web services container is running.
  2. Run the following command from within the OGSA-DAI WSRF binary distribution directory:
    $ ant getPropertyClient -Ddai.url=SERVICE-URL
          -Ddai.resource.id=RESOURCE-ID
          -Ddai.property={PROPERTY-NAMESPACE}PROPERTY-LOCAL-NAME
    
    For example:
    $ 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
    
  3. The the property of the data service resource will be returned to the client. For example:
         [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.