getActiveFeatures()

SubscriptionFeatureList getActiveFeatures(string usn)

This method retrieves all active features on a subscription for a specified USN.

Parameters

usn
Format: string
Purpose: Specifies the USN of the subscription.

Example: Request active features

This example shows a request for active features of subscription 2142420773.

<getActiveFeatures xmln="http://xml.inomial.com/smile/2.xsd">
  <usn>2142420773</usn>
</getActiveFeatures>

Results

This method returns a SubscriptionFeatureList XML document that contains information about any features that have been applied to the subscription.

There are no messages defined by this method.

Example: A returned SubscriptionFeatureList XML document

This example shows a SubscriptionFeatureList XML document. The document contains the properties of two features applied to a subscription.

<SubscriptionFeatureList xmln="http://xml.inomial.com/smile/2.xsd" xmln="http://ws.inomial.com/smile.2">
  <SubscriptionFeature>
    <Feature>
      <FeatureId>812</FeatureId>
      <Name>Test Feature 812</Name>
      <Object/>
    </Feature>
  </SubscriptionFeature>
  <SubscriptionFeature>
    <Feature>
      <FeatureId>813</FeatureId>
      <Name>Test Feature 813</Name> 
      <Object/>
    </Feature>
  </SubscriptionFeature>
</SubscriptionFeatureList>

Faults

NoSuchItemException

This fault is returned when the USN specified does not exist.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.GetActiveFeatures usn
usn
Purpose: Specifies the USN of the subscription fo which to retrieve the active features.
Note: For more information about the Java client and the options it accepts, see Java client syntax.