Subscribe

  • Subscribe  

Integrates Flex with Sharepoint

Posted by Charles | April 10, 2008 .

Microsoft pushes Sharepoint as its enterprise collaboration solution very hard all over the places. I’d say the solution is well accepted among large enterprise organizations. As collaboration system and platform, many horizontal solutions can be developed to enrich the environment. RIA can play a great role here for better usability and visualization. As matter of fact, Microsoft published the Silverlight Blueprint for Sharepoint right after Silverlight was under the light, as part of Microsoft Software+Service Blueprints set. How about Flex?

Markuso has a good start on a pont about read Sharepoint data from Flex.

What he did was created a ASP.net web service proxy between Sharepoint and Flex. The proxy will work with Sharepoint’s list, such as document or action list. Within Flex, all you need to do is to define the web service as follow:

<mx:WebService id="sharepointService" useProxy="false"
    wsdl="http://myserver/services/SharePointService.asmx?WSDL"
    showBusyCursor="true" fault="wsFaultHandler(event)">
    <mx:operation name="GetSharePointListXML" resultFormat="e4x" 
        result="getSharePointListXMLResult(event)">
    <mx:request>
        <sSiteUrl>{siteUrl}</sSiteUrl>
        <sListGUID>{listGUID}</sListGUID>
        <sViewGUID>{viewGUID}</sViewGUID>
        <sFieldsList>{fieldsList}</sFieldsList>
        <sQuery>{query}</sQuery>
    </mx:request>
    </mx:operation>
</mx:WebService>

That’s it. The rest of code is just calling the service “GetSharepointListXML” and parse the result. Working with XML with Flex is really trivial so for something small, this is a nice fast solution.

Leave a Comment

If you would like to make a comment, please fill out the form below.


Name

Email

Website

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comments

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Related Posts

2 Comments so far
  1. Jonathan Gravois  November 25, 2008 12:31 pm

    For those of us developers that are cut off from the IT Ivory Palace with no access to the GAC or SharePoint Server, is there anyway to use Flex and SharePoint without having to create a custom web service (which IT considers as custom code and must be tested by the techs — next opening in testing: February 18th.

  2. Alex  July 26, 2010 7:17 am

    I have been trying to use this solution but no luck. Can you add more detail to your fix? I have placed this web service in my Flex form but I believe I need to tweak it. Can you let me know the specifics to tweak it?

<

Error. Page cannot be displayed. Please contact your service provider for more details. (7)


Direct TV Offers - usdirect has the best directtv deals