Service Registry 3.1 Developer's Guide

Creating an Organization: Examples

For examples of creating an organization, see JAXRPublishOrg.java and JAXRPublishOrgNoPC.java in the directory INSTALL/registry-samples/organizations/src.

The JAXRPublishOrg example creates an organization and its primary contact. It adds a service, the one published in Creating a Service by Publishing a WSDL File: Example. The example displays the unique identifiers for the organization, user, and service so that you can use the identifiers later when you delete the objects. This example creates a fictitious User as the primary contact for the organization. The name of the organization is The ebXML Coffee Break.

The other example, JAXRPublishOrgNoPC.java, does not set a primary contact for the organization. In this case, the primary contact by default is the User who is authenticated when you run the program. The name of this organization is DefaultPCOrg.

ProcedureTo Run the JAXRPublishOrg and JAXRPublishOrgNoPC Examples

  1. Go to the directory INSTALL/registry-samples/organizations.

  2. Type the following commands:


    Ant-base/ant pub-org
    Ant-base/ant pub-org-nopc