dinesh thamburu

dinesh thamburu

  • NA
  • 2
  • 4.7k

How to call a webservice from windows mobile application to website published in another server or machine ,Not in the Local machine ?

Nov 21 2011 7:04 AM
Icannot call the web service from a windows mobile 6 application to a website hosted in another server or machine. If i call the service, webexception will occured and when i use,
  catch (WebException ex)
            {
                // handels the connection error exception anlong with web response error
                string message = ex.Message;
                HttpWebResponse response = (HttpWebResponse)ex.Response;
                if (null != response)
                {
                    message = response.StatusDescription;
                    response.Close();
                }
                //end
                MessageBox.Show(message, "Error");
            }
            Cursor.Current = Cursors.Default;...................... i got the exception like  "Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="urn:iMAAPExternalServices/TestWCF"' was not the expected type 'application/soap+msbin1'." pls give me a immediate solution to develop my application.

Answers (1)