Encryptv xml encryptv xml
API-SAMPLE CLIENT CODE | 235 |
---|
clientConfig.close();
serverConfig.close();
}catch(Exception ex){
ex.printStackTrace();
return;
}for(int i=0;i<1;i++){
SOAPMessage secureMsg = cprocessor.secureOutbound-Message(context);
//verify the secured message.
236 |
---|
The API Sample Security Configuration Files
The client (com.sun.wss.sample.Client) code uses the XWSSProcessor APIs to secure SOAP messages according to the security policy inferred from the SecurityConfiguration with which this XWSSProcessor was initialized. The api-sample contains many different example security configuration files. The following pairs should be used when specifying the client and server configura-tion files in build.properties. The client configuration to specify is listed first, the server configuration second:
Encrypting the SOAP Message
The security configuration files encryptv1.xml and encryptv2.xml enable the following tasks: