<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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 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>
  </body>
</html>