Show TOC

Procedure documentationPublishing Web Services from the SAP NetWeaver Administrator Locate this document in the navigation structure

 

When you have configured Web services on the provider system, you can set some or all of these Web services to be published to the Services Registry (SR) so that other parties can discover them.

Note Note

You cannot publish XI 3.0-compatible Web services to SR.

End of the note.

Prerequisites

A connection to the SR is configured.

More information:

Configuring the Services Registry

Procedure

  1. Log on to the SAP NetWeaver Administrator.

  2. Choose   SOA Management   Application and Scenario Configuration   Publication Rules  

    Alternatively, you can use the quick link /publicationrules as follows:

    http://<host>:<port>/nwa/publicationrules

    The Publication Rules screen opens.

Creating a Publication Rule
  1. Choose New.

  2. Enter a name and description of the publication rule, and then choose Next twice.

  3. On the Provider Side step, proceed as follows:

    • To publish all Web services that are deployed on the server, choose Mark all as publication relevant.

    • To publish explicit Web services, add their service definitions to the publication rule.

      The Adding and Removing Service Definitions to a Publication Rule section below outlines the steps you have to complete to add a service definition.

  4. Choose Finish.

  5. The system creates the publication rule with status Active.

    The service endpoints of the service definitions in the publication rule are published to the SR the next time the background job runs. The system publishes only service definitions that were not previously published as part of another publication rule to the Services Registry.

Editing a Publication Rule

You can edit active and inactive publication rules. When you edit publication rules, their status remains unaffected.

  1. Choose a publication rule from the table.

    The Details area opens and displays all service definitions in the publication rule.

  2. Choose Edit, and on the Services tab, proceed as follows:

    • To publish all Web services that are deployed on the server, choose Mark all as publication relevant. All service definitions, whether they are added to a publication rule or not, are published to the SR.

    • To publish explicit Web services, add service definitions to the publication rule.

      The Adding and Removing Service Definitions to a Publication Rule section below outlines the steps you have to complete to add a service definition.

  3. Save your changes.

Adding and Removing Service Definitions to a Publication Scenario
  • Add a service definition

    1. Choose Add.

    2. On the Add Service Definition window that opens, search for the service definitions that are deployed on the local client system:

      • Search for service definitions by name (basic).

        1. Choose the Search tab and then choose Basic.

          The basic search mode is enabled if the Advanced switch is displayed on the Add Service Definition window.

        2. In the Find field, enter service definition name.

          You can use an asterisk (*) or a question mark (?) as wildcards in the search string.

        3. In the Search by dropdown menu, select the search method you want to use.

          The table below outlines the meaning of each state.

          Search Item

          Meaning

          WSDL Porttype Name

          This option enables searching by the port type name of the Web service, included in the WSDL document.

          Internal Name

          This option enables searching by the internal name with which the Web service is deployed on the system.

          Free Text

          This option enables searching by free text executed by the search engine.

        4. In the State dropdown menu, choose the state of the service definition.

          The table below outlines the meaning of each state.

          State

          Meaning

          Modeled

          The service interface is only modeled and does not have any implementation. The service definition does not have a callable service endpoint with runtime configuration settings.

          Activated/Deployed

          The service definition does not have a callable service endpoint with runtime configuration settings. However, the service operations already have an implementation.

          Configured

          The service definition has a callable service endpoint with runtime configuration settings.

        5. Choose Go.

      • Search for service definitions by name (advanced).

        1. Choose the Search tab, and then choose Advanced.

          The advanced search mode is enabled if the Basic switch is displayed on the Add Service Definition window.

        2. In the Find, Search by, and State fields, enter the basic search criteria.

        3. Choose a service definition classification from the Select Classification dropdown menu.

        4. Choose a classification from the tables, and then add or remove it using the arrows.

        5. Choose Go.

      • Browse service definitions by classification.

        1. Choose the Browse tab.

        2. From the dropdown menu, select a service definition classification.

    3. Select a service definition from the result table and then choose OK.

      To select multiple entries from the lists, on your keyboard press and hold the SHIFT or CTRL keys and then choose the relevant service definitions.

  • Remove a service definition

    1. To remove a service definition from the publication rule, choose an entry from the service definition table.

    2. Choose Remove.

Activating and Deactivating a Publication Rule

The table below outlines the effect of the possible changes you can make to the status of a publication rule.

User Action

System Response

To activate a publication rule, choose an entry from the table, and then choose Activate.

The system publishes the service definitions listed in the publication rule. If a service definition was previously published to the Services Registry as part of another publication rule, the system does not publish it a second time.

To deactivate a publication rule, choose an entry from the table, and then choose Deactivate.

The system unpublishes the service definitions listed in the publication rule. If a service definition is listed in another publication rule which is active, the system does not unpublish this service definition.