getTicket()

Ticket getTicket(string ticketNumber)

This method searches for a ticket by ticket number and returns information about the ticket. Use this method to check if a ticket number is valid.

Parameters

ticketNumber
Format: string
Purpose: Defines the number of the ticket to retrieve.

Results

This method returns a Ticket XML document that contains the valid ticket number and subject. If the ticket number is not valid, this method returns a fault.

There are no messages defined by this method.

Example: A returned Ticket XML document

This example shows a Ticket XML document with a valid ticket number.

<Ticket xmlns="http://xml.inomial.com/smile/2.xsd">
  <Number>184213</Number>
  <Subject>Close subscription 2142423645</Subject>
</Ticket>

Faults

CrmException

This fault is returned when the ticket cannot be returned or the caller does not have permission to access the ticket.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.GetTicket ticketNumber
ticketNumber
Purpose: Specifies the number of the ticket to retrieve.
Note: For more information about the Java client and the options it accepts, see Java client syntax.