YZlat
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:
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?
https://alias.domain.com/ProjectName/MyService.svc?wsdl
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The xml had an invalid schemaLocation but I still cannot figure out why
ASKER
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?