YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Exposing PI data via web services... Options · View
flanno
#1 Posted : Thursday, October 13, 2011 12:23:35 PM
Rank: Newbie
Groups: Member

Joined: 10/13/2011
Posts: 2
Location: Reading
Hi everyone,

I have a requirment to access PI data using web-services as a secure data transport mechanism for certain applications which use PI data. I am not looking to display on a web page so not sure I need web parts. Is this kind of data access built into the basic 2010 server install / SDK or will I have to buy more OSI stuff?

Cheers

Paul
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
RJK Solutions
#2 Posted : Friday, October 14, 2011 9:18:24 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hi Paul...OSIsoft have their PI Web Services product that you can use for this task. Of course you could just write your own web services too.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
flanno
#3 Posted : Friday, October 14, 2011 5:18:18 PM
Rank: Newbie
Groups: Member

Joined: 10/13/2011
Posts: 2
Location: Reading
Hi Rhys,
Of course, sometimes you get so immersed in the PI world you assume everything needs a PI addin or tool. Whereas sometimes the DIY approach is fine.
Darkness
#4 Posted : Monday, May 07, 2012 12:53:00 PM
Rank: Newbie
Groups: Member

Joined: 5/25/2011
Posts: 4
Location: Belgium
it is not built-in. As mentioned, OSIsoft has their own product to access PI via webservices, but it is possible to get a basic webservice going using PI-SDK. There are a few quirks involved in getting this running reliably but it is possible.

A few hints regarding the quirks:
* accessing value attributes like 'questionable' is much faster if the code runs in an STA thread (due to behind the scenes marchalling between threads in MTA mode I think).
* use ServerManager object
* easy way to force all SDK code in an STA thread is running the code from a hidden windows form in your webservice and use Invoke to execute sdk code in the form. (stole this idea from an example osisoft used to have on their website, I'm guessing they still use this tactic in their own webservice)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.