Create a WCF proxy against an untrusted SSL endpoint



I need to create a WCF proxy for the service opened by our client. The service is closed pretty tough, so it's complicated. Also, I'm new to WCF, so I might miss something obvious ...

The client just opened his firewall on our production server - so I can not create a proxy from Visual Studio on my dev machine. In addition, the service is distributed only through HTTPS. And this requires us to authenticate using a client certificate ...

I was hoping to run svcutil on a field to create .cs files, and then copy the files locally. But svcutil refuses to start because the client uses a self-signed certificate. This gives me the following error:

The connected connection was closed: Failed to establish trust for the SSL / TLS secure channel. the remote certificate is invalid according to the validation procedure.

I tried adding the service certificate as a trusted root certificate, but this does not work. In the MMC certificate snap-in I get: "Windows does not have enough information to verify the certificate."

Is there any way around the svcutil security check?

WSDL IE, . " ( )". , . WSDL XSD IE. , - WCF WSDL XSD , svcutil . , .

WSDL XSD -, , < xs: import schemaLocation = "..." / > . svcutil , - :

: , :     :     : 1 : 1415 : 'http://[domain-name]/Promotions/2009-02-17:InsertReferralPromo_Response' .


- ? , ?:)

, ...

+5
2

, , . , WSDL .

- , -. schemaLocation.

, , . XMLSpy.

+1

WSDL, , .

svcutil.

0

All Articles