findUsername()

string findUsername(int sid, string username)

This method returns the USNs for all non-closed subscriptions associated with a given username and service. After you call this method, you can use the USN and the get() method to retrieve detailed information about a subscription. You can call this method at any point after the subscription order is entered.

Parameters

sid
Format: integer
Purpose: Specifies the service ID. The numerical service ID is located in the Service (ID) field of the Service tab when you view the service in Smile.
username
Format: string
Purpose: Specifies the username of the account.

Results

This method returns a USN for each subscription associated with the given username and service.

There are no messages defined by this method.

Faults

NoSuchItemException

This fault is returned when Smile cannot find a USN associated with the given username or service.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.FindUsername sid username
sid
Purpose: Specifies the service ID.
username
Purpose: Specifies the username of the account.
Note: For more information about the Java client and the options it accepts, see Java client syntax.