Всем доброго дня.
Столкнулся с проблемой настройки веб-сервиса в BPMonline Sales 7.7.0.2293
[ServiceContract]
public interface IService
{
[OperationContract]
string TestService(string param1, string param2);
}
public class TestServiceBpm : IService
{
public string TestService(string param1, string param2)
{
...
}
..\Terrasoft.WebApp\ServiceModel\TestServiceBpm.svc:
%@ ServiceHost Language="C#" Debug="true" Service="Namespace.TestServiceBpm" Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>
..\Terrasoft.WebApp\ServiceModel\http\services.config:
behaviorConfiguration="BaseServiceBehavior" name="Namespace.TestServiceBpm">
name="TestService"
binding="webHttpBinding"
behaviorConfiguration="RestServiceBehavior"
bindingNamespace="http://Terrasoft.WebApp.ServiceModel"
contract="Namespace.IService" />
address="soap" binding="basicHttpBinding" contract="Namespace.IService" />
address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
>
web-config :
path="ServiceModel/TestServiceBpm.svc">
>
>
users="*" />
>
>
>
При попытке достучаться через браузер (http://hostName/1/ServiceModel/TestServiceBpm.svc)
получаю ошибку
Exception Message: An XML comment cannot contain '--', and '-' cannot be the last character. Line 92, position 7.
...
при попытке добавить ServiceReference в VS:
There was an error downloading 'http://hostName/1/ServiceModel/TestServiceBpm.svc/_vti_bin/ListData.svc/$metadata'.
The operation has timed out
Metadata contains a reference that cannot be resolved: 'http://hostName/1/ServiceModel/TestServiceBpm.svc'.
The remote server returned an unexpected response: (302) Found.
Too many automatic redirections were attempted.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Подскажите пожалуйста, в чем моя ошибка!