Setting a Default Target Namespace

The World Wide Web Consortium (W3C) defines an XML namespace as a collection of names, identified by a URI reference, that is used in XML documents as element types and attribute names.

The primary use of namespaces in service development is to provide a unique identifier for the service. It affects how the service is called and how it is identified in composite services.

A namespace is declared using a family of reserved attributes. Namespace attributes may be provided directly or by default. In some instances, names default with spaces and must be changed. To avoid having to change individual files, you can set the default target namespace.

  1. Select Window > Preferences from the main menu bar.

    The Preferences dialog box opens.

  2. Expand Sybase, Inc, then expand Services in the left pane.

    The Services preferences screen appears in the right pane.

  3. Modify any of the following:
    • Default Target Namespace Prefix – the namespace prefix to use as the default.

      Consider using a unique identifier based on your company or organization name, such as urn:mysuborganization:myorganization:mycompany:com


    • Allow Schema without TargetNamespace – select this option to allow schemas that have no namespaces defined.
    • Open the Service Binding editor when the Service editor opens – select this option to automatically open the service binding editor whenever the service editor opens.
  4. Click Apply.
Related tasks
Setting Services Preferences

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.