This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

Managing web services with the Web Service Registry API

You can use the following Web Service Registry API sample scripts to register, unregister, and find your BMC Atrium Core Web Services:

  • publish
  • unpublish
  • find

These scripts can be modified to meet the needs of your company using the WSRegistry Java API.

To use the Web Service Registry sample scripts

  1. Open a command window.
  2. Navigate to the Atrium Core Installation directory.
    For example, in a Windows environment, the default location is:

    <ATRIUMCORE_INSTALL_DIRECTORY>\wsc\wsregistryapi\conf
     
    ATRIUMCORE_INSTALL_DIRECTORY example, C:\Program Files\BMC Software\AtriumCore\<ARserverHostname>.  
    (The <ARserverHostname> is optional depending, on the installation directory and server group option)
  3. In registryserver.properties, modify the server name and port number of the UDDI server.
  4. Verify that the following values are defined correctly in env.cmd (located in <ATRIUMCORE_INSTALL_DIRECTORY>\wsc\wsregistryapi\scripts\):

    • JAVA_HOME ( example, <ATRIUMCORE_INSTALL_DIRECTORY>/jdk1.6.0_29/jre)
    • CLIENT_HOME (example, (i.e. <<ATRIUMCORE_INSTALL_DIRECTORY>/wsc/wsregistryapi)
    • UDDI username
    • UDDI password
  5. Edit the scripts below to provide the required parameters:
publish  {ServiceName} {ServiceVersion} {BusinessName} {ServiceDescription} {AccessPointUrl} {WSDLUrl}
unpublish  {ServiceName} {ServiceVersion} {BusinessName}
unpublish  {ServiceName} {ServiceVersion} {BusinessName}
findsvc  {ServiceName} {ServiceVersion} {BusinessName} {ApproximateMatch}

Parameter name

Description

ServiceName

Name of the service

ServiceVersion

Version of the service

BusinessName

Name of the BusinessEntity

ServiceDescription

Description of the service

AccessPointUrl

URL of the service access point. For example: http://goldserver:9090/atriumversions_porttype

WSDLUrl

URL of the service WSDL if this is a WSDL service. For example: http://goldserver:9090/atriumversions_porttype?wsdl

ApproximateMatch

Whether to do approximate matching.

  • Y — calls findServices()
  • N — calls findService()

For example, you can execute the following command to register the IIWS 1.0 service:

 ServicePublisher publish IIWS 1.0 BMC MyIIWS http://myhost:6070/imapi http://myhost:6070/imapi?WSDL

For example, you can run the following command to find the IIWS Web Service:

TestUDDIRegistry findsvc IIWS 1.0 BMC Y
Was this page helpful? Yes No Submitting... Thank you

Comments