For an application server that is compliant with Java™ EE, the web service is deployed to a web
archive (WAR) file, and this URI pattern is used:
http://domain:portNumber/contextRoot/serviceConstant/serviceName
- domain:portNumber
- The domain value is the IP address of the server
to which the project is deployed. The colon (:) and subsequent portNumber value
is the port, as determined by the application-server configuration.
When
you are using IBM® WebSphere® Application Server, the value
is localhost:9080 by default. However, your installation of that product
can access a different port. This situation might occur if you previously
installed WebSphere Application
Server on the same machine.
To change the domain and port number
that are included in the WSDL file generated with a SOAP service,
see “Setting preferences for service generation.”
- contextRoot
- The context root to which the service is deployed. By default,
this value is the project name.
To override the default in the
EDT IDE:
- Right-click the project.
- Click Properties to display the Properties
page.
- Click Web project settings and type a new
context root.
- Click OK.
- serviceConstant
- One of two values:
- For a SOAP service:services. At this
writing, this option is not in effect.
- For an EGL REST-RPC service:restservices
- serviceName
- For a SOAP service, serviceName is the
value of the name field in the @xml complex
property. By default, the value of that field is the name of the Service
part, not the name of the alias property.
For
a REST service,
serviceName is the value
of the
URI text box on the
Web Service
Deployment tab of the Deployment Descriptor editor. If
that text box is blank, the value is the following concatenation:
- The package name, with an underscore (_) in place of every
period
- An underscore (_)
- The service name