Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2005

Tip: Looking for answers? Try searching our database.

Basic Web Service Created by VS 2003 Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JJ - 28 Apr 2005 18:22 GMT
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
Keenan Newton - 29 Apr 2005 20:20 GMT
Did you try deleting the web reference from your project and
re-creating it.  Just a quick thought
Keenan Newton - 29 Apr 2005 20:20 GMT
Did you try deleting the web reference from your project and
re-creating it.  Just a quick thought

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.