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

  • SEARCH
  • Home
  • 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 8768713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:08:13+00:00 2026-06-13T17:08:13+00:00

I have created a service that communicates with the SalesForce platform via C#, using

  • 0

I have created a service that communicates with the SalesForce platform via C#, using their WSDL. It so happens that SalesForce (rather logically) allows for “sandbox” instances of its platform and “production” instances of its platform. My application is designed to work with production, but I have been using the sandbox to integration test and unit test. I am now reaching the point where I need to deploy to production. However, I face a large problem in that if I ever need to build and test new features, I will have to update the WSDL from the production instance to the sandbox instance, then swap back and forth as I add new features. This is because the two WSDLs are entirely different and I have to generate code from them! This is not only sloppy, it’s dangerous. I could affect some of my live system data.

I would like to find a way to use a registry key, a text value, or some configuration setting that tells my application which WSDL to use. Trouble is? I can’t figure out how one could approach that. The very objects my code is referencing are generated from that WSDL. Any ideas?

  • 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. Editorial Team
    Editorial Team
    2026-06-13T17:08:14+00:00Added an answer on June 13, 2026 at 5:08 pm

    WSDLs shouldn’t be entirely different between the two! Of course unless a lot of new objects and custom fields has been created in the sandbox and not yet pushed to production…

    Is there any chance you’ve mixed the enterprise (strongly typed version) and partner (more generic one) WSDLs? Check this help topic for more info: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_intro.htm#choose_wsdl

    If you’re truly concerned about data model you might decide to use partner version (generated code is bit ugly then because it gives you generic sObjects instead of more specific Account, Contact etc). I was always fine with enterprise version (the stuff from sandboxes eventually made it up to production and once different systems started to rely on the data model teams just started to sync their releases if possible).


    Way to distinguish them that worked for me was to examine the endpoints (at the very bottom of the file). I was doing PHP integrations so for me it wasn’t a problem to flip the endpoint on the fly but “trust” the same object structure. No idea how it looks like in C# world, where does this piece of information end up in the parsed code… Good luck!

    Enterprise – Sandbox

    <service name="SforceService">
    <documentation>Sforce SOAP API</documentation>
    <port binding="tns:SoapBinding" name="Soap">
        <soap:address location="https://test.salesforce.com/services/Soap/c/26.0/(18 char sandbox Id)"/>
    </port>
    </service>
    

    Enterprise – Production

    https://login.salesforce.com/services/Soap/c/26.0/(prod id)
    

    Partner WSDLs have “u” in the URL instead of “c” and they don’t carry specific organisation’s id: https://test.salesforce.com/services/Soap/u/26.0"/

    (my small trick to memorize this is to think about it as “Client” or “Customized” and “Universal”)

    Edit:
    of course if you’ll stick to “enterprise” the only endpoint you can really count on is production. Sandbox org ids change every time they’re refreshed.

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

Sidebar

Related Questions

I have created a simple windows service that periodically checks a remote database via
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have an app that communicates with a web service VIA SOAP. So far
We have created a WCF service hosted in a windows service that handles Authentication
I have created one service in my grails application. in that service 25 methods
I have created a service class for my network connection so that my app
I have created a line chart using Reporting Services that charts the number of
I'm using spring ws 2.0.2.RELEASE I have a web service that creates a sales
So we currently have a website that was created using Django. Now, we would
I have a Silverlight application that communicates to a Silverlight-enabled WCF service, both of

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.