The following web service call sets indicator data for three different users (user1@test.com, user2@test.com and user3@test.com. If the user does not exist then the user will be created. In this example the three users belong to the same organization (TestOrg). These three users are sending in data for the same survey (TestSurvey). You will notice that user2 is sending in indicator data for a different service. So, in the xml body, each of the user’s responses may be for a different service. For the indicator data specified, the name of the indicator, its value, and the time of when the survey retrieved the information is provided.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/setIndicator?key=98ce4910fc7f6fdb7af270ea9b3162b6&secret=eafe362499ecead24b3092ec12853590&xmlData=
<Resource-Survey>
<organization>TestOrg</organization>
<survey>TestSurvey</survey>
<User-Answers>
<user>User1@test.com</user>
<service>TestService1</service>
<indicator>
<name>Suitability_indOne</name>
<indicatorValue>9</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Interoperability_indOne</name>
<indicatorValue>0</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Availability_measure_indOne</name>
<indicatorValue>9</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Operability_indOne</name>
<indicatorValue>3</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
</User-Answers>
<User-Answers>
<user>User2@test.com</user>
<service>TestService1</service>
<indicator>
<name>Suitability_indOne</name>
<indicatorValue>4</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Interoperability_indOne</name>
<indicatorValue>3</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Availability_measure_indOne</name>
<indicatorValue>3</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Operability_indOne</name>
<indicatorValue>6</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
</User-Answers>
<User-Answers>
<user>User3@test.com</user>
<service>TestService1</service>
<indicator>
<name>Suitability_indOne</name>
<indicatorValue>0</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Interoperability_indOne</name>
<indicatorValue>3</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Availability_measure_indOne</name>
<indicatorValue>2</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
<indicator>
<name>Operability_indOne</name>
<indicatorValue>2</indicatorValue>
<updateTime>2011-3-11-16-1-3</updateTime>
</indicator>
</User-Answers>
</Resource-Survey>
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |