Sharepoint offers webservices to fetch the data back directly, so you
can target those rather than having to screen scrape.

Take a look at http://msdn.microsoft.com/en-us/library/ms479390.aspx

I've written Air apps in the past for pulling out information from our
sharepoint site in a much nicer way than sharepoint itself ;)

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Netaman
Sent: 24 September 2009 15:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex with Sharepoint

 

  

Does anyone have a better way of integrating Flex with Sharepoint then
with a ColdFusion remote call to a C# app;

C# code here 

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net;
using System.Text;

namespace pathBugLibrary1
{
public class pathBug1
{
public String getURLData(string urlName,string username, string
password)
{
CookieContainer Cookies = new CookieContainer();

WebRequest request = WebRequest.Create(urlName);
request.Credentials = new NetworkCredential(username, password);
request.Method = "GET";

WebResponse response = request.GetResponse();
//string responseFromServer =
(((HttpWebResponse)response).StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
reader.Close();
response.Close();
return (responseFromServer);
}
}
}

I am doing a screen scrape from Sharepoint in ColdFusion and returning
all the pertenient data back to Flex for display and user interaction.

ColdFusion 8 code here for .Net 
<cfobject type=".NET" action="create"
class="pathBugLibrary1.pathBug1" assembly="pathBugLibrary1.dll"
name="pathBug1">
<cfset foo = pathBug1.getURLData ("http://serveraddress/PATH/webpagename
<http://serveraddress/PATH/webpagename> ","username","password")> 

then you can parse foo for specifics, and return any data you need back
to flex

I am looking for a better way to use the sharepoint data with a flex
frontend, the code above works, just alot of web data parsing on my end

Randy



Reply via email to