1 Reply Latest reply on Dec 4, 2009 4:49 PM by Simeon Pinder

    jopr webservice - how to use findDataForResource

    Gabor Veres Newbie

      Hi,

      I'm trying to implement a custom Flex-based dashboard for JOPR. The most trivial interfacing option would be to use the JOPR web service interface, but I just can't figure out the usage of findDataForResource (I guess this would be the method to retrieve measurement data).
      The SOAP request I'm trying to feed to JOPR is like the followig:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
       <soapenv:Header/>
       <soapenv:Body>
       <web:findDataForResource>
       <subject>
       <factive>true</factive>
       <id>2</id>
       <name>rhqadmin</name>
       <sessionId>-1429605750</sessionId>
       </subject>
       <resourceId>10651</resourceId>
       <definitionIds>501114</definitionIds>
       <beginTime>1259851846000</beginTime>
       <endTime>1259851866000</endTime>
       <numPoints>60</numPoints>
       </web:findDataForResource>
       </soapenv:Body>
      </soapenv:Envelope>
      

      The resourceId and the definitionIds is okay, and I've tried lots of combinations for the begin- and endTime (epoch in secs, epoch in millisecs, GMT, local timezone in both, etc.), but I simply don't get any results. The response is always the same:
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header/>
       <env:Body>
       <ns2:findDataForResourceResponse xmlns:ns2="http://www.rhq-project.org/2.3/2009/9/Webservices.xsd">
       <return/>
       </ns2:findDataForResourceResponse>
       </env:Body>
      </env:Envelope>
      


      Am I missing something here?

      Thanks in advance,
      Gabor