Есть сервис WCF на сервере sharepoint 2013, который корректно отвечает на запрос через браузер (http://sppj2013/_vti_bin/ReportingCustomService.svc/DoWork), но выдает 404, если попытаться обратиться из report builder'a.
[ServiceContract(Namespace = "http://sppj2013/ReportingCustomService")]
[XmlSerializerFormat]
interface IReportingCustomService
{
[OperationContract(Action = "http://sppj2013/ReportingCustomService/DoWork")]
[WebGet(UriTemplate = "DoWork", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare)]
string DoWork();
[OperationContract(Action = "http://sppj2013/ReportingCustomService/GetStruct")]
[WebGet(UriTemplate = "GetStruct/{input}", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare)]
List<TestStruct> GetStruct(string input);
}
[ServiceBehavior]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class ReportingCustomService : IReportingCustomService
{
public string DoWork()
{
return "It's alive!";
}
public List<TestStruct> GetStruct(string input)
{
return new List<TestStruct> { new TestStruct(input), new TestStruct(input) };
}
}
Обращение из report builder'а
DataSource: тип XML, http://sppj2013/_vti_bin/ReportingCustomService.svc
DataSet:
<Query>
<SoapAction>http://sppj2013/ReportingCustomService/DoWork</SoapAction>
<Method Namespace="http://sppj2013/ReportingCustomService/" Name="DoWork"></Method>
</Query>
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости