Adding a WCF as a reference?

I have created a WCF site and I have created a test application. When I try and add the WCF Site as a service I get the following error:

The document at the url http://some-external-ip/myWCF/Service.svc was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://myserver1/myWCF/Service.svc?disco'.'.

- The remote name could not be resolved: 'myserver1'

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'http://some-external-ip/myWCF/Service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: 'http://some-external-ip/myWCF/Service.svc'.

Content Type application/soap+xml; charset=utf-8 was not supported by service http://some-external-ip/myWCF/Service.svc.  The client and service bindings may be mismatched.

The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..

If the service is defined in the current solution, try building the solution and adding the service reference again.


Looking at my WCF I do not have WSDL or DISCO (do I need to generate these? )
It seems to be resolving it to 'http://myserver1/myWCF/Service.svc?disco'.'.

Where myserver1 is the servers name (not the IP or URL).

Any help would be great.

Cheers
directxBOBAsked:
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:
Sounds to me that there is an issue with the bindings can i see your config file
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
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.