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
Client-only rules in Outlook 2003
SQL 2005 - Create failed for database 'test'. (Microsoft.SqlServer.smo)
Looping thru 90 codes
MS Access: sending table or reports (in Excel or text forms) via email
Setup Exchange 2010 to Receive Mail
Can you Transfer CALS
Windows Server 2008 File Server inaccessible from clients
Exchange 2010: 550 5.7.1 Client does not have permissions to send as this sender
Pop pop calender when clicking textbox in userform
Print HTML File Issue