Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2 Application Data Services Server allows to add a resource to a certain collection for more convenient usage of the Registry.

...

1. To add a new resource, click on the " Add Resource " link.

2. In the " Add Resource " panel, select " Method " from the drop-down menu.

The following methods are available:

...

  • File - The path of a file to fetch content (XML, WSDL, JAR etc.) Use the "Browse" button to upload a file.
  • Name - The unique name of a resource.
  • Media type - Can add a configured media type or leave this unspecified to enforce the default media type.
  • Description - The description of a resource.

2. Click "Add" once the information is added.

...

  • URL - The full URL of the resource to fetch content from URL.
  • Name - The unique name of a resource.
  • Media type - Can add a configured media type or leave this unspecified to enforce the default media type.
  • Description - The description of a resource.

2. Click " Add " once the information is added.

...

  • Name - The unique name of a resource.
  • Media type - Can add a configured media type or leave this unspecified to enforce the default media type.
  • Description - The description of a resource.
  • Content - The resource content. You can use either " Rich Text Editor" or "Plain Text Editor" to enter.

2. Click " Add " once the information is added.

...

1. If this method was selected, choose the " Media Type " from the drop-down menu and click " Create Content."

Media Types

Each collection and resource created and stored on the repository has an associated media type. However, you also have the option to leave this unspecified enforcing the default media type. There are two main ways to configure media types for resources.

  • The first method is by means of a one-time configuration, which can be done by modifying the "mime.types" file found in "AS<DSS_HOME>\repository\conf " directory. This can be done just once before the initial start-up of the server.
  • The second method is to configure the media types via the server administration console. The first method does not apply for collections, and the only available mechanism is to configure the media types via the server administration console.

...