SalesForce (Login) Integration With ASP.NET
Steps…
- Add Service Reference, select Advanced and then select Add Web Reference.
- In the URL box of the Add Web Reference dialog box, type the URL to obtain the service description of the XML Web service you want to access, such as:
c:\Files\enterprise.wsdl
- Click Go to retrieve information about the XML Web service.
- In the Web reference name box, rename the Web reference to sforce, which is the name you will use for this Web reference.
- Click Add Reference to add a Web reference for the target XML Web service.
- Visual Studio retrieves the service description and generates a proxy class to interface between your application and the XML Web service.
Issues :
error CS0030: Cannot convert type ‘SFDC.ListViewRecordColumn[]’ to ‘SFDC.ListViewRecordColumn’
error CS0030: Cannot convert type ‘SFDC.ListViewRecordColumn[]’ to ‘SFDC.ListViewRecordColumn’
error CS0029: Cannot implicitly convert type ‘SFDC.ListViewRecordColumn’ to ‘SFDC.ListViewRecordColumn[]’
error CS0029: Cannot implicitly convert type ‘SFDC.ListViewRecordColumn’ to ‘SFDC.ListViewRecordColumn[]’
Solution:
Add following to enterprise.wsdl.xml
<xsd:attribute name=”tmp” type=”xsd:string”></xsd:attribute>
e.g.
<complexType name=”ListViewRecord”>
<sequence>
<element name=”columns” type=”tns:ListViewRecordColumn” maxOccurs=”unbounded”/>
</sequence>
<xsd:attribute name=”tmp” type=”xsd:string”></xsd:attribute>
</complexType>
Hope this help!
Leave a Reply Cancel reply
Categories
- AngularJs (13)
- ASP.NET (104)
- C Programming (1)
- Code Project (2)
- CodeProject (1)
- Entity Framework (6)
- Ext.NEt (1)
- HTML5 (1)
- Interview .NET (2)
- Introduction (1)
- JQuery (1)
- Linq (1)
- Microsoft office (2)
- MOSS-(Sharepoint 2010) (2)
- MVC (5)
- Outlook (1)
- Sql Server (30)
- SSRS (5)
- TFS (1)
- Tips & Tricks (16)
- Twitter bootstrap (1)
- VB.NET (1)
- Visual Studio 2012/2013 (1)
- Web Services (1)
- Windows Workflow (1)
Top Posts & Pages
- How to Collapse all #regions only(!) in C# (Visual Studio)
- Disable click outside of bootstrap model area to close modal
- Updatepanel triggers another updatepanel
- ASP.NET Routing with IIS 7 (runallmanagedmodulesforallrequests = true)
- C Programming Introduction
- USAePay Token error: 23 Specified source key not found
- The file is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. Restore database is terminating abnormally.
- Proper case in vb.net
- EF code first - Model compatibility cannot be checked because the database does not contain model metadata
- MySQL : The user specified as a definer ('root'@'%') does not exist
Recent Posts
- How to compile .NET Core Console Application as .exe File?
- Define Composite Key in Model.(Core, EF Code First)
- How to remove x from Internet Explorer ?
- The client and server cannot communicate, because they do not possess a common algorithm
- How to check if all items are the same in a list C#
- How to Collapse all #regions only(!) in C# (Visual Studio)
- Issue: Password field returned empty in edit mode
- Load XML from URL giving an error (The remote server returned an error: (401) Unauthorized.)
- How to use Variable in MySQL Like Clause ?
- Error :(System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl) in VS2017
Blog Stats
- 157,253 hits
Rahul Bhatia
Comments
aishwarya on remove pie chart slices labels… | |
Chakib on UpdatePanel and triggers from… | |
Mehdi Bennis on AngularJS With Asp.net Web API… | |
hnc24 on Send Email from a Static … | |
Rob on Send Email from a Static … |
Profile
Blog Stats
- 157,253 hits
Reblogged this on SutoCom Solutions.