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 / March 2005

Tip: Looking for answers? Try searching our database.

Consumption

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thom Little - 24 Mar 2005 04:28 GMT
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?

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

[MSFT] - 24 Mar 2005 10:18 GMT
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
Manohar Kamath - 24 Mar 2005 14:25 GMT
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).

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.com

> I wrote a webservice that will be called from websites hosted on seven
> different servers.
[quoted text clipped - 6 lines]
> application not compiled with it and perhaps running on servers remote from
> it?
Thom Little - 25 Mar 2005 09:08 GMT
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 documents simple sting consumption
in C#?

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

> 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).
[MSFT] - 28 Mar 2005 03:42 GMT
Hi Thom,

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

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

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

Luke

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.