Silverlight 2 Service Reference
- I have added a WCF service to a basic Azure cloud app - http://unique.cloudapp.net/ImageService.svc?wsdlI have a Silverlight 2 application that I am trying to add a a service reference too; however, the following error resultsThe 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://rd00155d3059d8:20000/ImageService.svc?xsd=xsd0'.
- The remote name could not be resolved: 'rd00155d3059d8'
Metadata contains a reference that cannot be resolved: 'http://unique.cloudapp.net/ImageService.svc?wsdl'.
Content Type application/soap+xml; charset=utf-8 was not supported by service http://unique.cloudapp.net/ImageService.svc?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.
解答
- WCF metadata discovery does not work correctly for services running under Windows Azure in the CTP release. A workaround is to run the WCF service locally under the VS developmenet web server and add a service reference to it to generate the WCF client proxy. Please search for WCF in this forum to see other threads where this issue has been discussed.
- 已標示為解答David J Roh Monday, 24 November, 2008 13:38
所有回覆
- WCF metadata discovery does not work correctly for services running under Windows Azure in the CTP release. A workaround is to run the WCF service locally under the VS developmenet web server and add a service reference to it to generate the WCF client proxy. Please search for WCF in this forum to see other threads where this issue has been discussed.
- 已標示為解答David J Roh Monday, 24 November, 2008 13:38

