Hi,
i am trying to host a service in IIS which has 2 methods... 1 of them can also be accesed via a simple HTTP-GET request...
This is my config:
<service name="Svc.PaymentService" behaviorConfiguration="DefaultBehavior">
<endpoint address="PaymentService.svc/"
bindingName="Http"
binding="basicHttpBinding"
bindingConfiguration="httpBinding"
contract="Svc.IPaymentService" />
<endpoint address="WEBGETPaymentService.svc/"
behaviorConfiguration="EndpointWebGetBehavior"
binding="webHttpBinding"
contract="Svc.IPaymentService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost/MyService/" />
</baseAddresses>
</host>
</service>
the content auf the SVC files is just a simple redirect to my classes
<%@ ServiceHost Service="Svc.PaymentService" %>
<%@ Assembly Name="MyService" %>
and the interface looks like this:
[OperationContract]
string SOAPMethod(
string test);
[OperationContract]
[WebGet(UriTemplate = "asdf?test={test}")]
string RESTfulMethod(
string test);
When i am trying to host the service in IIS and call it via HTTP-GET Request, i always receive a 404...
http://localhost/MyService/WEBGETPaymentService.svc/RESTfulMethod/asdf?test=hello
Anyway, when i try to call the SOAP method via PaymentService.svc it works...
Any ideas what the mistake is?
Thanks