Microsoft
Software
Hardware
Network
Question : WCF standalone Http service with query string problem
Hi I am very new to WCF. I need to create a WCF service to return a value based on the query string passed in. I am testing in a browser yet it doesn't work.
For example, I have a method in the service contract called "TestMethod":
and it's defined as:
public string TestMethod()
{
return "you said: " + HttpContext.Current.Reques
t.QueryStr
ing["MyPar
am"];
}
I would like to be able to call this method from a browser like this:
http://localhost/Service.s
vc?MyParam
=hello
and the xml would return the string.
Answer : WCF standalone Http service with query string problem
Is the code being executed? If not then check the value for
@ServiceHost Service.
http://msdn.micros
oft.com/en
-us/librar
y/aa751792
.aspx
http:
//msdn.mic
rosoft.com
/en-us/lib
rary/aa967
286.aspx
Random Solutions
Upgrade from Win2003 R2 to Win 2008
Loop through and delete an item from a combo box
How to create a domain-wide slideshow screensaver GPO by using pictures on each local machine ?
OLE registration error occurred
Auto-attach to process '[4152] w3wp.exe' on machine '[machine name]' failed. Error code 0x8013134b.
Extract data all in one line
"constant too big" error
securing mdb file
How many cores does Microsoft SBS 2003 support?
psexec - No process is on the other end of the pipe.