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 8070861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:31:29+00:00 2026-06-05T13:31:29+00:00

In the past, I have had experience calling WCF services or ASMX services, you

  • 0

In the past, I have had experience calling WCF services or ASMX services, you just add service reference to the .svc or .asmx url and it generates the proxy for you, and then you have intellisense for calling the methods.

Is it the same for a non .net webservice?

I need to call this
http://www.earthtools.org/webservices.htm

from c# code in a winrt app, but I just dont know how

  • 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-06-05T13:31:30+00:00Added an answer on June 5, 2026 at 1:31 pm

    If you have WSDL then you can add reference to that service. but here you try to call REST service.

    you need to send post request and rad the response as:

    private const string BASE_URL = "http://www.earthtools.org/timezone";
    private const string REQUEST_URL_FORMAT = "{0}/{1}/{2}";
    
    public timezone GetTimeZone(double latitude, double longitude)
    {
        var uriString = String.Format(REQUEST_URL_FORMAT, BASE_URL, latitude, longitude);
        var requestUri = new Uri(uriString);
    
        var request = WebRequest.Create(requestUri);
        using (var response = request.GetResponse())
        {
            using (var responseStream = response.GetResponseStream())
            {
                var ser = new XmlSerializer(typeof (timezone));
                var result = (timezone) ser.Deserialize(responseStream);
                return result;
            }
        }
    }
    

    example from here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something that I have had trouble with in the past and it's
All my past programming experience has been in C++ on VS2003/8, Mostly service based
In the past when I've used jqgrid all i have done is had a
Setup Have you ever had the experience of going into a piece of code
It looks like people have had issues with Accept headers in the past, but
In the past I have used MAPISendMail to launch Outlook (or whatever the desired
In the past I have used Managed Direct X and DirectShow.Net to play a
In the past I have worked with the microchip PIC family, but I would
In the past I have stored database credentials (username, password) in another file (outside
I have question regarding the use of function parameters. In the past I have

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.