Hi All,
I have one function in webservice:-
///
/// Get the required user agreements for the
application specified.
///
///
The name of the
application.
///
[WebMethod]
public
UserAgreement[] GetRequiredUserAgreements(string applicationName)
{
List
KeyValuePair
KeyValuePair
parameters[0] = parameter;
int returncode =
Keups.Business.WebServiceAudit.RecordWebServiceAccess("InquiryService",
this.User.Identity.Name, "GetRequiredUserAgreements", parameters);
if (returncode != 0)
{
return
userAgreements.ToArray();
}
Keups.Business.Application application =
Keups.Business.Application.FindApplicationByName(applicationName);
if (application != null)
{
Keups.Business.UserAgreement[] agreements = application.Agreements;
foreach (Keups.Business.UserAgreement agreement in agreements)
{
UserAgreement userAgreement = new
UserAgreement();
userAgreement.AgreementName =
agreement.Name;
userAgreement.AgreementText =
agreement.Text;
userAgreements.Add(userAgreement);
}
}
return userAgreements.ToArray();
}
i have already registered the webservice, now i need to capture the return value in my aspx.cs page.
i tried like this
UserAgreement[] userAppAgreements = inquiry.GetRequiredUserAgreements(appName);
this is giving me error.
then i tried like this
object userAppAgreements = inquiry.GetRequiredUserAgreements(appName);
here
not able to check the null and >0 condition.
Any help?
Ajay GautamPosted Jul 21, 2010, 4:50 PM