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
DataGrid Scrollbar Width
LDAP/ Active Directory Password Unlock Error..
Converting Access queries to T-SQL problems
Can't connect to SQL server 2008 (error 40 could not open a connection to the SQL Server)
SBS 2003 NT Backup SqlServerWriter Error 0x800423f4
VB.Net - BulkCopy Excel to SQL...works, but funky
IIS 7 Enable Details Error messages remotely
Excel Macro to check all data in Colum A in sheet1 and delete all cells that contain that in all sheets
Internet selectively disconnecting in Vista after 10-15 minutes.
How to scroll to selected item listbox vb.net