I would like to use a Web Service as a PI Notifications Delivery Endpoint.
When I do the subscription is it possible to set for a Web Service Parameter an AF Element value?
Yes, that would be possible.
In the downloads section under "extra's" there is an example endpoint for XML output which can be adapted to call a webservice.
A quick search in the forums will give you some discussions around this topic:
thank you very much for your suggestion.
I try to explain my need:
-Calling a web service external to the PI through a "Delivery End Point" -->For this OK
-The problem thatI can passthe Standard Values...... need send the values of elements of AF
You can see from the attached that there is not possibility of selecting different elements of AF.
How can Ipass valuesofAFElementdiffer from the standard?
Marco, you can only pass standard data types in the built-in Web Service delivery channel. If you need a different behavior, you will need to write a custom delivery channel.
Could you tell me what I need to create "custom delivery channel"
You have to add any attribute values you want to send to the Web Service as content first.
There is either a Content or Message tab (depending on which version you have). On the Content tab you can right click and under the Add menu, select attribute value. On the message tab it is similar, but the content area is the vertical pane on the right hand side.
Once you do that you will be able to pick the attribute values to send to the web service in the dialog in your screen shot.
Michal, we have implemented a Web Service but to access it ot is mnecessary to aìhave a user and password.
When I set the WebService as a delivery endpoint, and press teh button "Get Web Service" obviously doesn't work.
Is there in Af an option to pass the WebService credentials while invoking it?
No, Web Service always uses the default credentials. There is an open work item for Notifications to support username/password storage for Web Service. If you cannot configure the web service to not require a password, my advice would be to create an intermediary service that the Notifications Web Service delivery channel can connect to and just forward the calls with the required username/password to the other service.
We have finally implemented the web service invoking passing through TIBCO which then call the receiver system with user and password.
we have an additional issue: If Notification identifies a trigger it invokes the Web Service.
If the connection with the WebService doesn't work is it possible to send a notification via e-mail, in order to alert someone that the notification didn't reach the receiver system?
we have done it, but for a PI Point attribute i can send tothe Web Services only the value, I would like to send the timestamp of the value.
I can I do it?
How about divide your function into 2 procedures.
My understanding about your goal is to get other information from PI Server or PI AF Server which PI Notification Web Service Channel cannot provide. Is that right please?
If so, I would like to use the following steps:
1. Send the information what you need to your Web Service Server via PI Notification Web Servcie Channel
2. Make another call from your Web Service Server to PI Server or PI AF Server to get the information.
As you know, PI Notification Web Service Channel could even send a file via "Add File" function. You could edit a file for your Web Servcie Server, and let your code read the contents in the file to make calls to PI Server or PI AF Server to get the information what you want.
For example, you need the current value of CDT158, and the description of CDM158. You could edit you file, like the first row is CDT158, and the second row is CDM158. Then, you could use your function to convert them to a PIPoint class, and use AF SDK to get all you want.
As far as i know, you can't directly, but the trigger time is likely to be equal to the time of the PI Point if that is your sole trigger.
Side-note: Yes, it has been on my overdue ToDo-list to extend the PI Point DR to allow getting time, data attributes, and other statistics on the PI Point which do not operate on the value (e.g. %good timeweighted over time period)
Yes, the trigger time is very good reference to retrieve the exact value of PI points or PI AF attribtues. However, this depends on if the PI notification has been set up a dead time. If so, this time range should be included in the file which will be sent with this PI notification. This is because I believe in this situation, the trigger time will not be the exact time which the user needs.
Retrieving data ...