473,385 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Basic Web Service Created by VS 2003 Problem

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("c ode")]

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

public class EMS1 : System.Web.Services.Protocols.SoapHttpClientProtoc ol {
/// <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
Nov 23 '05 #1
2 936
Did you try deleting the web reference from your project and
re-creating it. Just a quick thought

Nov 23 '05 #2
Did you try deleting the web reference from your project and
re-creating it. Just a quick thought

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Harris | last post by:
Can anyone please help? I have read the postings on the error "The Visual Basic for Applications Project in the database is corrupt" but none report the particular problem I am experiencing, i.e.,...
4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
3
by: Ivan G. | last post by:
Hi I'm just playing with Visual Studio 2003 trying to write simple windows service. I've created user service, installer and msi package, my cool service appeared in MMC service list. But when I...
2
by: Edward W. | last post by:
I wrote my web service and I have no problem browsing to the asmx file and seeing the public methods. I can even invoke them with no problem. But in my asp.net application I get this error...
1
by: Andy | last post by:
This is driving me to insanity!!! I do not have a lot of experience with IIS which probably is not helping but as far as I can tell I am do things as per the MSDN documentation. I have a...
13
by: Pete | last post by:
I'm cross posting from mscom.webservices.general as I have received no answer there: There has been a number of recent posts requesting how to satisfactorily enable BASIC authorization at the...
0
by: pumaken68 | last post by:
Does anyone has experience with calling web service from pocket pc 2003 project in VS 2005 environment? I just migrated a smart device(pocket pc 2003) solution from VS 2003 to VS 2005. There are...
4
by: Lenny Shprekher | last post by:
Hi, I have long time ago written windows service (VS2002) which is working fine on Windows 2000 server for 4 years. After installing service on Windows 2003 SP1 service crashing every time with...
1
by: Sandy | last post by:
HI All, I'm a newbe to ATL. I got stucked with a problem, I have a ATL service exe created sometime back in 1998 using VC++ 6.0 ( or older) which works as expected in Windows NT, I dont have all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.