Hi John:

To workflow for wms creation is ...
1. new WebMapServer( url )
2. based on the provided url the client code enters into version
negotiation (some kind of for loop) where it makes capabilities
requests until it arrives at the newest supported version that is
common to both client and server
3. with this version in mind it creates a internal stratagy object
(there is one defined for each WMS specification)
4. any of the WebMapServer methods called from from then on ask the
stratagy object for a "request" which the user can fill in.
5. the user can pass a filled in request object to the web map server
in order to get a "response". The response has method that let the
user ask for the result; some implementations may only request the
information when the method is called.

That Schema stuff from WMS is part of the old "XDO" xml parsing
framework that is no longer supported; you will be making use of the
GTXML framework (ie set up a configuration; create a parser with that
configuration; and ask the parser to turn the http response into
objects for you).

In short there is not that much to learn about parsing from the WMS
code (only how to organze your WCS implementation). You can however
look at the  WebFeatureServer 1.1 implementation for an example of
parsing a capabilities document using GTXML; you will take similar
steps when creating a WebCoverageService.

Jody

On Tue, Apr 7, 2009 at 11:09 PM, Jon Britton <[email protected]> wrote:
>
> Hi,
>
> I've looked at the GeoTools WMS and WFS implementations and how they load in 
> the capabilities document but I'm confused as to how I should proceed with 
> WCS.  Given that I've got bindings ready etc (which I haven't yet, still 
> trying to figure that out) how do I go from my WCS1_1_1.GetCapsRequest (based 
> on the WMS equivalent) to a response containing the capabilities document?  
> I've implemented the createResponse method, which creates a 
> WCSGetCapabilitiesResponse which currently has an empty constructor.
>
> WMS loads the capabilities object in the WMSGetCapabilitiesResponse 
> constructor using WMSSchema and a DocumentFactory - do I need to do something 
> similar?  I haven't seen the Schema class mentioned in any of the XML 
> documentation so don't know how this is generated and/or used.  WFS on the 
> other hand is treated as a DataStore, so I assume I can't really use that as 
> a guide.  In either case, I can't find how making a request links with all 
> the binding stuff.  There's a missing step in my understanding.
>
> I have to admit I'm getting a bit lost!  Any information which might clear 
> this up would be great.
>
> Thanks,
>
> Jon
> --
> View this message in context: 
> http://n2.nabble.com/How-to-load-a-WCS-capabilities-document-tp2598821p2598821.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to