Sun Java System Web Server 7.0 Developer's Guide to Java Web Applications

Using Message Security Provider in an Application

The following sub-web.xml example shows how to use the server.xml message security provider provider1 in a web application.

<?xml version="1.0" encoding="UTF-8"?>

		Copyright 2006-2007 Sun Microsystems,Inc. All rights reserved.
		Use is subject to license terms.

<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc. 
//DTD Application Server 8.1 Servlet 2.4//EN" 
				<message-security-binding auth-layer="SOAP"

Note –

The port-component-name element should be the same as the name attribute in the endpoint element in sun-jaxws.xml. If the provider-id element is not specified in sun-web.xml, then the default-soap-auth-provider-name configured in server.xml is be used as the provider.

Deploy the sample web application fromwsdl-soap12.war on to the Sun Java System Web Server 7.0.