Version 9.6
 —  Using the Asset Catalog  —

Editing an Asset in the Catalog


General

Use the following procedure to edit the attributes associated with an asset.

When editing attributes, keep the following general points in mind:

Start of instruction setTo edit the attributes of an asset

  1. In CentraSite Control, display the detail page of the asset whose attributes you want to edit. If you need procedures for this step, see Viewing Details for an Asset.

  2. To edit an asset's Name, Description or user-defined version number, place the cursor in the appropriate field and modify the text as required.

  3. To modify the extended attributes associated with the asset, do the following:

    1. Select the profile that contains the attribute(s) that you want to modify.

    2. Edit the attributes on the profile as necessary.

      Editing an Asset File

      Certain assets contain one or more associated files. For example, the Web service includes a WSDL file and the XML service includes a schema file. You can upload a new file or update an existing file for the asset accordingly.

      • For an instance of a Web service or abstract service only:
        Attach the WSDL file to the catalog entry using the Attach WSDL command in the asset's Actions menu.

        If you are attaching a WSDL file to a service which already has a WSDL, the service name in the new WSDL must be identical to the service name in the existing one or the process will fail.

        If you are attaching an abstract WSDL file to an abstract service which already has a WSDL, the service name in the new WSDL does not need to be identical to the service name in the existing one. If you mark the checkbox Overwrite Service name, the name of the new attached WSDL will overwrite the name of the existing attached WSDL.

        If you select the option Interactive resolution of Imports/Includes, and the attached WSDL contains an Import or Include reference to a WSDL or schema that already exists in the registry, the dialog allows you to choose whether to retain the existing WSDL or schema, or to replace the existing WSDL or schema by a uploading a new one. If you choose to use upload a new WSDL or schema, you can specify whether the new WSDL or schema should overwrite the existing one, or whether a new version of the WSDL or schema should be created. Regardless of whether you overwrite the existing version or create a new version, you can specify a user-defined version number of the uploaded WSDL or schema in the User version field.

        If you select the option Interactive resolution of Imports/Includes, and the attached WSDL contains an Import or Include reference to a WSDL or schema that does not already exist in the registry, the dialog allows you to upload the WSDL or schema. You can also specify a user-defined version number of the uploaded WSDL or schema in the User version field.

      • For an instance of an XML schema only:
        Attach the schema file to the catalog entry using the Attach button in the asset's Details profile. For additional information about attaching a schema file to an XML schema catalog entry, see Attaching a Schema File to an XML Schema Asset.

      • For an instance of a REST service or XML service only:
        Attach the schema file to the catalog entry using the Add (resource) button in the asset's Technical Details profile. For additional information about attaching a schema file to a REST service or XML service, see Resourcing a REST Service or XML Service

      Editing a Service Endpoint

      Assets such as the REST services and webMethods IS REST services can contain one or more service endpoints. You can specify multiple endpoints or modify existing endpoints as required.

    3. Repeat steps 3.a and 3.b for each profile that you want to edit.

    Note:
    If at any time you want to abandon your unsaved edits, click Close. CentraSite will ask you if you want to save your edits. Click No to abandon your edits and return the asset's attributes to their previous settings.

  4. When you have finished making your edits, click Save.

Note:
An attribute can be a required attribute (i.e. you must supply a value for it) and have a default value. If you do not supply a value for an attribute that is required and has a default value, the default value is automatically assigned to this attribute.

Top of page

Attaching a Schema File to an XML Schema Asset

General

Each XML Schema asset normally has an attached schema file. If you use the schema importer to create the asset, the schema file is attached automatically. If you create the asset by hand, using the Add Asset button on the Browse page, you can attach a schema file to the asset by using the Attach button in the Details profile of the asset.

When you attach a schema file, the following situations are possible:

See the section Adding an Asset to the Catalog Using an Importer for a general description of the mechanisms used when a schema file is attached to an XML Schema asset.

Restrictions

The following restrictions apply for attaching a schema file to an XML Schema asset:

Changing an Entire Schema Graph

When you attach a schema file to a schema asset, it is possible to change the entire graph of imported/included schema files. In this case, you can select the Interactive resolution of Import/Includes option. Then for each imported/included schema asset, a modified schema file can be attached, or a new version can be created or the current schema asset can just be reused. If you reuse a schema asset, then all of its dependent schema assets can be reused as well.

Example: Create a new version of a complete schema graph (illustrated with XML Schema objects):

graphics/schemagraph.png

Top of page

Resourcing an XML Service or REST Service

General

An instance of the XML service or REST service has the "Resource" object internally representing an "Operation" object in the CentraSite registry. When adding or importing an XML service or REST service, CentraSite by means of an invoke operation automatically sets the Resource:invoke entry in the Technical Details profile of the new service. Based upon the type of asset (that is, XML service or REST service), it populates the basic attributes, namely HTTP Method, Content Type, Query String and Schema Name fetched from the service's schema file. You can add or modify these attributes as required.

Important Considerations When Resourcing an XML Service or REST Service

When resourcing an XML service or REST service, keep the following points in mind:

How to Resource an XML Service or REST Service

Start of instruction setTo resource an XML service or XML service

  1. In CentraSite Control, display the details page for the XML service or REST service to which you want to add a resource. If you need procedures for this step, see the section Viewing Details for an Asset in the document Using the Asset Catalog.

  2. Choose the Technical Details profile that allows you to associate a resource object to the service.

  3. Click the Add button.

    The Add Resource dialog is displayed.

  4. In panel 1, specify the following attributes:

    In this field... Do the following...
    Resource Mandatory. Enter a name for the resource. A resource name can contain any character (including spaces).
    HTTP Method Mandatory for application/xml type. Choose the HTTP request method(s) for bridging protocols (e.g., GET, POST, PUT, DELETE).
    Content Type Specify the MIME type of the data supported by the service.

    Note:
    For a REST service, this is often application/xml or application/json type but can be any other valid MIME type. For an XML service, this is only application/xml type.

    Query String For REST services only. Specify the search string as required. Any text you type in is case insensitive.
  5. If you have chosen the content type application/xml, click Next.

    -OR-

    If you have chosen the content type application/json, click Finish.

  6. In panel 2, specify the following attributes to associate the schema(s) with this service.

    In this field... Do the following...
    Import from Specify whether the input file will be read from a URL-addressable location on the network (the URL option) or from your local file system (the File option).
    URL or File

    If the file you are importing resides on the network, specify its URL.

    If the file resides in your local file system, specify the file name. You can use the Browse button to navigate to the required folder.

    If you want to specify multiple schemas, use the Add button to add additional rows.

    URL Authentication

    If you have specified a URL, and the site you want to access via the URL requires user authentication, check this box. This opens an Authentication sub-dialog in which you can enter a username and password for authentication at the URL site.

    Overwrite existing imported schema files This option determines how referenced schemas are handled when the schema that is referred to already exists in the registry. When this option is enabled, the existing schemas in the registry are replaced with the new ones specified by the input schema file(s). When this option is disabled, the importer simply references the schema that already exists in the registry.
  7. Click Finish.

Deleting Resource from an XML Service or REST Service

Use the following procedure to delete a resource from an XML service or REST service.

Start of instruction setTo delete a resource from an XML service or REST service

  1. In CentraSite Control, display the details page for the XML service or REST service whose resource you want to delete. If you need procedures for this step, see Viewing Details for an Asset in the document Using the Asset Catalog.

  2. On the Technical Details profile, select the resource(s) that you want to delete.

  3. Click Delete.

Top of page