Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:56:55+00:00 2026-05-23T17:56:55+00:00

For connecting to webservices i wrote the following code. WebClient wc = new WebClient();

  • 0

For connecting to webservices i wrote the following code.

WebClient wc = new WebClient();
wc.DownloadStringAsync(new Uri("http://www.Webservices.asmx"));
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);

void wc_DownloadStringCompleted(object sender,DownloadStringCompletedEventArgs e)
{
    Debug.WriteLine("Web service says: " + e.Result);
    using (var reader = new StringReader(e.Result))
    {
        String str = reader.ReadToEnd();
    }
}

by using above code Get the string result.But i want get the result in HTMLVisulaizer then i know the what are the methods having that webservice.then i can easily access the particular method.
Please tell me how to call a web service method in Windows phone 7?in webservice i am having 5 webmethods.how to get that and how to call the Particular webmenthod.

Please tell me thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:56:56+00:00Added an answer on May 23, 2026 at 5:56 pm

    @Jason James

    The first step:

    You must add referent Services ,like Jason James has very detailed instructions .

    step 2 :

    You can open App.xaml.cs , in Functions Apps

    public Apps()
    {
        // Global handler for uncaught exceptions. 
                UnhandledException += Application_UnhandledException;
    
                // Show graphics profiling information while debugging.
                if (System.Diagnostics.Debugger.IsAttached)
                {
                    // Display the current frame rate counters.
                    Application.Current.Host.Settings.EnableFrameRateCounter = true;
    
                    // Show the areas of the app that are being redrawn in each frame.
                    //Application.Current.Host.Settings.EnableRedrawRegions = true;
    
                    // Enable non-production analysis visualization mode, 
                    // which shows areas of a page that are being GPU accelerated with a colored overlay.
                    //Application.Current.Host.Settings.EnableCacheVisualization = true;
                 }
               // You can declare objects here that you will use
               //Examlpe: NameservicesReferent.(Function that returns services) = new NameservicesReferent.(Function that returns services)();
    

    Ws_Function = new Nameservices.ServiceSoapClient();

    }
    

    step 3:

    in Mainpage.xaml.cs

    GlobalVariables.Ws_advertise.getLinkAdvertiseIndexCompleted += new EventHandler<advertise.getLinkAdvertiseIndexCompletedEventArgs>(Ws_advertise_getLinkAdvertiseIndexCompleted);
    GlobalVariables.***NameWedservise***.getLinkAdvertiseIndexAsync("**parameters to be passed**");
    

    step 4:

    void Ws_advertise_getLinkAdvertiseIndexCompleted(object sender, advertise.getLinkAdvertiseIndexCompletedEventArgs e)
            {
                 //function returns the results to you, the example here is an array
               string[] array = null;
               try
    
               {
                  array = e.result;
                  if(array != null)
    
               }
               cath(exception ex)
               {
    
               }
               finally
               {
                 array = null;
    GlobalVariables.Ws_advertise.getLinkAdvertiseIndexCompleted -= new EventHandler<advertise.getLinkAdvertiseIndexCompletedEventArgs>(Ws_advertise_getLinkAdvertiseIndexCompleted);
               }
             }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using following webservices for retrieving data from server server side:.net client side:ksoap2
I'm going to do a wpf application using MVVM(It based on http://www.codeproject.com/KB/WPF/MVVMQuickTutorial.aspx ). This
I have a winforms, and it connecting wit webservice. Webservice has method which create
I have an ASP.NET website that is contacting a webservice. Everything works fine connecting
When connecting to a network share for which the current user (in my case,
i connecting to a access database with php and adodb. Strings with characters like
When connecting to Oracle the JDBC driver identifies itself as JDBC Thin Client to
When connecting to sql server, I have the hardcoded string (local). Is this a
I have someone connecting to my repository using the url (substituted the IP address):
I wrote a webservice by aspx in vs2008 and a windows applocation by c#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.