Salut à tous,

J'essaie de monter un serveur webservice java sécurisé avec Glue. Le but étant que c'est un client .net qui doit s'y connecter. J'ai trouvé ce tutorial que je m'efforce de suivre. Mon problème ce situe au lancement du serveur java : selon le tuto, il devrait apparaitre ces 2 lignes-la :
[STARTUP] GLUE professional 4.0.1 (c) 2001-2003 The Mind Electric
[STARTUP] http server started on http://localhost:8004/GLUEX509Interop
c'est mon cas mais droit après il me sort ceci :
Exception in thread "main" electric.util.licence.LicencingException : WS-Security
at electric.soap.security.WSSContext <init>(Unknown source)
at Server.main
et je vois pas du tout d'ou ca peut venir voici le code de ma classe :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import electric.registry.*;
import electric.server.http.*;
import electric.soap.security.*;
import electric.soap.security.authenticators.*;
import electric.soap.security.guards.*;
import electric.soap.security.signature.*;
import electric.soap.security.signature.xml.*;
import electric.glue.context.*;
 
public class Server
 {
  public static void main(String[] args) throws Exception
    {
        HTTP.startup( "http://localhost:8004/GLUEX509Interop" );
 
	// Configure the WS-Security Context
	ProxyContext proxyContext = new ProxyContext();
        WSSContext wss = new WSSContext();
        proxyContext.setWSSContext( wss );
 
        // Change the end point if we want to use the SOAP Trace Utility from the SOAP Toolkit 3.0
        //proxyContext.addProperty("endpoint","http://localhost:8005/sig1/services/exchange");
 
        // Set the Authenticator and Guard to trap incoming requests and validate signatures
        WSSSignature signatureSpec = new WSSSignature( new ElementReference( "/soap:Envelope/soap:Body" ) );
 
        wss.in.addAuthenticator( new X509NullAuthenticator() );
        wss.in.addGuard( new SignatureGuard( signatureSpec ) );
 
        // Publish the service
        Registry.publish( "Service1", new Service1(), proxyContext );
    }
 }
une idée ? Merci d'avance !

@++