• Max Bachman
  • NEWBIE
  • 25 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

using System;
using System.Collections.Generic;
using System.Text;
using WSDL.com.salesforce.Enterprise;

namespace WSDL
{
class MainFunction
{
static void Main()
{
SforceService connection = new SforceService();
LoginResult sfLoginResult = connection.login("XXX, "XXX");


connection.Url = sfLoginResult.serverUrl;
connection.SessionHeaderValue = new SessionHeader();
connection.SessionHeaderValue.sessionId = sfLoginResult.sessionId;

Lead sfLead = new Lead();

sfLead.FirstName = "Mayer";
sfLead.LastName = "asdasd";
sfLead.Company = "asdas";
sfLead.Title = "asdas";
sfLead.Phone = "asdas";
sfLead.Email = "asdas";
sfLead.State = "asdas";
sfLead.LeadSource = "Web";


SaveResult[] sr = connection.create(new sObject[] { sfLead });

Console.ReadKey(true);
}
}
}

Hello.

I have import all WSDL in my project.

http://s1.directupload.net/images/130308/6s4pi87i.png

 

But in my program the compiler doesen´t know "Lead".

http://s1.directupload.net/images/130308/l9eh5gd6.png

 

What do I wrong?

I have the Developer Edition.

Hello.

I have import all WSDL in my project.

http://s1.directupload.net/images/130308/6s4pi87i.png

 

But in my program the compiler doesen´t know "Lead".

http://s1.directupload.net/images/130308/l9eh5gd6.png

 

What do I wrong?

I have the Developer Edition.