J
james
Does anyone know how to access a WCF service in Internet Explorer? I
want to browse to my service to make sure it is returning good data,
and I think I am browsing to the wrong address.
I have a simple Interface
[ServiceContract]
interface IWebService
{
[OperationContract]
string Health();
}
and App.config
<configuration>
<system.serviceModel>
<services>
<service name = "HealthMonitor.WebService">
<endpoint
address = "http://localhost:80/"
binding = "basicHttpBinding"
bindingConfiguration = "NoSecurity"
contract = "HealthMonitor.IWebService"
/>
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="NoSecurity">
<security mode="None"></security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
And when I browse to http://localhost/Health I see
<s:Envelope>
<s:Body>
<s:Fault>
<faultcode>aestinationUnreachable</faultcode>
<faultstring xml:lang="en-US">
The message with To 'http://localhost/health' cannot be processed at
the receiver, due to an AddressFilter mismatch at the
EndpointDispatcher. Check that the sender and receiver's
EndpointAddresses agree.
</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>
want to browse to my service to make sure it is returning good data,
and I think I am browsing to the wrong address.
I have a simple Interface
[ServiceContract]
interface IWebService
{
[OperationContract]
string Health();
}
and App.config
<configuration>
<system.serviceModel>
<services>
<service name = "HealthMonitor.WebService">
<endpoint
address = "http://localhost:80/"
binding = "basicHttpBinding"
bindingConfiguration = "NoSecurity"
contract = "HealthMonitor.IWebService"
/>
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="NoSecurity">
<security mode="None"></security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
And when I browse to http://localhost/Health I see
<s:Envelope>
<s:Body>
<s:Fault>
<faultcode>aestinationUnreachable</faultcode>
<faultstring xml:lang="en-US">
The message with To 'http://localhost/health' cannot be processed at
the receiver, due to an AddressFilter mismatch at the
EndpointDispatcher. Check that the sender and receiver's
EndpointAddresses agree.
</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>