Configuration Guides › Agent Configuration Guide › SOA Agent for IBM WebSphere › Edit Deployment Descriptors of JAX-RPC Applications
Edit Deployment Descriptors of JAX-RPC Applications
To protect a JAX-RPC web service you must edit its deployment descriptor to add the SOA Agent JAX-RPC Handler.
To edit a JAX-RPC web service deployment descriptor
- Unpack the enterprise archive (EAR) containing one or more web services.
- Examine the EAR to determine which of the modules within it contains a JAX-RPC web service.(A module that contains a JAX-RPC web service if it has a webservices.xml file in the META-INF folder for EJB endpoints, or the WEB-INF folder for servlet endpoints.)
- For each module in the EAR identified as a JAX-RPC web service:
- Unpack the archive containing the module. (The archive will be a JAR file for EJB endpoints and a WAR file for servlet endpoints.)
- Find the webservices.xml file.
- For each port-component element found in the webservices.xml file, add a handler element:
<handler>
<handler-name>SOA Agent Handler<handler-name>
<handler-class>
com.ca.soa.agent appserver.jaxrpc.SOAAgentJaxrpcHandler
</handler-class>
</handler>
Note: The SOA Agent JAX-RPC handler must always be invoked first; If other handler elements are already present or subsequently added to the webservices.xml file, the SOA Agent JAX-RPC Handler element must placed before them.
- Repackage the module into the appropriate archive type (JAR or WAR).
- When all modules have been configured, repackage the EAR.
- Install or update the enterprise application.