Package axis.com.probe.service.sensor

Examples of axis.com.probe.service.sensor.SensorSoapHttpBindingStub


      // subscribe the consumer to all sensor services
      for ( int i = 0; i < endpointReferences.length; i++ )
      {
         // locate the sensor service
         EndpointReferenceType     sensorEpr = endpointReferences[i];
         SensorSoapHttpBindingStub sensor = getSensorService( sensorEpr );

         // build the request to subscribe to the sensor services' change notifications
         Subscribe         subscribeRequest  = buildSubscribe( sensorEpr );
         SubscribeResponse subscribeResponse = sensor.subscribe( subscribeRequest );

         // the subscription request succeeded - remember the EPR to the new subscription in case we need to unsubscribe
         m_subscriptions.add( subscribeResponse.getSubscriptionReference(  ) );
      }
View Full Code Here


   throws ServiceException,
          MalformedURLException
   {
      URL                       sensorUrl     = new URL( endpointReferenceType.getAddress(  ).toString(  ) );
      SensorWsdmServiceLocator  sensorLocator = new SensorWsdmServiceLocator(  );
      SensorSoapHttpBindingStub sensorStub    = (SensorSoapHttpBindingStub) sensorLocator.getsensor( sensorUrl );

      sensorStub.setResourceId( AddressingUtils.getResourceId( endpointReferenceType.getProperties(  ) ) );

      return sensorStub;
   }
View Full Code Here

    */
   protected SensorSoapHttpBindingStub getSensorService( String sensorId )
   throws ServiceException
   {
      SensorWsdmServiceLocator  locator = new SensorWsdmServiceLocator(  );
      SensorSoapHttpBindingStub stub = (SensorSoapHttpBindingStub) locator.getsensor( getSensorUrl(  ) );

      stub.setResourceId( sensorId );

      return stub;
   }
View Full Code Here

TOP

Related Classes of axis.com.probe.service.sensor.SensorSoapHttpBindingStub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.