Solved

Cannot add a service reference to WCF service to my project

Posted on 2016-10-06
3
40 Views
Last Modified: 2016-10-10
I have a .NET project to which i want to add a reference to my WCF service hosted on a different server. When I open my service in IE, it works fine:

https://alias.domain.com/ProjectName/MyService.svc?wsdl

Open in new window


But when I try to create a service reference using the above url, I cannot - getting "The document was understood, but it could not be processed"

Can anyone help?
0
Comment
Question by:YZlat
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
ambience earned 500 total points
Comment Utility
Share your WSDL.

See if all XSD references in WSDL are valid from your client end.
0
 
LVL 35

Author Comment

by:YZlat
Comment Utility
Getting close.

The wsdl XML contains

schemaLocation="https://servername.subdomain.domain.com/ProjectName/MyService.svc?xsd=xsd0"

instead of being

https://aliasname.sys.domain.com/ProjectName/MyService.svc?xsd=xsd0


since the wsdl url is

https://aliasname.sys.domain.com/ProjectName/MyService.svc?wsdl

the actual schema shows up if I go to https://aliasname.sys.domain.com/ProjectName/MyService.svc?xsd=xsd0

while https://servername.subdomain.domain.com/ProjectName/MyService.svc?xsd=xsd0 gives an error "page cannot be displayed".

Why would it put an actual server name and subdomain instead of alias?
0
 
LVL 35

Author Closing Comment

by:YZlat
Comment Utility
The xml had an invalid schemaLocation but I still cannot figure out why
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now