WAS v8.5 > Deploy applications > Deploy web services > Make deployed web services applications available to clientsConfigure endpoint URL information for HTTP bindings
Configuring a service endpoint is necessary to connect JAX-WS and JAX-RPC web services clients to any web services among the components being assembled or to any external web services.
We can develop an HTTP accessible Java API for XML-based remote procedure call (JAX-RPC) or Java API for XML Web Services (JAX-WS) web service when we have an existing JavaBeans object to enable as a web service. For additional information, see the using HTTP to transport web services requests information.
We can use either the dmgr console or property files to manage HTTP endpoint URL fragments. To learn about using property files to set and manage the URL fragments, see the information about working with web services endpoint URL fragment property files.
This task describes using the dmgr console to configure endpoint URL information for HTTP bindings. We can specify HTTP URL prefixes for web services that are accessed through HTTP using the Provide HTTP endpoint URL information panel in the dmgr console. The HTTP URL prefixes provide location specific information and are used to form complete endpoint URLs that are included within published WSDL files.
The Provide HTTP panel in the dmgr console displays modules containing JAX-WS and JAX-RPC web services. We can use the Provide HTTP panel to provide URL information for both types of web services, however, the panel does not indicate which type of service that you are working with. To configure these prefixes with the dmgr console:
- Open the dmgr console.
- Click Applications > Enterprise Applications > application_instance > Provide HTTP endpoint URL information.
- Specify the URL prefixes for the web service.
In this step we specify the protocol (HTTP or HTTPS), as well as the host_name and port_number used in the endpoint URL. We can select a prefix from a predefined list, by selecting the default HTTP URL prefix, or we can use a custom HTTP URL prefix.
- Select Default HTTP URL prefix or Custom HTTP URL Prefix.
If we select the default HTTP URL prefix, a list provides you with a choice of endpoint URL prefixes. The list is a combination of two sets of ports in the module: the virtual host ports and the application server ports. Use a prefix from this list if the application server of the web service is accessed directly. Select a value and also select the check box of the modules to use the prefix.
To use a custom HTTP URL prefix, type the value in the field. Select the check box to use in the prefix.
If we configure a custom HTTP URL prefix, , you must also configure the custom JVM property, com.ibm.ws.webservices.enableHTTPPrefix in the dmgr console and set the value to true. Restart the application server after this custom property has been defined so that this property is used by the system. Setting this custom JVM property is required so the custom HTTP endpoint prefix information is correctly displayed in the ?WSDL query that is returned from the browser and the URL field of the WSDL file that is returned to the client. If this custom property is not defined with the value of true, the custom HTTP URL prefix is not reflected in the WSDL file the service returns to the client. To learn how to configure this custom JVM property, see the documentation on configuring additional HTTP transport properties JVM custom properties
The com.ibm.ws.webservices.enableHTTPPrefix custom property applies to JAX-RPC web services applications only.
- Click Apply.
The URL prefix, whether default or custom, is copied to the selected module HTTP URL prefix field.
- Click OK. The URL information is saved to your workspace.
Results
You have specified the partial URL information used to form the target endpoint addresses in the WSDL files that are published using the Publish WSDL files panel.
Configure any other URL endpoint information for JMS bindings and direct EJB access. Then publish the WSDL files to make the deployed web services application available to clients.
Subtopics
- Provide HTTP endpoint URL information
Use this page to specify endpoint URL prefix information for web services accessed by HTTP. Prefixes are used to form complete endpoint addresses included in published Web Services Description Language (WSDL) files.
Related
Use HTTP to transport web services requests for JAX-RPC applications
Use HTTP to transport web services requests for JAX-WS applications
Configure endpoint URL information for JMS bindings
Configure endpoint URL information to directly access enterprise beans
Configure additional HTTP transport properties JVM custom properties/a>
Work with web services endpoint URL fragment property files
Reference:
HTTP transport custom properties for web services applications
Java virtual machine custom properties