I have a simple Webserivce (WCF) hosted in a Windows Service(Selfhost). The declaration of the service looks like this :
<service behaviorConfiguration="MyApp.ServiceImplementation.MyAppIntegration_Behavior" name="MyApp.ServiceImplementation.MyAppIntegration">
<endpoint binding="basicHttpBinding" bindingConfiguration="BasicMyAppIntegration" bindingNamespace="MyApp.ServiceImplementation" contract="MyApp.ServiceContracts.IMyAppIntegration"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8008/MyAppServiceutv/Integration"/>
</baseAddresses>
</host>
</service>
I can brows the WSDL with this URL :
http://localhost:8008/MyAppServiceutv/Integration?wsdl
When adding the service reference in Visual Studio 2012 I get this exception :
Exception
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading '
http://localhost:8008/MyAppServiceutv/Integration?xsd=xsd0
'. - Unable to connect to the remote server
Metadata contains a reference that cannot be resolved: 'http://MyComputer:8008/MyAppServiceutv/Integration?wsdl
'.
Content Type application/soap+xml; charset=utf-8 was not supported by service http://MyComputer:8008/MyAppServiceutv/Integration?wsdl
. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
Moving to Dev Environment
When moving the service to a dev computer everything works just great? Why whould I get the above problems in just one environment? Could this be due to strong security restrictions?