1 of 1 people found this helpful
Please follow below steps.
In Server Manager right-click Roles >Add Roles.
- Click Next to use the Add Roles Wizard to add the web server role.
- Click Server Roles and select Web Server (IIS) the Roles window.
- Click Next
Under Application Development in the Role services list:
- Select ASP.NET
Select IIS 6 Management Compatibility in the Role services list and then click Next.
- Verify that these items are listed as Installed in the Roles list:
Under Application Development:
• .NET Extensibility
• ISAPI Extensions
• ISAPI Filters for .NET Framework 4
Under IIS 6 Management Compatibility:
• IIS 6 Management Compatibility
• IIS 6 WMI Compatibility
• IIS 6 Management Console
Please refer PI-Web-Services-2012-User-Guide.pdf for additional information.
Thanks a lot Lal Babu Shaik, seems like the problem was with the Roles settings. I missed out ASP.NET 3.5 checkbox under Roles -> Web Server (IIS) -> Web Server -> Application Development -> ASP.NET 3.5 during the initial setup. Although ASP.NET 4.5 was installed already, seems like it requires ASP.NET 3.5 (or both) to be installed. Thanks again for the help.
Why do you use PI Web Services?
It returns PI data by http protocol but PI Web API is the latest technology for this protocol.
OSIsoft recommend it rather than old technology (PI Web Services).
Do you have specific reason to use PI Web Services?
Hi Kenji Hashimoto,
I was going through the tutorials of setting up delivery endpoints in my PI System. I saw 'Web Services' mentioned under the Delivery Channel dropdown (see in attached images), so I looked around for softwares in Live Library and found PI Web Services installation kit. I thought once I installed it I could get in the dropdown options, but didn't. Can you tell me how to achieve that?
I want to achieve this:
This settings is used for PI Notification. You need to install PI Notification client for seeing the delivery channel. It contains web services option too.
PI Notification can send Email. Not only Email but also PI Notification can send data to Web Services too by http protocol. See following blog post for more details.
Basically users need to create custom web services (For example using Visual studio) for achieving custom behavior(For example runs a bat file, writes history to a different database, etc).
1 of 1 people found this helpful
Kenji Hashimoto, that was helpful. Since from PI AF Services 2016 onwards, PI Notifications is included in it, while you are installing/setting it up it is asking for SMTP Server and mailing email-id. I thought that was only related to Email Notifications. So I gave some dummy data and continued with installation. And then magically I find both Email and Web Services options in those dropdown. I know it was kind of a hack. But it would be better if OSI gave separate options for both during installation itself.
Thank you very much.
2 of 2 people found this helpful
We are talking about different things:
- Do you want to have a RESTful web service on top of the PI System? In this case, use PI Web API.
- Do you want to communicate with a 3rd party web service? In this case, one option is to use PI Notifications.
There is no reason to start a project using PI Web Services nowadays since:
- It uses an old technology (SOAP). PI Web API is developed on top of REST.
- The community here is using PI Web API so you will get better support.
- There are more samples, blog posts and white papers in PI DevClub about PI Web API than PI Web Services.
- OSIsoft is still improving and enhancing PI Web API. PI Web Services is deprecated.
- PI Web API has client libraries available (not official) to help you get started faster.
Hope I was able to convince you!
Marcos Vainer Loeff yes I agree with you. I went across several of the documentations yesterday and found that my purpose of hitting a custom web service can be solved using PI Notifications. Thanks a lot for the valuable insight.