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

Discussion in 'ASP .Net Web Services' started by Eskimo, Jan 6, 2005.

  1. Eskimo

    Eskimo Guest

    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
     
    Eskimo, Jan 6, 2005
    #1
    1. Advertisements

  2. 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
     
    R. Thomas, aka Xtreme.Net, Jan 7, 2005
    #2
    1. Advertisements

  3. Eskimo

    Eskimo Guest

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

    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
     
    Eskimo, Jan 7, 2005
    #3
  4. RE: why does my webservice web reference not work in aspx project?

    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
     
    R. Thomas, aka Xtreme.Net, Jan 7, 2005
    #4
  5. Eskimo

    Eskimo Guest

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

    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
     
    Eskimo, Jan 7, 2005
    #5
  6. RE: why does my webservice web reference not work in aspx project?

    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
     
    R. Thomas, aka Xtreme.Net, Jan 8, 2005
    #6
  7. Eskimo

    Eskimo Guest

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

    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
     
    Eskimo, Feb 15, 2005
    #7
  8. Eskimo

    william Guest

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

    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:

    > 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
     
    william, Mar 3, 2008
    #8
    1. Advertisements

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. jblazi
    Replies:
    5
    Views:
    598
    jblazi
    Aug 16, 2004
  2. Horace Nunley

    why why why does function not work

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    710
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 27, 2006
  3. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,362
    Mark Rae
    Dec 21, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,824
    Smokey Grindel
    Dec 2, 2006
  5. Nick Gilbert
    Replies:
    3
    Views:
    1,806
    Steven Cheng[MSFT]
    Dec 12, 2006
  6. Tarun
    Replies:
    5
    Views:
    563
    Tarun
    Jul 14, 2005
  7. Joe Kovac
    Replies:
    0
    Views:
    366
    Joe Kovac
    Jun 14, 2007
  8. Phi!
    Replies:
    1
    Views:
    351
Loading...