Do you support Web-services? soap or restful?

Avatar

sdg.marinusvz
2012-08-08 14:08

Where can I get more information? I need to be able to read the per half hour energy data (totals); as well as be able to switch breakers on and off.

Avatar

sdg.marinusvz
2012-08-08 14:36

We do have some of both. SOAP we only support to SAP, as an MDUS (Meter Data Unification System); according to the SAP AMI API's in Enhancement Pack 4.
Most of our Web Services are Restful web services, because they are much simpler, and good for returning large datasets, of which we have many. If your data is small or big, Restful can do it for you. Granted, the parameters passed are normally small, and passed as variables to a GET or POST via the cgi string.
Our official web service API's are at http://www.pnpscada.com/webservices.jsp
To get you started quick, here are some examples that works:
https://sdg.pnpscada.com/getAllMeterEntities.jsp?LOGIN=sdg.webservice&PWD=webservice
This gets a list of the meters.
https://sdg.pnpscada.com/getMetersProfiles.jsp?LOGIN=sdg.webservice&PWD=webservice&key1ts=38900004%202012-04-23%2000:00,38900008%202012-04-23%2005:00
This gets values per profile period for a list of meters, from the date and time specified until now.

Avatar

sdg.marinusvz
2012-08-08 14:42

Here is another one:
http://adam.pnpscada.com/getNewProfile.jsp?LOGIN=sdg.webservice&PWD=webservice&Key1=38900008&enddate=2011-09-15&commissioned=false
This one is more compact: It gives the profile back as a comma delimited string in
It is also called per day, so the returns are much quicker and smaller. I'd say this one is better to call than the one in the previous post.
To get all the meters you can read, for a specific day, specify Key1 as a % sign (which is the wildcard in SQL); like so:
http://adam.pnpscada.com/getNewProfile.jsp?LOGIN=sdg.webservice&PWD=webservice&Key1=%25&enddate=2011-09-15&commissioned=false

Avatar

sdg.marinusvz
2012-08-08 14:52

Currently we don't have a bulk switch on switch off web service yet, although that can be developed without too much trouble.
We also do not have a demo for web service calls to switch a breaker on and off yet.
The way to currently switch a breaker on or off is like so:
http://sdg.pnpscada.com/doPage?LOGIN=sdg.marinusvz&PWD=notrealpassword&key2=testme&cid=128&PageToDo=switch.jsp&act=Switch On
to switch on, and like so:
http://sdg.pnpscada.com/doPage?LOGIN=sdg.marinusvz&PWD=notrealpassword&key2=testme&cid=128&PageToDo=switch.jsp&act=Switch Off
to switch off.
These calls currently block, until communication is done.

Avatar

sdg.marinusvz
2014-03-06 09:58

How do I pass prepaid tokens to a prepaid meter over the air?

Here is an example:
http://sdg.pnpscada.com/doPage?LOGIN=sdg.marinusvz&PWD=notrealpassword&key1=01452573288&PageToDo=switchPrepaid.jsp&token=1234567890123456789012&vend=Redeem%20Token
key1 is the serial number of the meter, and token is the token you want to pass in.

Please log in to post a comment