Basic Web Service Prob

Discussion in 'ASP .Net Web Services' started by JJ, Apr 28, 2005.

  1. JJ

    JJ Guest

    Hi,

    Ok I uninstalled WSE2.0 sp3 and still get the same error in proxy file from
    web service.

    I have a web service thats local and created a web ref called lh1.
    At the top of my win form where I call the web ref is this:
    using EMS.lh1;

    private static lh1.EMS1 wsHrs = new lh1.EMS1();

    When I enter win form that has the call to the web service it bombs at:
    public EMS1() {
    this.Url = "http://localhost/WSEMS1/EMS1.asmx"; <-- This line
    }

    This line is located in the proxy file generated by my web reference.

    This is what the top of my proxy file code looks like, I added nothing to
    it:

    [System.Diagnostics.DebuggerStepThroughAttribute()]

    [System.ComponentModel.DesignerCategoryAttribute("code")]

    [System.Web.Services.WebServiceBindingAttribute(Name="EMS1Soap",
    Namespace="http://tempuri.org/")]

    public class EMS1 : System.Web.Services.Protocols.SoapHttpClientProtocol {


    /// <remarks/>

    public EMS1() {

    this.Url = "http://localhost/WSEMS1/EMS1.asmx";

    }


    Following Error is: This is an unexpected token. The expected token is
    'NAME'

    What am I doing wrong?

    Thanks,

    JJ
    JJ, Apr 28, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Big D

    Web User Control Event prob.

    Big D, Jan 2, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    497
    Marina
    Jan 2, 2004
  2. Sonal
    Replies:
    0
    Views:
    329
    Sonal
    Nov 26, 2004
  3. Sonal
    Replies:
    3
    Views:
    5,509
    Sonal
    Nov 26, 2004
  4. JB
    Replies:
    2
    Views:
    1,304
  5. Leo Violette
    Replies:
    0
    Views:
    1,016
    Leo Violette
    Apr 17, 2009
Loading...

Share This Page