Configuring Web Services via Deployment Descriptors
See Also
In JAX-RPC (J2EE 1.4), you use deployment descriptors
to configure web services.
- For JAX-WS web services, that is, those that comply with the Java EE 5
specification, you use annotations instead of
deployment descriptors, except when you want to override annotations by
means of deployment descriptors.
Deployment descriptors are XML-based text files whose elements
describe how to assemble and deploy a module to a specific environment.
The elements also contain behavioral information about components not included directly in code.
For web services, the webservices.xml file
configures web services, but note that you should seldom
have a need for editing this file.
- In most cases, there is no need to manually edit the
deployment descriptors. The IDE's wizards normally take care
of configuring deployment descriptors correctly. Normally, only if your
deployment descriptor becomes corrupted for some reason, does
it make sense to manually edit it.
To edit webservices.xml:
- In the Projects window, expand the Configuration Files node for your project.
- Double-click webservices.xml to open it in the Source Editor.
- Edit the deployment descriptor as necessary.
- Choose File > Save
to save your changes.
- If you introduce any XML syntax errors, the IDE automatically alerts you. To
ensure your changes have not cause any errors, verify the
web application.
To edit filename-config.xml:
- In the Projects window, expand the Source Packages node for your project.
- Double-click filename-config.xml to open it in the Source Editor.
- Edit the configuration file as necessary.
- Choose File > Save
to save your changes.
- If you enter any XML syntax errors the IDE automatically alerts you. To
ensure your changes have not cause any errors, verify the
web application.
- See Also
- About Web Services
- About Annotations in Web Services
- About Configuring Web Services
- Configuring Web Services via Annotations
Legal Notices