Я внедряю сервисную библиотеку WCF.Вы добавляете новый файл кода, который содержит следующий сегмент кода.
Namespace ContosoWCF
<ServiceContract()>
Public Interface IRateService
<OperationContract()>
Function GetCurrentRate() As Decimal
End Interface
Partial Public Class RateService
Implements IRateService
Public Function GetCurrentRate() As Decimal _
Implements IRateService.GetCurrentRate
Dim currentRate As Decimal = GetRateFromDatabase()
Return currentRate
End Function
End Class
End Namespace
Я собираю сервисную библиотеку и развертываю ее сборку в приложении IIS.Мне нужно убедиться, что метод GetCurrentRate может быть вызван из JavaScript.Что мне делать?