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 4110936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:00:00+00:00 2026-05-20T22:00:00+00:00

Anyone know why this wsdl is not liked by the mono wsdl tool? Microsoft

  • 0

Anyone know why this wsdl is not liked by the mono wsdl tool? Microsoft parses it. XMethods online wsdl validator parses it. Mono just doesn’t seem to like it and I do not know enough to understand why.

# the error
mmcaughan@mmcaughan-dsktop:~/Projects/sftest$ wsdl enterprise.wsdl
Web Services Description Language Utility
Mono Framework v2.0.50727.1433

There where some warnings while generating the code:

enterprise.wsdl
– This web reference does not conform to WS-I Basic Profile v1.1
R2718: A wsdl:binding in a DESCRIPTION MUST have the same set of
wsdl:operations as the wsdl:portType to which it refers.
* Binding ‘SoapBinding’, in Service Description
‘urn:enterprise.soap.sforce.com’

Writing file ‘SforceService.cs’

relevant WSDL parts (I think)

  <!-- Soap PortType -->
    <portType name="Soap">
        <operation name="login">
            <documentation>Login to the Salesforce.com SOAP Api</documentation>
            <input message="tns:loginRequest"/>
            <output message="tns:loginResponse"/>
            <fault message="tns:LoginFault" name="LoginFault"/>
            <fault message="tns:UnexpectedErrorFault" name="UnexpectedErrorFault"/>
            <fault message="tns:InvalidIdFault" name="InvalidIdFault"/>
        </operation>


 <!-- Soap Binding -->
    <binding name="SoapBinding" type="tns:Soap">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="login">
            <soap:operation soapAction=""/>
            <input>
                <soap:header use="literal" message="tns:Header" part="LoginScopeHeader"/>
                <soap:body parts="parameters" use="literal"/>
            </input>
            <output>
                <soap:body use="literal"/>
            </output>
            <fault name="LoginFault">
                <soap:fault name="LoginFault" use="literal"/>
            </fault>
            <fault name="UnexpectedErrorFault">
                <soap:fault name="UnexpectedErrorFault" use="literal"/>
            </fault>
            <fault name="InvalidIdFault">
                <soap:fault name="InvalidIdFault" use="literal"/>
            </fault>
        </operation>
  • 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-05-20T22:00:01+00:00Added an answer on May 20, 2026 at 10:00 pm

    Older and more wiser now…

    generate the C# from the wsdl
    wsdl enterprise.wsdl -n:Sforce -o:SforceService.cs

    the XmlAnyElement cannot have an empty namspace, so pop open SforceService.cs and remove it

    this…
    [System.Xml.Serialization.XmlAnyElement(Namespace=””)]
    public System.Xml.XmlElement[] Any {
    get {
    return this.anyField;
    }
    set {
    this.anyField = value;
    }
    }

    becomes…
    public System.Xml.XmlElement[] Any {
    get {
    return this.anyField;
    }
    set {
    this.anyField = value;
    }
    }

    wsdl generates xml serialization against private members which doesn’t work and has to be fixed

    Unhandled Exception: System.InvalidOperationException: Member LoginScopeHeaderValueField not found in class Sforce.SforceService.

    this…
    [System.Web.Services.Protocols.SoapHeaderAttribute(“LoginScopeHeaderValueField”)]

    becomes…
    [System.Web.Services.Protocols.SoapHeaderAttribute(“LoginScopeHeaderValue”)]

    search and replace ValueField” for ValueField”

    then you might get this, which is a failure because mono does not install any root certificates in the trust store so https fails

    Unhandled Exception: System.Net.WebException: Error writing request: The authentication or decryption has failed.
    at System.Net.WebConnectionStream.WriteHeaders () [0x00000]
    at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) [0x00000]
    at (wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[])
    at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) [0x00000]

    it is fixed with mozroots which will get all the certs mozilla ships with…

    mozroots –import –sync

    then everything works as describe

    Sforce.SforceService binding = new Sforce.SforceService();
    Sforce.LoginResult loginResult = binding.login(“someuser”, “somepass”);
    etc…

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

Sidebar

Related Questions

Anyone know why this is not returning a value? Example $item2['data'] where it =
Does anyone know what this means. Getting this in C# winforms applications: Not a
Anyone know this compiler feature? It seems GCC support that. How does it work?
Anyone know this? I've never been able to find an answer.
Anyone know why this root View Controller's viewDidLoad is being called twice at launch?
Anyone know what this error means? after googling I found a bunch of sites
Anyone know why this: <?PHP $title = trim($_POST['title']); $description = trim($_POST['description']); // Array of
Does anyone know what this value is for? If it is set to 1,
Does anyone know what this error message means? FATAL: Code generation error detected during
Does anyone know if this has been released yet? I went to asp.net and

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.