HighTechTalks DotNet Forums  

why does my webservice web reference not work in aspx project?!

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss why does my webservice web reference not work in aspx project?! in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Eskimo
 
Posts: n/a

Default why does my webservice web reference not work in aspx project?! - 01-06-2005 , 09:45 AM






Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #2  
Old   
R. Thomas, aka Xtreme.Net
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project?! - 01-06-2005 , 10:41 PM






Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Quote:
Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #3  
Old   
Eskimo
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 01-07-2005 , 08:57 AM



I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Quote:
Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #4  
Old   
R. Thomas, aka Xtreme.Net
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 01-07-2005 , 09:57 AM



So whats your status now?
R. Thomas

"Eskimo" wrote:

Quote:
I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #5  
Old   
Eskimo
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 01-07-2005 , 10:53 AM



It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

Quote:
So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #6  
Old   
R. Thomas, aka Xtreme.Net
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 01-07-2005 , 07:37 PM



oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

"Eskimo" wrote:

Quote:
It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #7  
Old   
Eskimo
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 02-15-2005 , 04:01 PM



TODO: namespaces should reflect the context you're in

i.e.

ESKIMO.PIE.WEBPAGES
ESKIMO.PIE.DAL
ESKIMO.PIE.BLL
ESKIMO.PIE.UIL

versus

ESKIMO.PIE.CHOCOLATE <database namespace> in dll
ESKIMO.PIE.CHOCOLATE <webpage namespace> in web service project

"R. Thomas, aka Xtreme.Net" wrote:

Quote:
oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

"Eskimo" wrote:

It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #8  
Old   
william
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 03-03-2008 , 12:17 PM



Hi,

I have same issue as you had. I'm not quite understand your solution. Could
you give me more in details?
Here is my senario:
1. my web service was developed in VS2005 in C# as web site,
[WebService(Namespace = "http://www.CompanyName.com/")]
public class Login : System.Web.Services.WebService {
....}
2. I deployed it on my local XP machine as virtual directory "TestWebService".
3. I created a test web application by File>New>Web Site>ASP.NET Web Site,
name it TestWebSite.
4. I added web reference from my web test application which is in VS2005 C#,
renamed the reference name to "TestLoginServ".
5. Added a button on the Default.aspx, and in button1_click event, tried to
use TestLoginServ.Login class, failed.

What should I do for namespace?

Thanks.
William

"Eskimo" wrote:

Quote:
TODO: namespaces should reflect the context you're in

i.e.

ESKIMO.PIE.WEBPAGES
ESKIMO.PIE.DAL
ESKIMO.PIE.BLL
ESKIMO.PIE.UIL

versus

ESKIMO.PIE.CHOCOLATE <database namespace> in dll
ESKIMO.PIE.CHOCOLATE <webpage namespace> in web service project

"R. Thomas, aka Xtreme.Net" wrote:

oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

"Eskimo" wrote:

It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #9  
Old   
william
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 03-03-2008 , 12:17 PM



Hi,

I have same issue as you had. I'm not quite understand your solution. Could
you give me more in details?
Here is my senario:
1. my web service was developed in VS2005 in C# as web site,
[WebService(Namespace = "http://www.CompanyName.com/")]
public class Login : System.Web.Services.WebService {
....}
2. I deployed it on my local XP machine as virtual directory "TestWebService".
3. I created a test web application by File>New>Web Site>ASP.NET Web Site,
name it TestWebSite.
4. I added web reference from my web test application which is in VS2005 C#,
renamed the reference name to "TestLoginServ".
5. Added a button on the Default.aspx, and in button1_click event, tried to
use TestLoginServ.Login class, failed.

What should I do for namespace?

Thanks.
William

"Eskimo" wrote:

Quote:
TODO: namespaces should reflect the context you're in

i.e.

ESKIMO.PIE.WEBPAGES
ESKIMO.PIE.DAL
ESKIMO.PIE.BLL
ESKIMO.PIE.UIL

versus

ESKIMO.PIE.CHOCOLATE <database namespace> in dll
ESKIMO.PIE.CHOCOLATE <webpage namespace> in web service project

"R. Thomas, aka Xtreme.Net" wrote:

oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

"Eskimo" wrote:

It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
  #10  
Old   
william
 
Posts: n/a

Default RE: why does my webservice web reference not work in aspx project? - 03-03-2008 , 12:17 PM



Hi,

I have same issue as you had. I'm not quite understand your solution. Could
you give me more in details?
Here is my senario:
1. my web service was developed in VS2005 in C# as web site,
[WebService(Namespace = "http://www.CompanyName.com/")]
public class Login : System.Web.Services.WebService {
....}
2. I deployed it on my local XP machine as virtual directory "TestWebService".
3. I created a test web application by File>New>Web Site>ASP.NET Web Site,
name it TestWebSite.
4. I added web reference from my web test application which is in VS2005 C#,
renamed the reference name to "TestLoginServ".
5. Added a button on the Default.aspx, and in button1_click event, tried to
use TestLoginServ.Login class, failed.

What should I do for namespace?

Thanks.
William

"Eskimo" wrote:

Quote:
TODO: namespaces should reflect the context you're in

i.e.

ESKIMO.PIE.WEBPAGES
ESKIMO.PIE.DAL
ESKIMO.PIE.BLL
ESKIMO.PIE.UIL

versus

ESKIMO.PIE.CHOCOLATE <database namespace> in dll
ESKIMO.PIE.CHOCOLATE <webpage namespace> in web service project

"R. Thomas, aka Xtreme.Net" wrote:

oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

"Eskimo" wrote:

It was a namespace issue. I fixed it.

"R. Thomas, aka Xtreme.Net" wrote:

So whats your status now?
R. Thomas

"Eskimo" wrote:

I already tried that.

It was a namespace issue.
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.

Yes, I looked at project build order. No, it did not help either.

"R. Thomas, aka Xtreme.Net" wrote:

Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

"Eskimo" wrote:

Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

--
tym, Eskimo

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.