6 Replies Latest reply on May 23, 2013 1:43 PM by Gopal

    Methods to consume a web service API

    Srinivas

      Hi,

       

      There is  requirement to  consume a web service API and write the data to PI..

       

      is there any out of box interface available to configure the incoming web service ( external party) and write to PI ..   we are thinking of the building  using the Web service API and PI ADK/AF SDK..

       

       

       

      Regards,

       

      Sri

        • Re: Methods to consume a web service API

          Hello Srinivas,

           

          PI Web Services 2012 Install Kit is available in the Download Center with category "PI Data Access".

           

          You may also be interested in PI Web Services User Guide and learning videos "Programming with PI Webservices" Part1, Part2 and Part3

            • Re: Methods to consume a web service API
              Srinivas

              thaks Greg for quick reply.  the requirement is to call the web serive API exposed by external system and parse the data before storing into PI. It is not related to PI web services API calls. is there way we can consume the external web services directly in the PI..

               

              Regards,

               

              Srinivas

                • Re: Methods to consume a web service API

                  Hello Srinivas,

                   

                  Sorry about misunderstanding your question.

                   

                  Before taking a new development into account I recommend checking if there is a solution available already that would fit the requirements.

                   

                  Is this a web service offered by a 3rd party vendor? You may want to check with OSIsoft Technical Support Interface Search if there is a native interface existent. If you are unsure, please open a ticket at OSIsoft TechSupport for clarification.

                   

                  Do you know what protocol this Web Service is using?

                   

                  If the Web Service is using HTML, PI Interface for HTML should be fulfilling your needs.

                   

                  If it comes to a new development, PI SDK, AF SDK, PI OLEDB (Classic) Provider and PI OLEDB Enterprise are the DataAccess methods that I would look into. Is data buffering a requirement? Do you need access to PI AF or is this pure time series data?

                   

                   

                    • Re: Methods to consume a web service API
                      Srinivas

                      No worries Greg.  Yes, it is exposed by 3rd party vendor and there is no native interface available. the protocol being is SOAP .. there is no requirments for  data buffering...

                        • Re: Methods to consume a web service API

                          Hello Srinivas,

                           

                          I am afraid, in this case you will have to develop a custom application.

                           

                          PI OLEDB (Classic) Provider or AF SDK are the recommended DataAccess methods.

                           

                          AF SDK includes access to PI AF while PI OLEDB is limited to PI Server access but offers the usage of INSERT or UPDATE SQL queries you may find charming for your purpose.

                           

                          AF SDK supports bulk writes and is likely the better choice from the performance perspective.

                           

                          Whenever you update a PI Tag with data, you are sending events consistent of Timestamp and value or status (and attributes). For performance reasons and to ensure the compression algorithm can be applied properly, please ensure events are send timely ordered (oldest timestamps to newest timestamps).

                           

                          Please forget about PI OLEDB Enterprise (mentioned earlier) because it is designed for read only access.