[geotk] WPS client example

Emmanuel Blondel emmanuel.blondel1 at gmail.com
Mon Jan 27 07:00:14 PST 2014


Thanks,

This the way i've instantiated the object so far, but i was facing issue 
with the WPS instance i try to use.
I've now seen that the code is working with the Demo 52 North WPS url 
provided by Martin... i've shared with him (outside mailing list) the 
WPS instance url i'm trying to query.

Emmanuel

Le 27/01/2014 15:42, Alexis Manin a écrit :
> Hi Emmanuel,
>
> The way you instantiate your object looks fair. here is an example of 
> how I generally use WebProcessingServer object :
>
>         final String SERVICE_URL = 
> "http://domain.org/yourserver/wpsService";
>
>         // Identifier of the process we want.
>         private final static String PROCESS_ID = "some-exposed-process";
>
>         //allow reprojection even if grid or bursawolf parameters are 
> missing
>         Hints.putSystemDefault(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE);
>
>         //force loading all image readers/writers
>         ImageIO.scanForPlugins();
>
>         //global initialization
>         Setup.initialize(null);
>
>         // Instantiate client :
>         final URL wpsURL = new URL(SERVICE_URL);
>         final WebProcessingServer wpsClient =
>                 new WebProcessingServer(wpsURL, 
> WebProcessingServer.WPSVersion.v100.getCode());
>
>         // Once initialized, we can ask a description of wanted 
> process, using its id.
>         ProcessDescriptor desc = wpsClient.getDescriptor(PROCESS_ID);
>
> My guess is that, maybe, the 52 north client uses an embedded security 
> manager to connect your client to the server. Have you tried a 
> getCapabilities request using your navigator, to ensure the server 
> does not asks for connexion ?
>
> -- 
> Alexis Manin,
> Développeur JAVA/JEE.
> Geomatys.
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit


-- 
*Emmanuel Blondel*
GIS Consultant
Engineer in Agronomy & Environment

Geographic Information Systems
in Agronomy - Environment - Fisheries
Email: emmanuel.blondel1 at gmail.com - Emmanuel.Blondel at fao.org
View my LinkedIn profileView my LinkedIn profile 
<http://fr.linkedin.com/in/emmanuelblondel1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20140127/086cb13b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: btn_in_20x15.png
Type: image/png
Size: 288 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20140127/086cb13b/attachment-0001.png>


More information about the Geotoolkit mailing list