zhshqzyc
Jul 23rd, 2009, 09:23 AM
Hello,
According to http://msdn.microsoft.com/en-us/library/ms733133.aspx, I am going to use the command-line tool Service Model Metadata Utility Tool(SvcUtil.exe) with the appropriate switches to create the client code.
At step 5 I got the error below.
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>svcutil.exe /language:vb /out:
generatedProxy.vb /config:app.config http://localhost:8080/ServiceSamples/servic
e
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'http://localhost:8080/ServiceSamples/servi
ce' using WS-Metadata Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from http://localhost:8080/ServiceSamples/service
If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://localhost:8080/ServiceSamples/service
Metadata contains a reference that cannot be resolved: 'http://localhost:808
0/ServiceSamples/service'.
There was no endpoint listening at http://localhost:8080/ServiceSamples/serv
ice that could accept the message. This is often caused by an incorrect address
or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (400) Bad Request.
HTTP GET Error
URI: http://localhost:8080/ServiceSamples/service
There was an error downloading 'http://localhost:8080/ServiceSamples/service
'.
The request failed with HTTP status 400: Bad Request.
If you would like more help, type "svcutil /?"
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>
Thanks for your help.
According to http://msdn.microsoft.com/en-us/library/ms733133.aspx, I am going to use the command-line tool Service Model Metadata Utility Tool(SvcUtil.exe) with the appropriate switches to create the client code.
At step 5 I got the error below.
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>svcutil.exe /language:vb /out:
generatedProxy.vb /config:app.config http://localhost:8080/ServiceSamples/servic
e
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'http://localhost:8080/ServiceSamples/servi
ce' using WS-Metadata Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from http://localhost:8080/ServiceSamples/service
If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://localhost:8080/ServiceSamples/service
Metadata contains a reference that cannot be resolved: 'http://localhost:808
0/ServiceSamples/service'.
There was no endpoint listening at http://localhost:8080/ServiceSamples/serv
ice that could accept the message. This is often caused by an incorrect address
or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (400) Bad Request.
HTTP GET Error
URI: http://localhost:8080/ServiceSamples/service
There was an error downloading 'http://localhost:8080/ServiceSamples/service
'.
The request failed with HTTP status 400: Bad Request.
If you would like more help, type "svcutil /?"
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>
Thanks for your help.