Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 159899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:56:23+00:00 2026-05-11T10:56:23+00:00

I need to generate a WCF proxy for a service exposed by our client.

  • 0

I need to generate a WCF proxy for a service exposed by our client. The service is locked down pretty tightly, so this is proving difficult. Also, I’m new to WCF, so I may be missing something obvious…

The client has only opened up their firewall to our production server – so I can’t generate the proxy from Visual Studio on my dev machine. Also, the service is only exposed over HTTPS. And it requires us to authenticate using a client certificate…

I was hoping to run svcutil on the production box to generate the .cs files, and then copy the files locally. But svcutil refuses to run because the client is using a self-signed certificate. It gives me the following error:

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.

I tried adding the service’s certificate as a trusted root certificate, but that doesn’t work. In the certificates MMC snap-in, I get ‘Windows does not have enough information to verify the certificate’.

Is there some way to bypass the security check that svcutil is performing?

I can browse to the WSDL successfully from IE, when I’m remoted in to the production server. I just have to click ‘continue to this website (not recommended)’. I also have to select the installed client cert, which works fine. I can then download the WSDL and XSD files manually through IE. So another alternative might be to generate the WCF proxy from local copies of the WSDL and XSD, instead of running svcutil against the live service. But I don’t know how to do that properly.

I tried putting the static WSDL and XSD files up on another website that we host, and changing the <xs:import schemaLocation=’…’/> attributes to point to the new site. But when I ran svcutil against this site, I got a bunch of errors about duplicate type declarations – e.g.:

Error: There was a validation error on a schema generated during export: Source: Line: 1 Column: 1415 Validation Error: The complexType ‘http://[domain-name]/Promotions/2009-02-17:InsertReferralPromo_Response‘ has already been declared.

Am I missing some obvious way to do this? Or should we just demand that the client loosen up their security? 🙂

Thanks for any help you can give me…
Richard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:56:24+00:00Added an answer on May 11, 2026 at 10:56 am

    Your problem doesn’t seem to have anything to do with security. There seems to be a problem with the WSDL and schemas that you downloaded.

    One suggestion would be to put all the files in a directory on disk instead of on a web site. If necessary, remove the schemaLocation attributes.

    However, it doesn’t seem like that would help. You might try validating these files with XMLSpy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 174k
  • Answers 174k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As noted in this question: Default segment name in rails… May 12, 2026 at 2:48 pm
  • Editorial Team
    Editorial Team added an answer I think the subject you need to know is Regular… May 12, 2026 at 2:48 pm
  • Editorial Team
    Editorial Team added an answer The problem with the setTimeout() approach as shown by azamsharp… May 12, 2026 at 2:48 pm

Related Questions

We have a rather large application my team and I are developing that contains
I'm looking at using ASP.Net MVC as a platform for a REST based Service.
I'm trying to convert an ASP.Net web service to WCF application. The client is
I have written a java axis2 1.4.1 web service and .net 3.5 WCF client

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.