Avatar of YZlat
YZlat
Flag 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?
WCF.NET Programming

Avatar of undefined
Last Comment
YZlat

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ambience

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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?
YZlat

ASKER
The xml had an invalid schemaLocation but I still cannot figure out why
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck