qualifyService()
ServiceQualificationResponse qualifyService(int sid, ServiceQualificationArguments serviceQualificationArguments)
This method sends data to an upstream provider for qualification. For example, this method may check the class of ADSL available at an address or check if a specific username is available at a provider.
The format and content of the data to qualify is specific to each provider. Before you use this method, contact Inomial to help you configure the service qualification module.
Parameters
- sid
- Format: integer
- serviceQualificationArguments
- Format: ServiceQualificationArguments XML
Example: Request a service qualification
This example checks if a number is available at the Melbourne exchange. The fields in this document vary depending on your Smile configuration and upstream provider.
<ServiceQualificationArguments xmlns="http://xml.inomial.com/smile/2.xsd">
<arguments>
<Object>
<String name="fnn">+61355501256</String>
<String name="exchange">MEL</String>
</Object>
</arguments>
</ServiceQualificationArguments>
Results
This method returns a ServiceQualificationResponse XML document with the result of the qualification.
There are no messages defined by this method.
Example: A returned ServiceQualificationResponse XML document
This example shows a ServiceQualificationResponse XML document that states the number requested in the previous example is available. The fields in this document vary depending on your Smile configuration and upstream provider.
<ServiceQualificationResponse xmlns="http://xml.inomial.com/smile/2.xsd">
<response>
<Object>
<Boolean name="available">true</Boolean>
</Object>
</response>
</ServiceQualificationResponse>
Faults
ServiceQualificationExceptionThis fault is returned when the service qualification attempt fails.
Java client syntax
java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.QualifyService sid filename
- sid
- Purpose: Specifies the service ID.
- filename
- Purpose: Defines the filename of the ServiceQualificationArguments XML document.