473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to use a WCF service in IE?

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>a:DestinationUnreachable</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>

Feb 28 '07 #1
3 7780
Thus wrote 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.
[...]

You need either a client that is capable to produce SOAP requests, or use
a binding that processes raw HTTP queries. You don't get either out-of-the-box.
Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Feb 28 '07 #2
Thanks Joerg. Looks like msdn has an article on making a service like
this at http://msdn2.microsoft.com/en-us/library/aa395208.aspx.
On Feb 28, 2:10 pm, Joerg Jooss <news-re...@joergjooss.dewrote:
Thus wrote 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.

[...]

You need either a client that is capable to produce SOAP requests, or use
a binding that processes raw HTTP queries. You don't get either out-of-the-box.

Cheers,
--
Joerg Jooss
news-re...@joergjooss.de

Feb 28 '07 #3
Thus wrote James,
Thanks Joerg. Looks like msdn has an article on making a service like
this at http://msdn2.microsoft.com/en-us/library/aa395208.aspx.
Yes, that's exactly what I alluded to by saying "use a binding that processes
raw HTTP queries".

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Mar 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
4
by: Keith | last post by:
I'm in the same boat as the fellow who posted this message back in August: Title : Windows Service, How does one make a service "fail" properly? Author : Ross Bennett Group :...
7
by: Mike | last post by:
I want to create a windows service that will monitor another window service. what i need for the service to do is, if a service is stopped I need it to start the service back up example: ...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
2
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.