Basic Web Service Prob

J

JJ

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top