در این مثال فرض شده است که برنامه نویس محترم ، وب سرویس پرهات را با عنوان Parhot.AdvancedWS
به پروژه خود اضافه کرده است
private List<
ParhotIncomingReportResult> GetAllIncommingMessages(
string Username,
string
Password,
int? LastIncommingID,
DateTime? LastIncommingDate)
{
Parhot.AdvancedWS.
ParhotAdvancedWS
objWS = new Parhot.AdvancedWS.
ParhotAdvancedWS();
string Result = objAdvancedWS.GetAllIncommingMessages(Username,
Password, LastIncommingID, LastIncommingDate);
List<
ParhotIncomingReportResult>
ReportResult =
ProcessReportResult(Result);
return ReportResult;
}