Adding a Web Reference into a Windows Project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Spence1

    #1

    Adding a Web Reference into a Windows Project

    I have a windows based VBNet project and someone has written a small SOAP
    program that is called FileUpload.asmx . I want to add a reference to this in
    my project, but when I add a reference the default extensions I am allowed
    to add do not include .asmx. So I thought of adding a web reference, but it
    says that there are no web services on my machine to add. I started up IIS
    in case that was the problem, but I still get the same result. I even copied
    all the FileUpload components into the wwwRoot folder but still no joy.

    How do I do it?

    -Jerry


  • Theo Verweij

    #2
    Re: Adding a Web Reference into a Windows Project

    To add a web reference:

    Menu Project - Add Web Reference
    Next, type in the url for the webservice (must be running!) like

    Press Ok.

    To test if your url is correct, type it in the internet explorer. You
    should get a page explaining the service. If not, your url is incorrect,
    or the webservice is not running.


    Jerry Spence1 wrote:
    I have a windows based VBNet project and someone has written a small SOAP
    program that is called FileUpload.asmx . I want to add a reference to this in
    my project, but when I add a reference the default extensions I am allowed
    to add do not include .asmx. So I thought of adding a web reference, but it
    says that there are no web services on my machine to add. I started up IIS
    in case that was the problem, but I still get the same result. I even copied
    all the FileUpload components into the wwwRoot folder but still no joy.
    >
    How do I do it?
    >
    -Jerry
    >
    >

    Comment

    • Jerry Spence1

      #3
      Re: Adding a Web Reference into a Windows Project

      Thanks Theo - what do you mean by the "web service". I have IIS running and
      I have put all the files into the wwwroot folder. Should this be sufficient?

      -Jerry

      "Theo Verweij" <tverweij@xs4al l.nlwrote in message
      news:u1oLAfz%23 GHA.4388@TK2MSF TNGP02.phx.gbl. ..
      To add a web reference:
      >
      Menu Project - Add Web Reference
      Next, type in the url for the webservice (must be running!) like

      Press Ok.
      >
      To test if your url is correct, type it in the internet explorer. You
      should get a page explaining the service. If not, your url is incorrect,
      or the webservice is not running.
      >
      >
      Jerry Spence1 wrote:
      >I have a windows based VBNet project and someone has written a small SOAP
      >program that is called FileUpload.asmx . I want to add a reference to this
      >in my project, but when I add a reference the default extensions I am
      >allowed to add do not include .asmx. So I thought of adding a web
      >reference, but it says that there are no web services on my machine to
      >add. I started up IIS in case that was the problem, but I still get the
      >same result. I even copied all the FileUpload components into the wwwRoot
      >folder but still no joy.
      >>
      >How do I do it?
      >>
      >-Jerry

      Comment

      • Theo Verweij

        #4
        Re: Adding a Web Reference into a Windows Project

        The asmx is the webservice.

        If putting the files into the www root is sussicient, you can tell by
        browsing this file with the internet explorer. (http://<machine where
        your iis is running/FileUpload.asmx

        You should get a webpage explaining the webservice (asmx).

        If not, your webservice is not configured correctly - see microsoft
        documentation.

        Jerry Spence1 wrote:
        Thanks Theo - what do you mean by the "web service". I have IIS running and
        I have put all the files into the wwwroot folder. Should this be sufficient?
        >
        -Jerry
        >
        "Theo Verweij" <tverweij@xs4al l.nlwrote in message
        news:u1oLAfz%23 GHA.4388@TK2MSF TNGP02.phx.gbl. ..
        >To add a web reference:
        >>
        >Menu Project - Add Web Reference
        >Next, type in the url for the webservice (must be running!) like
        >http://server/FileUpload.asmx
        >Press Ok.
        >>
        >To test if your url is correct, type it in the internet explorer. You
        >should get a page explaining the service. If not, your url is incorrect,
        >or the webservice is not running.
        >>
        >>
        >Jerry Spence1 wrote:
        >>I have a windows based VBNet project and someone has written a small SOAP
        >>program that is called FileUpload.asmx . I want to add a reference to this
        >>in my project, but when I add a reference the default extensions I am
        >>allowed to add do not include .asmx. So I thought of adding a web
        >>reference, but it says that there are no web services on my machine to
        >>add. I started up IIS in case that was the problem, but I still get the
        >>same result. I even copied all the FileUpload components into the wwwRoot
        >>folder but still no joy.
        >>>
        >>How do I do it?
        >>>
        >>-Jerry
        >
        >

        Comment

        Working...