It should be possible (and it looks like it is), but assume I have the following functions in my ASMX web service:
[WebMethod(MessageName = "CreateExternalRpt1")]
public bool CreateExternalRpt(int iProductId, int iOrderProductId, DateTime dtReportTime, string strReportTitle,
string strReportCategory, string strReportPrintType, out string strSnapshot, string strApplicantFirst, string strApplicantLast,
string strApplicantMiddle, string strOwnerLast, string strOwnerMiddle, string strOwnerFirst,
bool blnCurrentReport, int iOrderId, bool blnFlag, string strCustomerId, string strUserId)
{
…
}
[WebMethod(MessageName = "CreateExternalRpt2")]
public bool CreateExternalRpt(int iProductId, int iOrderProductId, DateTime dtReportTime, string strReportTitle,
string strReportCategory, string strReportPrintType, string strReportSnapshot, string strApplicantFirst, string strApplicantLast,
string strApplicantMiddle, string strOwnerLast, string strOwnerMiddle, string strOwnerFirst,
bool blnCurrentReport, int iOrderId, bool blnFlag)
{
…
}
With both of these functions defined in my web service, my .NET client app can’t download the metadata and instead throws a generic error message “There was an error downloading…”.
With one of the above methods removed, the .NET client app can successfully download the metadata.
I’ve read that by decorating the WebMethod with a unique name, both functions should be exposed in the service metadata.
This isn’t working. What am I missing?