You need to sign in to do that
Don't have an account?
RickKaseya
Error Adding Web Reference
I have two salesforce accounts, our production account, and our developer account. When I export the exnterprise.xml file from the developer account and add it to VS 2005 as a web reference all works.
When I download the enterprise.xml file from production and add as a web reference it fails with the following error:
The Custom tool MSDiscoCodeGenerator Failed. Unable to import binding "SoapBinding" from namespace "urn:enterprise.soap.sforce.com".
Any ideas? Why is this failing, I cannot see many differences between the file headers.
-rick
That last response was me - I posted under the wrong account. I have tried this in multiple versions of Visual Studio. 2003 and 2008. I had done a previous integration using 2003, so I tried updating that wsdl and got the error. I thought maybe the latest API wasn't compatible with 2003, so I downloaded the latest sample code. I opened that in 2008 and was able to login, but obviously couldn't do anything else because I hadn't downloaded the company WSDL. As soon as I downloaded it, I got that error message.
This has to be a simple fix that I'm missing. Can someone help out?
Thanks,
Chris
Here is what I did to resolve this issue, not sure it's correct, but it fixed my problem:
<complexType name="ApexClass">
2. This section does not appear in the production enterprise.xml, however is referenced.
3. I copied and pasted the section into the production enterprise.xml and wala, all works.
Good Luck!
-Rick
Would you be able to post that section? I do not have a development environment, so I have nothing to copy from.
<complexType name="ApexClass">
<complexContent>
<extension base="ens:sObject">
<sequence>
<element name="ApiVersion" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="Body" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="BodyCrc" nillable="true" minOccurs="0" type="xsd:double"/>
<element name="CreatedBy" nillable="true" minOccurs="0" type="ens:User"/>
<element name="CreatedById" nillable="true" minOccurs="0" type="tns:ID"/>
<element name="CreatedDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
<element name="IsValid" nillable="true" minOccurs="0" type="xsd:boolean"/>
<element name="LastModifiedBy" nillable="true" minOccurs="0" type="ens:User"/>
<element name="LastModifiedById" nillable="true" minOccurs="0" type="tns:ID"/>
<element name="LastModifiedDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
<element name="LengthWithoutComments" nillable="true" minOccurs="0" type="xsd:int"/>
<element name="Name" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="NamespacePrefix" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="Status" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="SystemModstamp" nillable="true" minOccurs="0" type="xsd:dateTime"/>
</sequence>
</extension>
</complexContent>
</complexType>