Working with WCF service from a Windows Console Application

Hi coders,

I need to make a console application with .NET 4.0 framework which should use a WCF service which is hosted online https://www.ship.co.il/ShipWebServices .
I used to work with web services and just click on "Add Reference" on my project and then link to the address, is it not the case when working with WCF services? Because I get "403 - Forbidden: Access is denied" error when trying to add a reference to this online address.

So what's the proper way to add a reference to an online hosted WCF service?

Thanks
LVL 3
sagirAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Grant SpiteriSenior consultantCommented:
Add Service Reference
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sagirAuthor Commented:
It produces the error I gave you. Is there a way to write some kind of certificates there?
0
käµfm³d 👽Commented:
Is the service actually up and running on that server?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

sagirAuthor Commented:
That's what they've told me.
0
lenordisteCommented:
use this great tool from MS to find out if the WCF service is actually up and running:
http://msdn.microsoft.com/en-us/library/bb552364.aspx

WcfTestClient.exe should be in the following directory: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

the tool is quite straight forward, add a reference to the WCF using the URI they gave you and see if it works. If you still get a 403 than either IIS is blocking you (IP restriction) or you need to provide some kind of credentials.
Here is a list of the reasons which could lead to a 403 error code being sent back assuming IIS7 (source http://support.microsoft.com/kb/943891/en-us) :
403.1 - Execute access forbidden.
403.2 - Read access forbidden.
403.3 - Write access forbidden.
403.4 - SSL required.
403.5 - SSL 128 required.
403.6 - IP address rejected.
403.7 - Client certificate required.
403.8 - Site access denied.
403.9 - Forbidden: Too many clients are trying to connect to the Web server.
403.10 - Forbidden: Web server is configured to deny Execute access.
403.11 - Forbidden: Password has been changed.
403.12 - Mapper denied access.
403.13 - Client certificate revoked.
403.14 - Directory listing denied.
403.15 - Forbidden: Client access licenses have exceeded limits on the Web server.
403.16 - Client certificate is untrusted or invalid.
403.17 - Client certificate has expired or is not yet valid.
403.18 - Cannot execute requested URL in the current application pool.
403.19 - Cannot execute CGI applications for the client in this application pool.
403.20 - Forbidden: Passport logon failed.
403.21 - Forbidden: Source access denied.
403.22 - Forbidden: Infinite depth is denied.
0
sagirAuthor Commented:
Needed to add the exact file of the web service. Folder wasn't enough.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.