<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks Martin for your prompt answer,<br>
      I've tried this code and works well with the test 52 North WPS...
      but not with mine, so i assume it's a restriction on the server
      side.<br>
      <br>
      Emmanuel<br>
      <br>
      Le 27/01/2014 15:36, Martin Desruisseaux a écrit :<br>
    </div>
    <blockquote cite="mid:52E66F04.8030707@geomatys.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hello Emmanuel<br>
      <br>
      Le 27/01/14 14:42, Emmanuel Blondel a écrit :<br>
      <blockquote cite="mid:52E66230.5000402@gmail.com" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        <font size="-1">I'm instantiating a WebProcessingServer with a
          52 North WPS, using the constructor WebProcessingServer(url,
          versionString).Strangely, i get a exception (HTTP 403). In
          parallel, i've tried to use the 52 North client library and
          this works. This let me think that there is no particular
          restriction server side, and i'm trying to understand what's
          wrong with my code. By chance, can anyone have some sample
          code how to configure the WPS client properly?<br>
        </font></blockquote>
      <br>
      Quentin provided me the following test code:<br>
      <br>
      <blockquote>
        <pre>final URL url = new URL(<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://geoprocessing.demo.52north.org:8080/wps/WebProcessingService">"http://geoprocessing.demo.52north.org:8080/wps/WebProcessingService"</a>);
final WebProcessingServer server = new WebProcessingServer(url, WebProcessingServer.WPSVersion.v100.getCode());

System.out.println(server.getCapabilities());

final List<ProcessDescriptor> process = server.getDescriptors();
for (ProcessDescriptor proc : process) {
    System.out.println(proc.getIdentifier().getCode());
}
</pre>
      </blockquote>
      <br>
      Alternatively, with security enabled:<br>
      <br>
      <blockquote>
        <pre>final ClientSecurity security = new BasicAuthenticationSecurity("login","password");
final WebProcessingServer server = new WebProcessingServer(url, security, WebProcessingServer.WPSVersion.v100.getCode());
</pre>
      </blockquote>
      <br>
      However we are not sure that it is related with the 403 error.
      Could you provide us with the tested URL and the stack trace if
      there is one?<br>
      <br>
      <br>
      <blockquote cite="mid:52E66230.5000402@gmail.com" type="cite"><font
          size="-1"> PS: I want to use the Geotoolkit WPS client,
          because 52North WPS is based on Geotools (and so, it's not
          based on geoapi, but gt-opengis Geotools module...).<br>
        </font></blockquote>
      <br>
      Yes... Soon or later we will need to ask them to use GeoAPI or
      rename their "<tt>org.opengis</tt>" packages... This namespace is
      owned by OGC and there is a standard working group (SWG) for it.<br>
      <br>
          Martin<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Geotoolkit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a></pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <span style="font: 80% Arial,sans-serif;"><b>Emmanuel Blondel</b><br>
      </span>
      <span style="font: 80% Arial,sans-serif;">GIS Consultant<br>
      </span>
      <span style="font: 80% Arial,sans-serif;">Engineer in Agronomy
        & Environment<br>
        <br>
      </span>
      <span style="font: 80% Arial,sans-serif;">Geographic Information
        Systems<br>
        in Agronomy - Environment - Fisheries<br>
        Email: <a class="moz-txt-link-abbreviated" href="mailto:emmanuel.blondel1@gmail.com">emmanuel.blondel1@gmail.com</a> - <a class="moz-txt-link-abbreviated" href="mailto:Emmanuel.Blondel@fao.org">Emmanuel.Blondel@fao.org</a><br>
      </span>
      <a href="http://fr.linkedin.com/in/emmanuelblondel1"
        style="text-decoration:none;"><span style="font: 80%
          Arial,sans-serif; color:#0783B6;"><img
            src="cid:part2.07050707.00090903@gmail.com" alt="View my
            LinkedIn profile" style="vertical-align:middle" width="20"
            height="15" border="0">View my LinkedIn profile</span></a></div>
  </body>
</html>