Create RSS feed for Narrow casting

We are using narrow casting and we can stream content to it using an RSS-feed.
We want to do the following: - Create an rss feed of an exchange (mailbox or calendar) using a script. I think it is just like this link. Or as shown below: 
###Code from http://poshcode.org/?show=669
# Creates an RSS feed
# Parameter input is for "site": Path, Title, Url, Description
# Pipeline input is for feed items: hashtable with Title, Link, Author, Description, and pubDate keys
Function New-RssFeed
param (
$Path = "$( throw 'Path is a mandatory parameter.' )",
$Title = "Site Title",
$Url = "http://$( $env:computername )",
$Description = "Description of site"
Begin {
# feed metadata
$encoding = [System.Text.Encoding]::UTF8
$writer = New-Object System.Xml.XmlTextWriter( $Path, $encoding )
$writer.WriteStartDocument()
$writer.WriteStartElement( "rss" )
$writer.WriteAttributeString( "version", "2.0" )
$writer.WriteStartElement( "channel" )
$writer.WriteElementString( "title", $Title )
$writer.WriteElementString( "link", $Url )
$writer.WriteElementString( "description", $Description )
Process {
# Construct feed items
$writer.WriteStartElement( "item" )
$writer.WriteElementString( "title", $_.title )
$writer.WriteElementString( "link", $_.link )
$writer.WriteElementString( "author", $_.author )
$writer.WriteStartElement( "description" )
$writer.WriteRaw( "<![CDATA[" ) # desc can contain HTML, so its escaped using SGML escape code
$writer.WriteRaw( $_.description )
$writer.WriteRaw( "]]>" )
$writer.WriteEndElement()
$writer.WriteElementString( "pubDate", $_.pubDate.toString( 'r' ) )
$writer.WriteElementString( "guid", $homePageUrl + "/" + [guid]::NewGuid() )
$writer.WriteEndElement()
End {
$writer.WriteEndElement()
$writer.WriteEndElement()
$writer.WriteEndDocument()
$writer.Close()
### end code from http://poshcode.org/?show=669
## Get the Mailbox to Access from the 1st commandline argument
$MailboxName = $args[0]
## Load Managed API dll
Add-Type -Path "C:\Program Files\Microsoft\Exchange\Web Services\1.2\Microsoft.Exchange.WebServices.dll"
## Set Exchange Version
$ExchangeVersion = [Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP1
## Create Exchange Service Object
$service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService($ExchangeVersion)
## Set Credentials to use two options are availible Option1 to use explict credentials or Option 2 use the Default (logged On) credentials
#Credentials Option 1 using UPN for the windows Account
$psCred = Get-Credential
$creds = New-Object System.Net.NetworkCredential($psCred.UserName.ToString(),$psCred.GetNetworkCredential().password.ToString())
$service.Credentials = $creds
#Credentials Option 2
#service.UseDefaultCredentials = $true
## Choose to ignore any SSL Warning issues caused by Self Signed Certificates
## Code From http://poshcode.org/624
## Create a compilation environment
$Provider=New-Object Microsoft.CSharp.CSharpCodeProvider
$Compiler=$Provider.CreateCompiler()
$Params=New-Object System.CodeDom.Compiler.CompilerParameters
$Params.GenerateExecutable=$False
$Params.GenerateInMemory=$True
$Params.IncludeDebugInformation=$False
$Params.ReferencedAssemblies.Add("System.DLL") | Out-Null
$TASource=@'
namespace Local.ToolkitExtensions.Net.CertificatePolicy{
public class TrustAll : System.Net.ICertificatePolicy {
public TrustAll() {
public bool CheckValidationResult(System.Net.ServicePoint sp,
System.Security.Cryptography.X509Certificates.X509Certificate cert,
System.Net.WebRequest req, int problem) {
return true;
$TAResults=$Provider.CompileAssemblyFromSource($Params,$TASource)
$TAAssembly=$TAResults.CompiledAssembly
## We now create an instance of the TrustAll and attach it to the ServicePointManager
$TrustAll=$TAAssembly.CreateInstance("Local.ToolkitExtensions.Net.CertificatePolicy.TrustAll")
[System.Net.ServicePointManager]::CertificatePolicy=$TrustAll
## end code from http://poshcode.org/624
## Set the URL of the CAS (Client Access Server) to use two options are availbe to use Autodiscover to find the CAS URL or Hardcode the CAS to use
#CAS URL Option 1 Autodiscover
$service.AutodiscoverUrl($MailboxName,{$true})
"Using CAS Server : " + $Service.url
#CAS URL Option 2 Hardcoded
#$uri=[system.URI] "https://casservername/ews/exchange.asmx"
#$service.Url = $uri
## Optional section for Exchange Impersonation
#$service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress, $MailboxName)
# Bind to the Contacts Folder
$folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$MailboxName)
$Inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
$psPropset = new-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::FirstClassProperties)
#Define ItemView to retrive just 50 Items
$ivItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(50)
$fiItems = $service.FindItems($Inbox.Id,$ivItemView)
[Void]$service.LoadPropertiesForItems($fiItems,$psPropset)
$feedItems = @()
foreach($Item in $fiItems.Items){
"processing Item " + $Item.Subject
$PostItem = @{}
$PostItem.Add("Title",$Item.Subject)
$PostItem.Add("Author",$Item.Sender.Address)
$PostItem.Add("pubDate",$Item.DateTimeReceived)
$PostItem.Add("link",("https://" + $service.Url.Host + "/owa/" + $Item.WebClientReadFormQueryString))
$PostItem.Add("description",$Item.Body.Text)
$feedItems += $PostItem
$feedItems | New-RssFeed -path "c:\temp\Inboxfeed.xml" -title ($MailboxName + " Inbox")
But it is a Exchange Management Shell script an we would like to execute it like a .php file.
Can anyone help me with this please?
I would like to thank you in advance.
Kind regards,
Jordi Martin Lago

That's not a Exchange Management Shell script its just a normal powershell script that uses the EWS Managed API
http://msdn.microsoft.com/en-us/library/dd633710(v=exchg.80).aspx . So you can run it from any workstation or server where you have powershell and the Managed API library installed.
You will need to update the line
Add-Type -Path
"C:\Program Files\Microsoft\Exchange\Web Services\1.2\Microsoft.Exchange.WebServices.dll"    
To
Add-Type -Path
"C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"    
    To cater for the latest version of the Managed API.
  You can scheduled powershell scripts to run using the Task Scheduler eg
http://community.spiceworks.com/how_to/show/17736-run-powershell-scripts-from-task-scheduler
Cheers
Glen

Similar Messages

  • Create RSS feed for iTunes

    Hi! I'm a PC-user. I need to create an RSS feed for iTunes. What program do I need to use?
    Thanks,
    Charley

    RSS Feed apps at Versiontracker.com
    Did you read you other post here? -> http://discussions.apple.com/message.jspa?messageID=3063466#3063466

  • How to create an rss feed for a database application page

    Hi
    I need to create a web service for an apex application page so that it can be utilized and hosted another server of apex. For that we thought of creating an rss feed for that application page.
    Please help me out how to create an rss feed for an apex page.
    Thanks in advance.
    Regards
    Sandeep Artham

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/advnc_web_services.htm#sthref2628
    Also Blog posts
    http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/
    http://richmurnane.blogspot.com/2010/03/oracle-apex-creating-simple-rss-feed.html
    http://www.apex-blog.nl/node/8
    Regards,
    Jari

  • What program to use to create an RSS feed for iTues.  PC-user.

    Hi! I'm a PC-user. I need to create an RSS feed for iTunes. What program do I need to use?
    Thanks,
    Charley

    Today, Sep. 24, 2006, there is on the Webpage a link
    (http://www.feedforall.com/download.htm) (Shareware)
    to the FeedForAll v2.0 BETA2 with iTunes Support.
    Read on the website:
    "FeedForAll BETA- robust RSS feed creation software with namespace support includind support for iTunes and other namespaces."

  • Creating RSS feeds to iTunes U for the public or other portals to use

    I looked in the documentation but was unable to see any information on setting up RSS feeds for course content.
    Is there a way to view the RSS feed address for a podcast like - http://itunes.stanford.edu/rss.html? They have addresses like - http://deimos3.apple.com/WebObjects/Core.woa/Feed/itunes.stanford.edu.1291405182 .01291405187

    davpoind wrote:
    On the off chance that posting this will get me banned from the board,
    David, to be honest, I seriously doubt this gets you banned. Or reprimanded.
    I think "the big notion" behind iTunes U is the Apple is allowing us to
    take part in the synergy that exists between iPod/iPhone and iTunes
    and apply it to our educational purposes. But I do not think that using
    iTunes (the application) is a requirement ... it is more of the reason to
    do iTunes U. It's not a "must", it's a "why" ... if you follow me.
    iTunes U is about portable and asynchronous access to content ... it's about
    brushing up on, say, a WWDC session while I'm on the "el" on my way to work.
    While I might, conceivably, be able to wrangle WWDC sessions using something
    other than iTunes, I'm never going to have the same ease-of-use experience
    that I would just using iTunes to do everything.
    davpoind wrote:
    Now, a few caveats here...that file must be publically accessible, meaning the "all" credential must have download privileges. If it does not, you will get a Forbidden restriction error.
    I suspect it'd work if "Unauthenticated" also had download access to the file.
    The good news there is that, as you point out, Apple continues to
    enforce our security policies no matter how the file is accessed (iTunes,
    NetNewsWire, etc.).
    You've found an interesting little hack ... it's something to know.

  • Creating RSS feeds

    How do you create RSS feeds? I am building a school site that
    would like to use RSS feeds.
    Thanks!
    -Dan

    Not sure what you mean exactly.
    1) Do you want to create and publish RSS feeds which people
    can subscribe
    to?
    Or 2) do you want to have RSS news feeds appear on your web
    site?
    If 1)
    How to Create an RSS Feed with Notepad, a Web Server and a
    Beer - the beer
    is optional :-)
    http://www.downes.ca/cgi-bin/page.cgi?post=56
    RSS Specifications - everything you need to know about RSS:
    http://www.rss-specifications.com/display-rss.htm
    FeedForAll - feed generating software for win/mac:
    http://www.feedforall.com/
    If 2)
    Feed Roll - javascript generator for including news feeds in
    websites:
    http://www.feedroll.com/rssviewer/
    Google Ajax feedfetcher - requires you to have a Google API
    key#
    http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • RSS feeds for Error Queues

    We have a requirement to send RSS feeds when ever there is a error message placed in the error queeu. Any inputs on this will be very much useful.

    > Hi,  The RSS feeds for the forums are great.  Any
    > chance of having the same thing for the developer
    > areas?  I'd hate to miss any new materials....
    Hi Kenneth,
    RSS feeds for home pages are on the unfortunately long list of improvements. It is high up there.
    But if you don't want to miss any materials, then you should check out DevToday, which you find under Services.
    https://www.sdn.sap.com/sdn/devnews.sdn?node=linkn2
    It shows only the new stuff that came in within the last I think it is 30 days. You can tailor it to your information interests by rating these objects. You can even create a daily or weekly email from it.
    Gone is the fear of missing good information, Mark.
    P.S. If now only that DevToday page had an RSS feed
    P.P.S. Of course it only works if you are logged in, which by the way everyone using SDN should be.

  • Create RSS feed from HTML DB?

    I've been using a streaming RSS feed extension in Firefox for several months now and get feeds from all over including asktom.oracle.com and http://www.oracle.com/technology/products/database/htmldb/index.html. Very cool.
    Recently I've installed HTML DB and have begun creating some basic reports - nothing very dramatic as I'm just learning. Now I'd like to begin sending out RSS feeds from my HTML DB application to my RSS extension in my Firefox browser but can't find an easy way to do it.
    I see several posts of others wishing to do the opposite (read RSS feeds into their HTML DB application) but nothing that shows how to create a feed from HTML DB.
    I looked at Tom's description of his method at http://asktom.oracle.com/~sdillon/rss.html but this seems very cumbersome to me - is there an easier way?
    I would think that there should be a "create RSS" feed button somewhere in the HTML DB interface when I'm defining the page's attributes.
    Thanks in advance for any advice/suggestions.

    Actually, Tom's method is not as hard as it looks.
    You can really just copy it all into your own procedure and replace the inner query.

  • Create RSS feeds from KM News

    Hi all,
    is it possible to create RSS feeds from the standard News items created with Form Based Publishing (XML Forms builders)? In other words, instead if just displaying those news items in the portal, can they be displayed in an RSS reader as well?
    Since it's all XML I would say it is possible, right?
    please advice
    Marcel

    Hi Marcel,
    jRSS - Simple Java RSS Feed Generator
    A simple java API to produce Really Simple Syndication (RSS) documents following the specification version 2.0
    http://sourceforge.net/projects/jrss/
    http://cephas.net/blog/2003/09/07/creating-rss-using-java/
    So generate the RSS in the KM folder where your XMLForm datas are saved.
    After that create a component that accesses this RSS and shows it. You can use RSS Viewer librarys to achieve this:
    http://sourceforge.net/projects/rssview/
    So steps are:
    1. Create RSS and save as resource in KM.
    <b>Create a Repository Service, which creates this RSS and also updates it when contents in the folder changes.</b>
    2. Read this resource using a component and create IView from this component.
    I am sure that there are lots of other approches to implement this solution.
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • RSS Feeds for developer area...

    Hi,  The RSS feeds for the forums are great.  Any chance of having the same thing for the developer areas?  I'd hate to miss any new materials....
    Thanks!

    > Hi,  The RSS feeds for the forums are great.  Any
    > chance of having the same thing for the developer
    > areas?  I'd hate to miss any new materials....
    Hi Kenneth,
    RSS feeds for home pages are on the unfortunately long list of improvements. It is high up there.
    But if you don't want to miss any materials, then you should check out DevToday, which you find under Services.
    https://www.sdn.sap.com/sdn/devnews.sdn?node=linkn2
    It shows only the new stuff that came in within the last I think it is 30 days. You can tailor it to your information interests by rating these objects. You can even create a daily or weekly email from it.
    Gone is the fear of missing good information, Mark.
    P.S. If now only that DevToday page had an RSS feed
    P.P.S. Of course it only works if you are logged in, which by the way everyone using SDN should be.

  • Rss Feeds for Apple news

    Hey, how can I get a Rss Feeds for all the Apple news, not only for the forum discussions?

    http://www.apple.com/rss/

  • I'd like a search keyword-based RSS Feed for iOS apps. Possible?

    It's great that Apple offers a variety of RSS feeds for the iTunes store. I'd like to be able to further hone the feed to particular search-based keywords. For example, limit the top paid apps to just those about dogs or some other long-tail (I did NOT mean that as a pun :-) ) keyword term. Is this possible?
    Alternatively, if one could convert Apple JSON-based searches into an RSS feed, that would do the trick, too. An example JSON feed:
    http://itunes.apple.com/search?term=dog&entity=iPadSoftware&limit=200

    If you want more, then see these (if you're not coming from windoze, skip the switching stuff):
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Anatomy of a Mac,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • In support forum, signed in,where do I link to questions I've asked? Years back, could get RSS feed for question. Still available?

    Where can I link to my questions from my account? Searching for username gives no results. Some years back, you could subscribe to an RSS feed for a question, yours or others. Is that gone, if so, why? How do you save the question, without saving the text of your question in a document, and copying and pasting it into search? FF version 19.0.2.
    Thanks.

    The My Contributions link only appears if you are looking at a page of questions people have posted. It's a filter that doesn't apply to other pages, so I guess it's bit of a secret.

  • HT1819 I have two existing podcasts on iTunes. I have new RSS feeds for both. Can I change the RSS feeds on my existing podcast listings or do I have to resubmit?

    I have two existing podcasts on iTunes. I have new RSS feeds for both. Can I change the RSS feeds on my existing podcast listings or do I have to resubmit?

    There is some info in this discussion.
    https://discussions.apple.com/thread/6024120?tstart=0

  • Create rss feed in iview

    hi experts,
    how can we create rss feed in iView.
    Thanks And Regards
    Trilochan

    Hi,
    Check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/1c4af4da4043bbaf0effd45b93f6d8/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/94/4f7f04f22646b59310904b910e733c/frameset.htm
    A Look at XML iViews in SAP Enterprise Portal 6.0 SP Stack 04
    Implementing A RSS Feed Reader In The Portal
    Easy XML/XSLT transform using apis provided by SAP
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • Initial update of stock with 561 movement type in MIGO

    Dear All, For the initial entry of stock into the system by using 561 movement in MIGO, the following error is being raised Maintain Vendor for the excise invoice Message no. 4F185 For this the plant has been created as vendor and all the excise deta

  • HT1711 Why do some of my songs shut off before they are finished playing?

    Why do some of my songs stop playing before they are finished?

  • Fix problem

    When I turn my ipad2 on it just shows me a USB an itunes and nothing else. I can't use it at the moment because of this problem. Looks like the operating system is not working at all I tried to reset the user account settings earlier before this and

  • Combine Open PDFs

    I have two open PDF documents. I want to take the contents from one and insert it before the contents of the other then close the first document and save the second to MyDocuments. The file names & locations change, but there are only these to files

  • X230T strange battery specs

    Hello! I have got a replacement X230T. Interesting thing, the battery specs are different. There are even multiple Volt- and Watt-values printed on them. Now I am wondering which one would be the better one or whether they are in fact similar and the