Creating the client security binding and extension files using an assembly
tool
You can create the files required for a WSRP security profile in
the assembly tool by configuring the security options for Web applications
that define a Web service client.
The portal provides several variants of a dummy Web application
that you can import into the assembly tool to easily perform the configuration.
To get the available dummy Web applications, proceed as follows:
- Run the following command, and pass in the path of the directory
where you want to copy the sample files as the value for the Destination parameter:
- Linux: ./ConfigEngine.sh
copy-samples –DCategoriesList=wp.wsrp.consumer –DDestination=directory in
the wp_profile/ConfigEngine
- i5/OS: ConfigEngine
copy-samples –DCategoriesList=wp.wsrp.consumer –DDestination=directory in
the profiles/wp_profile/ConfigEngine
- Windows: ConfigEngine.bat
copy-samples –DCategoriesList=wp.wsrp.consumer –DDestination=directory in
the wp_profile\ConfigEngine
- Choose the appropriate war file from the following list, and import
it as a Web application project to the assembly tool:
- DummyWebAppEmpty.war: This file contains no security
configuration. Use it to create a completely new security configuration.
- DummyWebAppLTPA.war: LTPA token forwarding configuration
as in the default security profile.
- DummyWebAppUsername.war: Username token forwarding
configuration as in the default security profile.
- DummyWebAppSignedUsername.war: Signed Username token
forwarding configuration as in the default security profile.
For details about the last three files listed above refer to the section
about Configuring WS-Security for communication with a particular Producer.
To configure Web services security, launch the wizard for the
Web implementation descriptor web.xml, and make the appropriate settings
in the WS-Extension and WS-Binding sections. For more information about how
to configure Web services security refer to the WebSphere
Application Server information
center, especially under Related
information below.
When you save the configuration, the settings are
written to the files ibm-webservicesclient-bnd.xmi and ibm-webservicesclient-ext.xmi in
the same project as required. If you did not use the dummy Web application
for your configuration, make sure that the files contain the settings for
only one port Qname binding. Copy the two files to a file system folder with
the name of your security profile. For some operating systems, it can be necessary
to avoid special characters or blanks in the folder name.
Parent topic: Creating and deploying custom WS-Security profiles
Next topic: Using the configuration tasks to extract and synchronize the WSRP WS-Security profiles
Related tasks
Configuring WS-Security for communication with a Producer
Related information
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/twbs_confappwssassembly.html
|
|
|