Salesforce WSDL reference to. NET error resolution where unresolved address fields occur

Source: Internet
Author: User
Tags wsdl

Forget is on which project encountered, anyway is met, is the standard object address type in the reference. NET error, saying that the corresponding type could not be found.

Therefore, you need to add the following statement under the WSDL (as if it were added in the WSDL, forget, sweat a ...). )

Add the following within the <xsd:schema elementformdefault= "qualified" targetnamespace= "http://soap.sforce.com/ Schemas/class/<classname> "> element:

<!--Compound datatype:address
<xsd:complextype name= "Address" >
<xsd:complexcontent >
<xsd:extension base= "tns:location" >
<xsd:sequence>
<xsd:element name= "City" Type= " Xsd:string "nillable=" true "/>
<xsd:element name=" Country "type=" xsd:string "nillable=" true "/>
< Xsd:element name= "CountryCode" type= "xsd:string" nillable= "true"/>
<xsd:element name= "PostalCode" type= " Xsd:string "nillable=" true "/>
<xsd:element name=" state "type=" xsd:string "nillable=" true "/>
<xsd : element Name= "Statecode" type= "xsd:string" nillable= "true"/>
<xsd:element name= "Street" type= "xsd:string" Nillable= "true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
< /xsd:complextype>

<!--Compound Datatype:location--
<xsd:complextype name= "Location" >
<xsd:sequence>
<xsd:element name= "Latitude" type= "xsd:double" nillable= "true"/>
<xsd:element name= "Longitude" type= "xsd:double" nillable= "true"/>
</xsd:sequence>
</xsd:complexType>

---restore content ends---

Salesforce WSDL reference to. NET error resolution where unresolved address fields occur

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.