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?
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?