I have constructed a service and a website and I want to create access to the service from the website. I know I need to right-click the project and select add service reference.. but then I can't have access to my service. There's no browse button so I
just have to copy paste the URL of the service from my Projects folder but I still get nothing. What am I doing wrong?
No. How can I do that? Currently I wish to test it on my computer, so the website and the server (containing the services) are all on the same computer.
shai44
Member
99 Points
55 Posts
Accessing WCF service from ASP.NET website
Feb 10, 2012 12:21 PM|LINK
Hi.
I have constructed a service and a website and I want to create access to the service from the website. I know I need to right-click the project and select add service reference.. but then I can't have access to my service. There's no browse button so I just have to copy paste the URL of the service from my Projects folder but I still get nothing. What am I doing wrong?
kushalrdalal
Contributor
7130 Points
1271 Posts
Re: Accessing WCF service from ASP.NET website
Feb 10, 2012 12:33 PM|LINK
Did you hosted or service in iis?
My Blog
LinkedIn Profile
shai44
Member
99 Points
55 Posts
Re: Accessing WCF service from ASP.NET website
Feb 10, 2012 04:07 PM|LINK
No. How can I do that? Currently I wish to test it on my computer, so the website and the server (containing the services) are all on the same computer.
kushalrdalal
Contributor
7130 Points
1271 Posts
Re: Accessing WCF service from ASP.NET website
Feb 10, 2012 04:11 PM|LINK
Still you have to host it.
Try to google how to host the wcf service on iis.
<div class="comment-right-col"> <div>Go to your iis.
Try to find Sites under Start Page and your computer name on left side.
Then click on Sites and then click on Default Web Site.
Right cilck on Default Site and Add Application.
In Add Application pop up put the information and under physical path where is your web service is located.
Give the name whatever you want to give in alias.
</div> </div>My Blog
LinkedIn Profile
ze.espogeira
Member
383 Points
101 Posts
Re: Accessing WCF service from ASP.NET website
Feb 10, 2012 04:32 PM|LINK
Take a look at this video
shai44
Member
99 Points
55 Posts
Re: Accessing WCF service from ASP.NET website
Feb 10, 2012 05:57 PM|LINK
Thanks!