none
WSDL has wrong schemalocations RRS feed

  • Question

  • I deployed a webservice in IIS with SSL.

    The address is: "https://someurl/GetData.svc"

    But when I try to add the service reference in VS2012,

    it says: Metadata contains a reference that cannot be resolved....

    and: The WSDL document contains links that could not be resolved....

    The link he cannot resolve is: "http://someurl/GetData.svc?xsd=xsd1"

    I think the link should start with https and not with http.

    But how can I fix this?

    KR Harmsel

    Wednesday, January 22, 2014 11:08 AM

Answers

  • Hi,

    One possible solution to this is that IIS needs to have rights to the C:\Windows\Temp folder.  Without this it can't generate the metadata needed.

    Then if it can not solve the problem, please try to enable the wcf tracing to find the cause.
    The following configuration taken from MSDN can be applied to enable tracing on your WCF service.

    <configuration>
      <system.diagnostics>
        <sources>
          <source name="System.ServiceModel"
                  switchValue="Information, ActivityTracing"
                  propagateActivity="true" >
            <listeners>
                 <add name="xml"/>
            </listeners>
          </source>
          <source name="System.ServiceModel.MessageLogging">
            <listeners>
                <add name="xml"/>
            </listeners>
          </source>
          <source name="myUserTraceSource"
                  switchValue="Information, ActivityTracing">
            <listeners>
                <add name="xml"/>
            </listeners>
          </source>
        </sources>
        <sharedListeners>
            <add name="xml"
                 type="System.Diagnostics.XmlWriterTraceListener"
                 initializeData="Error.svclog" />
        </sharedListeners>
      </system.diagnostics>
    </configuration>

    Also it will be better if you can post your config file here or you can check with the following article.

    #How to: Configure an IIS-hosted WCF service with SSL:
    http://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, January 23, 2014 2:35 AM
    Moderator