Extentrix Developer Network-Extentrix Web Services 4.0 – Application Edition


Citrix Published Applications integration with Microsoft SharePoint 2010 using Extentrix Web Services 4.0 – Application Edition

Contents:

Introduction
Requirements
Application Source Code
How to Deploy Extentrix Smart Access Web Part to SharePoint Site.

Introduction

This sample shows how to build a web part for SharePoint 2010 that consumes Extentrix Web Services 4.0 – Application Edition and acts as a web interface for the SharePoint sites.


Requirements

 

  1. To run this sample, you need Visual studio 2010

  2. windows server 2008, with SharePoint server 2010 and any created SharePoint site.
  3. Any web browser

Application Source Code

This sample is a web part project and it has one source code file (ESAWebPart.cs), which contains all required code.

Open the project on VS2010 and try to go over the following notes:

  1. Change the web reference URL as follow:

  2.  

    a. in solution explorer right click on the web reference which is named (EWS) and click Properties.

     

    Figure 1

    b. in the the Properties pane change the URL and press enter.

     

  3. Change NetworkCredential information :

  4.  

    between line 222 and 224 you find the following code:
    NetworkCredential credentials = new NetworkCredential();

    credentials.UserName = "administrator";

    credentials.passw0rd = "p@ssw0rd";

    This code allows the web part to upload images and files.

    change the username and password with your windows server account.

How to Deploy Extentrix Smart Access Web Part to SharePoint Site.

 

  1. Change Project Settings:
  2.  

    a. Open the project properties and change Site URL to the actual value. Now, build the project.

     

    Figure 2

    b. Now you can deploy your solution to the specified SharePoint site.

     

    Figure 3

  3. Since you've deploy your solution to the SharePoint 2010, you can add developed web part to your page.
  4.  

    a. In SharePoint site, click ‘Site Actions’, ‘Edit Page’ and then Under ‘Editing Tools’, click ‘Insert’. Then click ‘Wer Part’. Please make sure that you have Administrator and Design permissions for edited site.

     

    Figure 5

     

    b. In section "Categories" select folder "Custom" where all custom web parts are plased. Select just deployed web part, specify to which part of page you want to add web part. Click "Save".

     

    Figure 6

  5. Now, we can go to the page in SharePoint where we added the web part. If everything goes well, the web part is loaded.

     

    The window will be shown to you first. Enter the proper credentials to logon.

     

    Figure 7

     

    After logging in, you will see the list of published applications assigned to you.

     

    Figure 8