getTariffTypes()

TariffTypes getTariffTypes(int sid)

This method returns all tariff types for a given service.

Parameters

sid
Format: integer
Purpose: Specifies the ID of the service for which to return tariff types.

Results

This method returns a TariffTypes XML document containing information about the tariff types of a service. The document can contain multiple tariff types.

There are no messages defined by this method.

Example: A returned TariffTypes XML document

This example shows a TariffTypes XML document containing tariff types for service 772.

<TariffTypes>
  <TariffTypeType>
    <TariffType>1537</TariffType>
    <Service key="772">Test service 772</Service>
    <Company key="1">Example Telecom</Company>
    <Name>13XX</Name>
  </TariffTypeType>
  <TariffTypeType>
    <TariffType>1538</TariffType>
    <Service key="772">Test service 772</Service>
    <Company key="1">Example Telecom</Company>
    <Name>Calls between customers</Name>
  </TariffTypeType>
  <TariffTypeType>
    <TariffType>1539</TariffType>
    <Service key="772">Test service 772</Service>
    <Company key="1">Example Telecom</Company>
    <Name>Internal</Name>
  </TariffTypeType>
  <TariffTypeType>
    <TariffType>1540</TariffType>
    <Service key="772">Test service 772</Service>
    <Company key="1">Example Telecom</Company>
    <Name>International</Name>
  </TariffTypeType>
  <TariffTypeType>
    <TariffType>1541</TariffType>
    <Service key="772">Test service 772</Service>
    <Company key="1">Example Telecom</Company>
    <Name>Local</Name>
  </TariffTypeType>
</TariffTypes>

Faults

ServiceTariffTypeException

This fault is returned when the service ID can not be found.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.GetTariffTypes sid
sid
Purpose: Specifies the ID of the service for which to return tariff types.
Note: For more information about the Java client and the options it accepts, see Java client syntax.