Last post Mar 30, 2010 08:56 AM by Darrel Miller
Mar 17, 2010 08:00 AM|Esonix|LINK
I've created a WCF service library in .Net 3.5 platform. Have written two sample methods without any back end database interaction. Then host it using WebServiceHost class adn end point: "http://localhost:8731/Services". Service hosted successfully and
if I knock at http://localhost:8731/Services/ZipCode/1000 it returned corresponding static value nicely.
Then I've added a connectionstring block into app.config file like
<add name="ConnectionString" connectionString ="Data Source=192.168.1.109;Initial Catalog=test-devel;User Id=test-devel;password=123456;Persist Security Info=True;Connect Timeout=60;Pooling=false;"/>
And wrote two methods REST ful style web service methods to retrieve data from database. Then tried to host this service as I didn previously. But got error message like
"Operation 'Login' in contract 'IUsers' has a UriTemplate that expects a parameter named 'LOGIN', but there is no input parameter with that name on the operation"
I've tried to get rid of this problem but couldn't. Can anyone help me to find out what's the problem with the process? Thanks in advance... ... .
Mar 30, 2010 08:56 AM|Darrel Miller|LINK
Can you show us the IUsers interface and the URL that is currently failing?