Use this topic as a reference for the commands for the WebServicesAdmin group of the AdminTask object. Use these commands with your administrative scripts to list available Web services, list web services attributes, determine the endpoint configuration for a Web service, and determine a specific operation name.
Use the commands in the WebServicesAdmin group to query information for installed web services. For more information about the AdminTask object, see the Commands for the AdminTask object article.
The listWebServices command retrieves a list of available Web services for one or all applications. If an application name is not supplied, the command lists all of the Web services.
Target object
None.
Required parameters
None.
Optional parameters
Return value
All Web services for the application specified. For each Web service, the command returns the following attributes and corresponding values: application name, module name, service name, whether the Web service is a service provider or client, and service type. The service type is only specified if the Web service is a service provider.
Batch mode example usage
AdminTask.listWebServices('[–application application1 -client false]')
'[[service {http://www.ibm.com}service1][application application1][module webapp1.war][type JAX-WS][client false]]'
Interactive mode example usage
AdminTask.listWebServices ('[-interactive]')
AdminTask.listWebServices (['-interactive'])
The getWebService command retrieves the attributes for a Web service.
Target object
None.
Required parameters
Optional parameters
Return value
Returns a list of attributes, including service name, whether the service is a provider or client, and service type. The service type attribute is only applicable for service providers.
Batch mode example usage
AdminTask.getWebService('[–application application_name -module module_name -service webservice_name -client false]')
'[[service {http://www.ibm.com}service1][type JAX-WS][client false]]'
Interactive mode example usage
AdminTask.getWebService ('[-interactive]')
AdminTask.getWebService (['-interactive'])
The listWebServiceEndpoints command returns a list of logical endpoints for a Web service. The logical endpoint name is the port name in the Web Services Description Language (WSDL) document.
Target object
None.
Required parameters
Optional parameters
Return value
Returns the logical endpoint name for the Web service specified.
Batch mode example usage
AdminTask.listWebServiceEndpoints('[–application application_name -module module_name -service webservice_name -client false]')
'[[logicalEndpoint QuotePort01]]'
Interactive mode example usage
AdminTask.listWebServiceEndpoints ('[-interactive]')
AdminTask.listWebServiceEndpoints (['-interactive'])
The listWebServiceOperations command returns a list of Web service operations.
Target object
None.
Required parameters
Optional parameters
Return value
Returns the operation name for the Web service specified.
Batch mode example usage
AdminTask.listWebServiceOperations('[–application application_name -module module_name -service webservice_name -client false -logicalEndpoint endpoint_name]')
'[[operation ivt_app_op1][operation ivt_app_op2]]'
Interactive mode example usage
AdminTask.listWebServiceOperations ('[-interactive]')
AdminTask.listWebServiceOperations(['-interactive'])