Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The WebDAV Sample for connecting to WSO2 Governance Registry through Microsoft Visual Studio explains how you could easily read, write, update or delete resources and collections stored on the Governance Registry through Visual Studio.

Info
titleNote

The WSO2 Governance Registry WebDAV API can be used to mount collections stored on the repository to your local filesystem.

...

Code Block
sh wso2server.sh

See Starting Governance Registry Management Console Installing on Windows or Starting Governance Registry Management Console Installing on Linux and Solaris.

Info
titleTip

Though this sample will only work in a Windows environment, the WSO2 Governance Registry server can run on a Linux Server.

...

3. Create a WebDAV mount to WSO2 Governance Registry on your Windows filesystem. See Using WebDAV on Windows for more information.

Steps to get this sample to work

1. Launch Visual Studio and select the Open Web Site option on the File menu.

Image RemovedImage Added

2. Select the Z drive (or the drive that you created to connect to Governance Registry).

Image RemovedImage Added

3. Now click on the Open button to create a connection to WSO2 Governance Registry from within Visual Studio.

Image RemovedImage Added

You should now see the /_system collection of the WSO2 Governance Registry from within the Visual Studio Solution Explorer.

Image RemovedImage Added

Creating Resources and Collections

1. Right-click on the label Z:\ and select New Folder to create a new collection.

Image RemovedImage Added

2. Give the folder the name Visual Studio.

Image RemovedImage Added

3. Right-Click Visual Studio and select Add New Item.

Image RemovedImage Added

4. Select Text File as the file type to create a resource of type text/plain with the default name TextFile.txt.

Image RemovedImage Added

5. Click the Add button to add the text resource to the WSO2 Governance Registry.

Image RemovedImage Added

6. Right-click Visual Studio and select the Refresh Folder option.

Image RemovedImage Added

7. Right-click on TextFile.txt and select the Open option.

Image RemovedImage Added

8. Once the file opens, you can type some text through the Visual Studio text editor.

Image RemovedImage Added

9. Click the save button to update the resource contents on the WSO2 Governance Registry.

Image RemovedImage Added

10. Select the Save button on the Save File As dialog box.

Image RemovedImage Added

11. Confirm the Save As operation by clicking on the Yes button.

Image RemovedImage Added

You now can navigate to the Resource Browser of WSO2 Governance Registry and find the collection and the resource you created. See Managing the Resources for more information.

 

Excerpt
hiddentrue

General information about using WebDAV to connect to the WSO2 Governance Registry from Microsoft Visual Studio.