.NET Framework Developer Center > .NET Development Forums > ASMX Web Services and XML Serialization > ASMX Web Services Calling Wndows Form (VB.NET Or C#.NET) Windows Application
Ask a questionAsk a question
 

AnswerASMX Web Services Calling Wndows Form (VB.NET Or C#.NET) Windows Application

  • Tuesday, March 10, 2009 11:28 AMOrcasKing Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     


    Hi All

    I have a critical issue related the web services.

    i have develop one window application using (VB.net & C#.net) both are window application, i want to make use of ASP.NET Web Services to my window application,

    how can i do this, how can i call the asp.net web services using window application, do i need to create proxy class or i need to app.config or web.config to my window application to call the asmx web services

    please leave you suggestions,

    thanks
    Orcas King 2009

    Orcas

Answers

  • Tuesday, March 10, 2009 11:52 AMJohn SaundersMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Create a proxy class by using "Add Service Reference" or "Add Web Reference".
    John Saunders
    Use File->New Project to create Web Service Projects
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
  • Thursday, March 12, 2009 9:00 PMvnpradeep Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi..


    Add proxy from add web reference..

    Dim ref As yourreferencename.Service1 = New yourreferencename.Service1

    'use ur webmethod
    ref.helloworld()

    No need to wrry abt app.config n web.config..  As u select asp.net webservice application web.confing is automatically created..

All Replies

  • Tuesday, March 10, 2009 11:52 AMJohn SaundersMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Create a proxy class by using "Add Service Reference" or "Add Web Reference".
    John Saunders
    Use File->New Project to create Web Service Projects
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
  • Thursday, March 12, 2009 9:00 PMvnpradeep Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi..


    Add proxy from add web reference..

    Dim ref As yourreferencename.Service1 = New yourreferencename.Service1

    'use ur webmethod
    ref.helloworld()

    No need to wrry abt app.config n web.config..  As u select asp.net webservice application web.confing is automatically created..

  • Friday, October 30, 2009 10:34 AMjaistealth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    can u just mail me "jaistealth@gmail.com" in detail..how to connect a asp.net web service to windows application..i will b thankful for this