Professional Web Applications Themes

Consumption - ASP.NET Web Services

I wrote a webservice that will be called from websites hosted on seven different servers. The test consumer for this application (Consume.aspx) accesses the information from the web service (CountService.,asmx) correctly. Consume.aspx was compiled in the same project as CountService.asmx. What do I have to do to make CountService.asmx available to other application not compiled with it and perhaps running on servers remote from it? -- -- Thom Little -- [url]www.tlanet.net[/url] -- Thom Little Associates, Ltd. --...

  1. #1

    Default Consumption

    I wrote a webservice that will be called from websites hosted on seven
    different servers.

    The test consumer for this application (Consume.aspx) accesses the
    information from the web service (CountService.,asmx) correctly.
    Consume.aspx was compiled in the same project as CountService.asmx.

    What do I have to do to make CountService.asmx available to other
    application not compiled with it and perhaps running on servers remote from
    it?

    --
    -- Thom Little -- [url]www.tlanet.net[/url] -- Thom Little Associates, Ltd.
    --



    Thom Little Guest

  2. #2

    Default RE: Consumption

    Hello Thom,

    You can open other ASP.NET project in VS .NET IDE, Click Project/Add Web
    Reference, and enter the url for your web service. VS. NET will add a web
    reference to the project and genrate a proxy class. Also the url can be
    dynamic and you can specify other url in code like:

    service.Url="http://myserver/myapp/CountService.,asmx"

    Hope this help,

    Luke

    [MSFT] Guest

  3. #3

    Default Re: Consumption

    First of all, I would separate them into two different projects -- since
    they are logically separate. This will also help you deploy the web service
    by itself. To deploy, you could compile the web service project, and do an
    xcopy (minus the .cs files).

    --
    Manohar Kamath
    Editor, .netWire
    [url]www.dotnetwire.com[/url]


    "Thom Little" <thomtlanet.net> wrote in message
    news:%231dvLGCMFHA.3380TK2MSFTNGP15.phx.gbl...
    > I wrote a webservice that will be called from websites hosted on seven
    > different servers.
    >
    > The test consumer for this application (Consume.aspx) accesses the
    > information from the web service (CountService.,asmx) correctly.
    > Consume.aspx was compiled in the same project as CountService.asmx.
    >
    > What do I have to do to make CountService.asmx available to other
    > application not compiled with it and perhaps running on servers remote
    from
    > it?
    >
    > --
    > -- Thom Little -- [url]www.tlanet.net[/url] -- Thom Little Associates, Ltd.
    > --
    >
    >
    >

    Manohar Kamath Guest

  4. #4

    Default Re: Consumption

    Thank you both. I am, once again, thrashing.

    I created separate projects for the service and the consumer.

    In the consumer I added a web reference for the service.

    The consumer simply has ...

    string strRequest = "http://www.tlatla.net/index.asp" ;
    CountServices csWork = new localhost.CountServices( );
    lblResult.Text = strRequest + " <> " + csWork.Count( strRequest ) ;

    Passing a string and returning a string.

    I get a not found error on the Count.Services statement and am too ill
    educated to correct it. Can you point me (again) in the right direction.
    Perhaps you can recommend an article that doents simple sting consumption
    in C#?

    --
    -- Thom Little -- [url]www.tlanet.net[/url] -- Thom Little Associates, Ltd.
    --

    "Manohar Kamath" <mkamathTAKETHISOUTkamath.com> wrote in message
    news:ecdLyTHMFHA.3844TK2MSFTNGP14.phx.gbl...
    > First of all, I would separate them into two different projects -- since
    > they are logically separate. This will also help you deploy the web
    > service
    > by itself. To deploy, you could compile the web service project, and do an
    > xcopy (minus the .cs files).
    >
    > --
    > Manohar Kamath
    > Editor, .netWire
    > [url]www.dotnetwire.com[/url]

    Thom Little Guest

  5. #5

    Default Re: Consumption

    Hi Thom,

    Here is a sample about how to create a simple web service:

    [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q308359[/url]

    You may first try it and then modify your test project according that.

    Luke

    [MSFT] Guest

Similar Threads

  1. Jrun CPU Consumption Pegged at 50%
    By ballengeem in forum Coldfusion Server Administration
    Replies: 12
    Last Post: June 22nd, 03:27 PM
  2. Jrun CPU Consumption Pegged at 50%
    By Altair Avionics in forum Coldfusion Server Administration
    Replies: 0
    Last Post: September 28th, 03:20 PM
  3. Jrun CPU Consumption Pegged at 50%
    By tomp in forum Coldfusion Server Administration
    Replies: 1
    Last Post: August 23rd, 10:48 PM
  4. Memory consumption
    By Gary in forum Macromedia Director Lingo
    Replies: 2
    Last Post: October 16th, 02:32 PM
  5. Power Consumption
    By Jenny in forum ASP.NET General
    Replies: 1
    Last Post: July 17th, 12:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139