Solved

Cannot add a service reference to WCF service to my project

Posted on 2016-10-06
3
110 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
ambience earned 500 total points
ID: 41833116
Share your WSDL.

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

Author Comment

by:YZlat
ID: 41834368
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
ID: 41836803
The xml had an invalid schemaLocation but I still cannot figure out why
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

724 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