Using a web service

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

    #1

    Using a web service

    I'm really new at this. Trying my hand at creating an ASP.Net website
    using C# as the language. I have written a website using ASP.net and
    VB and I have worked through a book on using C#.

    I have a sample C# asp.net application from here (http://
    https://www.prosper.com/Downloads/Se...erQueryApp.zip)

    I want to write a website that implements the same web service


    In the sample (and in a web site I create using VB) the web services
    appear in the object browser. When I create a web reference in a C#
    website, I don't get the web reference in the Object Browser. Any
    reference in my program is then in error.

    I'm having a lot of difficulty writing a web page using C#. Sometimes
    when I create a form on the page, it is as if the form doesn't exist.
    Once I managed to get past this by excluding the page from the
    solution and then including it again. However, I cannot get a
    reference to a DataGridView to be resolved.

    I'm really tempted to chuck the C# attempt and fall back to VB.
    Please help!

  • Michael Nemtsev, MVP

    #2
    Re: Using a web service

    Hello MikeB,

    To have the WebService reference in object browser you need to create your
    WS firstly.
    after that you need to start your WS server, so you can have access to it
    locally


    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    MI'm having a lot of difficulty writing a web page using C#. Sometimes
    Mwhen I create a form on the page, it is as if the form doesn't exist.
    MOnce I managed to get past this by excluding the page from the
    Msolution and then including it again. However, I cannot get a
    Mreference to a DataGridView to be resolved.
    M>


    Comment

    • MikeB

      #3
      Re: Using a web service

      Hi Michael, thank you for your reply. I believe the web service is
      existing and running at the services.prospe r.com website.

      I see lots of things about having a "proxy server" do I need one? As I
      said, I can get the supplied sample C# Windows forms application to
      run. It is only when I try and define the web reference in a website
      using c# that I'm having difficulties.

      On Nov 1, 4:14 am, Michael Nemtsev, MVP <nemt...@msn.co mwrote:
      Hello MikeB,
      >
      To have the WebService reference in object browser you need to create your
      WS firstly.
      after that you need to start your WS server, so you can have access to it
      locally
      >
      ---
      WBR,
      Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour
      >
      "The greatest danger for most of us is not that our aim is too high and we
      miss it, but that it is too low and we reach it" (c) Michelangelo
      >
      MI'm having a lot of difficulty writing a web page using C#. Sometimes
      Mwhen I create a form on the page, it is as if the form doesn't exist.
      MOnce I managed to get past this by excluding the page from the
      Msolution and then including it again. However, I cannot get a
      Mreference to a DataGridView to be resolved.
      M>

      Comment

      • Michael Nemtsev, MVP

        #4
        Re: Using a web service

        Hello MikeB,

        When you add reference to your WS the proxy will be created automatically

        What is your WS server name url? u need to type it into the IE to check its
        availability

        ---
        WBR,
        Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

        "The greatest danger for most of us is not that our aim is too high and we
        miss it, but that it is too low and we reach it" (c) Michelangelo


        MI see lots of things about having a "proxy server" do I need one? As
        MI said, I can get the supplied sample C# Windows forms application to
        Mrun. It is only when I try and define the web reference in a website
        Musing c# that I'm having difficulties.
        M>


        Comment

        • MikeB

          #5
          Re: Using a web service

          If I understand this whole web service thing correctly, then this is
          the web server name:



          On Nov 1, 4:41 pm, Michael Nemtsev, MVP <nemt...@msn.co mwrote:
          Hello MikeB,
          >
          When you add reference to your WS the proxy will be created automatically
          >
          What is your WS server name url? u need to type it into the IE to check its
          availability
          >
          ---
          WBR,
          Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour
          >
          "The greatest danger for most of us is not that our aim is too high and we
          miss it, but that it is too low and we reach it" (c) Michelangelo
          >
          MI see lots of things about having a "proxy server" do I need one? As
          MI said, I can get the supplied sample C# Windows forms application to
          Mrun. It is only when I try and define the web reference in a website
          Musing c# that I'm having difficulties.
          M>

          Comment

          Working...