Link to home
Start Free TrialLog in
Avatar of YZlat
YZlatFlag for United States of America

asked on

Cannot add a service reference to WCF service to my project

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?
ASKER CERTIFIED SOLUTION
Avatar of ambience
ambience
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of YZlat

ASKER

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?
Avatar of YZlat

ASKER

The xml had an invalid schemaLocation but I still cannot figure out why