Endpoint: String;
The Endpoint property determines an URL of the platform web service, which will be used to connect and work with repository.
As a property value, specify the URL, via which the platform web service is available. For details about creating an URL see the Connecting to Web Service subsection.
Sub CreateDefinition;
Var
Man: IMetabaseManager;
Defs: IMetabaseDefinitions;
Definition: IMetabaseDefinition;
LogonData: IPrimaryServiceSPLD;
Begin
Man := MetabaseManagerFactory.Active;
Defs := Man.Definitions;
Definition := Defs.Add;
Definition.Id := "WebServie";
Definition.Name := "WebServie";
Definition.Authentication := AuthenticationMode.Password;
Definition.DriverId := "WSF";
Definition.SecurityPackage := "STANDARDSECURITYPACKAGE";
LogonData := Definition.LogonData As IPrimaryServiceSPLD;
LogonData.Endpoint := "http://test-srv:80/axis2/services/PP.SOM.Som";
LogonData.Metabase := "Warehouse";
Definition.Scope := MetabaseDefinitionScope.LocalMachine;
Definition.Save;
End Sub CreateDefinition;
After executing the example description of the repository is created. This description is used to connect to repository via the web service located at the specified URL. Actual connection is established to the repository, which description is registered on the web server and has the Warehouse identifier.
See also: