Hi all,

After some advices I got from previous messages (thanks Jody), I started
using the default Catalog API. However I am having some problems and a lot
of confusion in my head.

First of all, to have a baseline, is my understanding of the following
correct?

* DefaultCatalog class – contains the list of services my app is using.

* DefaultServiceFinder class - used to get services handles from URIs that
can then be added to the catalog.

* To define a service two classes must exist:
        - Service implementation which is the actual service class behaviour
such as WFSService.
        - ServiceFactory implementation which allows services to be
constructed, such as WFSServiceFactory.

What I cannot understand in the tutorial and documentation:

* Why the DefaultServiceFinder takes the DefaultCatalog as constructor
argument? In the tutorial the services returned from the finder must be
"manually" added to the catalog, is it different here?

* How the DefaultServiceFinder finds the services? Does it need to be
populated with ServiceFactory implementations, i.e WFSServiceFactory in
order for the WFSService to be aquire? If yes how can this be achieved?

My app workflow is: 1) create a DefaultCatalog 2) create a
DefaultServiceFinder 3) try to aquire a WFSService from the
DefaultServiceFinder with a URI 4) add it to the catalogue 5) use it to
retrieve GeoResources and ServiceInfo. My problem is that the
DefaultServiceFinder does not return a WFSService.

Thanks for the help
Tiago







-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to