|
Hi,
I had been given a WCF service endpoint for net.tcp and http binding both. I want to generate proxy for this wcf service. But when I am running the svcutil from VS command prompt as administrator, it is giving me the below errors.
When I run the
C:\Windows\system32>svcutil.exe /language:vb /out:D:\WSDLRepository-Proxy\DocRetrieveService\DocRetrieveService.vb /config:D:\source\SourceCode\StayatWork-VS2010\BusinessLogicLayer\app.config http://xxxxxxtumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
command
I am getting the below error
WS-Metadata Exchange Error
URI: http://xxxxxtumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
Metadata contains a reference that cannot be resolved: 'http://lnidaptumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl'.
<?xml version="1.0" encoding="utf-16"?><Fault xmlns="http://www.w3.org/2003/05/soap-envelope"><Code><Value>Sender</Value><Subcode><Value xmlns:a="http://www.w3.org/2005/08/addressing">a:ActionNotSupported</Value></Subcode></Code><Reason><Text xml:lang="en-US">The message with Action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</Text></Reason></Fault>
HTTP GET Error
URI: http://xxxxxtumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
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:8000/FilenetDocRetrieve/DocRetrieveService?wsdl=wsdl0'.
- Unable to connect to the remote server
- No connection could be made because the target machine actively refused it 127.0.0.1:8000
If you would like more help, type "svcutil /?"
But when I run the
svcutil.exe /language:vb /out:D:\WSDLRepository-Proxy\DocRetrieveService\DocRetrieveService.vb /config:D:\source\SourceCode\StayatWork-VS2010\BusinessLogicLayer\app.config http://lnidaptumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
Command
I am getting the following error
Error: An error occurred in the tool.
Error: The given path's format is not supported.
Can anybody please help me in resolving it, I want to generate a proxy for my wcf clinet without using add service reference.
Because I dont want to make my client environment dependant. Any link or any kind help is great. Its urgent please help me.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified 29-Nov-12 19:33pm.
|
|
|
|
|
Hi,
Just give this a try, not sure about that. but instead of single slash in config file path use double slash. all the directory file path with double slash(\\).
so your command become,
svcutil.exe /language:vb /out: D:\\WSDLRepository-Proxy\\DocRetrieveService\\DocRetrieveService.vb /config: D:\\source\\SourceCode\\StayatWork-VS2010\\BusinessLogicLayer\\app.config http://lnidaptumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|