WAS v8.5 > Script the application serving environment (wsadmin) > Welcome to scripting for web servicesConfigure web services applications using wsadmin.sh
We can use the wsadmin scripting tool to complete the several tasks for a web services application.
Develop a web services application. To learn more, see the implementing web services applications information.
The WebSphere Application Server wsadmin tool provides the ability to run scripts. We can use wsadmin to manage a WAS installation, as well as configuration, application deployment, and server run-time operations. The WAS only supports the Jacl and Jython scripting languages.
To use wsadmin to configure a web services application, publish a WSDL file, or to configure policy sets:
- Launch a scripting command. To learn more, see the starting the wsadmin scripting client information.
- Follow the steps in one of the following topics, depending on what task to complete:
- Publish WSDL files.
- Configure web services client deployed WSDL file names.
- Configure web services client preferred port mappings .
- Configure web services client port information .
- Configure the scope of a web services port .
Results
You have configured web services applications with wsadmin.
Subtopics
- Enable WSDM using wsadmin.sh
Use wsadmin with the AdminConfig object to enable Web Services Distributed Management (WSDM) in the environment. WSDM is an OASIS approved standard that supports managing resources through a standardized web service interface.- Querying web services using wsadmin.sh
We can use the Jython or Jacl scripting language to query for web services properties with wsadmin. Use the commands in the WebServicesAdmin group to list all web services, service references and attributes, find attributes of a specific web service, determine the web service endpoint, and determine the operation name of a Web service.- Configure a web service client deployed WSDL file name using wsadmin.sh
When a web service application is deployed into WAS, an instance is created for each application or module. The instance contains deployment information for the web module or EJB module, including the client bindings.- Configure web service client-preferred port mappings using wsadmin.sh
A client port type can be configured with ports that have different qualities of service. We can use the WebServicesClientBindPreferredPort command-line option to specify which port to use.- Configure web service client port information using wsadmin.sh
A web service can have multiple ports. We can configure the port attributes for each defined web service port.- Configure the scope of a web service port using wsadmin.sh
When a web service application is deployed into WAS, an instance is created for each application or module. The instance contains deployment information for the web module or EJB module, including implementation scope, client bindings and deployment descriptor information. There are three levels of scope that can be set: application, session and request.- Publishing WSDL files using wsadmin.sh
The WSDL files in each web services-enabled module are published to the file system location we specify. We can provide these WSDL files in the development and configuration process of web services clients so they can invoke the web services.- Configure application and system policy sets for web services using wsadmin.sh
Use wsadmin, which supports the Jython and Jacl scripting languages, to configure application or system policy sets for web services. We can manage the policies for the Quality of Service (QoS) by creating policy sets and managing associated policies.- Configure secure sessions between clients and services using wsadmin.sh
Use wsadmin, which supports the Jython and Jacl scripting language, to edit trust service configurations. Use the STSManagement command group for AdminTask to specify details related to secure sessions between clients and target services.
Related
Tasks: Implementing web services applications
Start the wsadmin scripting client using wsadmin.sh
Configure additional HTTP transport properties using wsadmin