SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Consuming web service from different folder

rated by 0 users
This post has 3 Replies | 0 Followers

Top 500 Contributor
Posts 3
andyteng1 Posted: 01-13-2008 2:19 AM

I have created a web service in the directory D:\webservice

Also, i have created a web site in the directory D:\website

I would want to add web reference in the website, where i want to consume the web service from D:\webservice.

How can it be done? I had tried typing D:\webservice in the url bar and it didnt work.

Any advise? 

Top 25 Contributor
Posts 442

You can add both website and webservice in the same Visual Studio Solution.

Then use the "Add Web Reference" on the website and select "Web Services in this Solution".

 

Maung Maung
Top 500 Contributor
Posts 3

okay.

Meaning i combine the webservice into the website folder, so that all the .asmx and .vb file will be in website folder.

From there, then i use Add web reference.

Correct me if i am wrong.

MaungMaung, Thanks. Big Smile

Top 25 Contributor
Posts 442

Nope...

What I meant was to add both web sites into a single solution and not merging of folders.

Maung Maung
Page 1 of 1 (4 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems