Click here to Skip to main content
15,887,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have hosted rest service http://10.6.16.163:21829/RestService.svc in server.
I am trying to consume on windows mobile 7 for a login page where user name is prefixed with domain name ABC/ and I have password. On authentication login page must navigate to some other page.


http://10.6.16.163:21829/RestService.svc/IsUserAuthenticated/<b>ABC</b>%5C<b>anu.vatsa</b>/passs1/12345
Here is the parameter that I am sending thru URL:
domain name : ABC
UserName :anu.vatsa
Password :passs1
DeviceID :12345
Posted
Updated 15-Sep-11 5:09am
v3
Comments
Herman<T>.Instance 15-Sep-11 14:14pm    
show code in where you connect to the service (ie the proxy generated)

1 solution

Here is my code:
C#
void btnGo_Click(object sender, RoutedEventArgs e)
      {
          WebClient proxy = new WebClient();
          string strUri = "http://10.6.16.163:21829/RestService.svc/IsUserAuthenticated;
         

          proxy.OpenReadCompleted+=new OpenReadCompletedEventHandler(proxy_OpenReadCompleted);
          proxy.OpenReadAsync(new Uri(strUri));
      }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900