Want sample application by using Web service for VS2008

Frage Want sample application by using Web service for VS2008

  • 18 iulie 2011 03:54
     
     

    Hi,

    I want a sample app for smart device emulator using web service call for VS2008, and i didn't find any option while at the time of adding service reference like "Add Service reference" in VS2008 after web service created. I've only found option like "Add Web Reference" so i tried example like this but it give error like "unable to connect remote server".

    Thanks in advance,

    @nagaraju.

Toate mesajele

  • 18 iulie 2011 06:44
     
     

    Hi Nagaraju,

    It seems to be the problem is with your internet connection. Pls ref. link below for internet connectivity

    http://www.xdevsoftware.com/blog/post/Enable-Network-Connection-Windows-Mobile-6-Emulator.aspx

     

    However for calling webservice in your app. you can refer thread below.

    http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/c267d390-38ee-4c91-abc2-ea0c45a760dd/

     

    Hope this might help you.



    Thanks, Mohsin Shaikh |Mohzz.com

  • 18 iulie 2011 07:23
     
      Are cod

    Hi Mohsin,

    Thanks for your reply, actually i didn't have any issues with internet still it shows error like "unable to connect remote server" can you please take a look at my code snippet from below...

     

    Web service code...

    [WebMethod]
      public string MobileApp(string mobileName) 
      {
        return mobileName + " Selected";
      }
    

    Device emulator code... after adding the Web reference from solution explorer.

    private void btnSerCall_Click(object sender, EventArgs e)
        {
          MobApp.Service mobSer = new MobApp.Service();
          lblResult.Text= mobSer.MobileApp(txtBrand.Text);
        }
    

    Thanks,

    @nagaraju.

  • 18 iulie 2011 07:31
     
     

    Hi ,


    Will you please share the "stacktrace" details of your exception.



    Thanks, Mohsin Shaikh |Mohzz.com

  • 18 iulie 2011 09:21
     
     

    Hi Mohsin,

    Please download my sample below link from Sky drive...

    https://skydrive.live.com/#!/?cid=12a251b09b8a1a55&sc=documents&uc=1&nl=1&id=12A251B09B8A1A55!112

    Thanks,

    @nagaraju.

  • 18 iulie 2011 09:52
     
     

    Hi ,

    I have seen your code. However the problem is with your service. I am not able to retrieve web methods from your service.  That is why you are getting error.

    The best way is  to check the sample : 

    Please find the sample/blog below given by my msdn buddy Mr.Pavan. This example definitely gonna help you.

    http://windows-mobile-dev.blogspot.com/2011/01/how-to-call-web-serive-in-windows.html

     

    Thanks.

     

    Hope this will work.



    Thanks, Mohsin Shaikh |Mohzz.com

  • 18 iulie 2011 10:13
     
     

    Hi Mohsin,

    Thanks for your sample solution, i'm sending my service sample, check below link from sky drive.

    https://skydrive.live.com/#!/?cid=12a251b09b8a1a55&sc=documents&id=12A251B09B8A1A55!113

    Download "MobService" folder in that...

     

    Thanks,

    @nagaraju.

  • 8 august 2011 12:06
     
     

    This will help you...

    http://www.xdevsoftware.com/blog/post/Enable-Network-Connection-Windows-Mobile-6-Emulator.aspx


    [URL="http://www.dineglasgow.co.uk/"]Restaurant Glasgow[/URL]
  • 19 martie 2013 16:14
     
     

    Dear Mohsin Sir

    i am bilal mughal from NUST Islamabad Pakistan.

    i am new to windows networking.

    i have developed some code regarding consuming the wcf web serivce in windows phone 8.

    programs take a input string in the text field and should display that string as a result from web service but code give an communication exception known as

    remote server returned an error:not found

    please help me in this regard.

    Bilal Ahmed Mughal

    https://www.facebook.com/bilal.mughal007

    bilalbabu1@gmail.com