locked
how to call web service (Located on remote server) method in Windows mobile application RRS feed

  • Question

  • User190827251 posted

    Hi,

    how to call web service (Located on remote server) method in Windows mobile application. I want to display records on windows mobile application using web service search method on some given strings like location="Lahore"

     

    thanks

    Thursday, April 22, 2010 5:56 AM

All replies

  • User-1366948256 posted

    HI,

    YOu just need to add a webreference then you can start working on that as same way as local resources. It will create proxy classes which you can use.

    Cheers,

    Tuesday, April 27, 2010 2:20 AM
  • User190827251 posted

    I tried that, I didnt get any exception but my web service didnt giving me result. I check the web service with SoapUI, that giving me results, means web service is ok, the prob is in my code. Plz give some suggestion

    Code is below:

    using

    System;

    using

    System.Linq;

    using

    System.Collections.Generic;

    using

    System.ComponentModel;

    using

    System.Data;

    using

    System.Drawing;

    using

    System.Text;

    using

    System.Windows.Forms;

    using

     

     

    MobileApplication.pk.com.sigmatec.finservice;

    namespace

    {

     

    MobileApplicationpublic partial class Form1 : Form

    {

     

    {

    InitializeComponent();

    }

     

     

    {

     

     

     

     

    objSearch.search_text =

    objSearch.location =

    objSearch.page_size = 10;

    objSearch.radius = 100;

    objSearch.offset = 0;

    objSearch.longi =

    objSearch.lati =

    objSearch.session_id =

    objSearch.user_id = 0;

     

    objResponse = proxy.search(objSearch);

     

    public Form1()private void button1_Click(object sender, EventArgs e)AdSearchResponse objResponse = new AdSearchResponse();AdSearch objSearch = new AdSearch();FinditnearWSDL proxy = new FinditnearWSDL();"iphone";"lahore";"";"";"";//MessageBox.Show(objResponse.items.ad_text);

     

    }

     

    {

     

    }

    }

    }

    private void Form1_Load(object sender, EventArgs e)

    Tuesday, April 27, 2010 2:43 AM