Hello,
I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/
BuildingHelloWo rld.aspx). I need to get the meta data from my service
usin svcutil.exe why is not working? Please see below:
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>svcutil http://localhost/hello?wsdl
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'http://localhost/hello?wsdl'
using WS-Metadata Exchange or
DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version
3.0.4506.30]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from http://localhost/hello?wsdl
If this is a Windows (R) Communication Foundation service to which you
have access, please check
that you have enabled metadata publishing at the specified address.
For help enabling metadata
publishing, please refer to the MSDN documentation at
http://go.microsoft.com/fwlink/?LinkId=65
455.
WS-Metadata Exchange Error
URI: http://localhost/hello?wsdl
Metadata contains a reference that cannot be resolved: 'http://
localhost/hello?wsdl'.
Content Type application/soap+xml; charset=utf-8 was not supported
by service http://localho
st/hello?wsdl. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the
message because the content ty
pe 'application/soap+xml; charset=utf-8' was not the expected type
'text/xml; charset=utf-8'..
HTTP GET Error
URI: http://localhost/hello?wsdl
The HTML document does not contain Web service discovery
information.
If you would like more help, type "svcutil /?"
E:\Program Files\Microsoft SDKs\Windows\v6 .0\Bin>