MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology

Web Services

SOAP IN Web services

SOAP Tutorial

How to Use web Services in Console Application using C#
Previous Home Next
Step 1: Open a new project and select console Application. press on Ok.
Step 2: Click on Add service reference a new window open Click on Advance.
A new window open click on Add Web reference and copy the URL of your running service and paste it to the URL space in new window shown below and click on Go. Click on Add reference but remember your Web reference name.
The Service will be added in your project.
Step 3: Written the following code in your Program (Program.cs).

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace Circlearea
{
    class Program
    {
       static void Main(string[] args)
        {
            localhost.Service lo = new localhost.Service();
            Console.Write("Please enter the value=");
            int area = Convert.ToInt32(Console.ReadLine());
            double fr=lo.CircleArea(area);
            Console.WriteLine("Area is =" + fr);
            Console.ReadLine();
        }
    }
}
Step 4: Run the Application
Previous Home Next