• turutosiya
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

Hello,veryone:

      Recently, I want to use soap message to access salesforce(for example:login salesforce), I found below codes, but I don't know how to use them. Who can give me some advises?

      by the way, I use C# to develop program.

 

resource:http://wiki.developerforce.com/index.php/Sample_SOAP_Messages

[

POST https://na1.salesforce.com/services/Soap/c/10.0 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 510
Expect: 100-continue
Host: na1.salesforce.com

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:enterprise.soap.sforce.com">
<soapenv:Body>
<urn:login>
<urn:username>user@domain.com</urn:username>
<urn:password>secret</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>

 

]

 

 

   sincerely

    skyfj

  • October 10, 2009
  • Like
  • 0

https://na6.salesforce.com/00O30000003P4kC?scope=1&scopeid=Démo&pv0=

 

Here is the link that we used to open a report through a weblink. The problem we are facing is with the encoding. "Démo" is not being transferred correctly. It is being transferred as "Démo". Is there a way to have the correct encoding bearing in mind that "Démo" is dynamic and comes from a field (Campaign Name) ?

 

Thanks,

brian

 

 

So learning to access Salesforce and I realized how smart MySQL was.

 

There is a set of objects and functions that C#(.NET) has for accessing MS SQL.  I had almost no learning curve accessing MySQL because after installing their client, using MySql.Data.MySqlClient, the objects and functions match all the objects and functions of the System.Data.SqlClient.

 

SqlCommand MySqlCommand

SqlCommandBuilder MySqlCommandBuilder

SqlConnection MySqlConnection

SqlConnectionBuilder MySqlConnectionBuilder

SqlDataAdapter MySqlDataAdapter

SqlDataReader MySqlDataReader

 

etc...

 

Woudn't development in Salesforce be so very simple to learn if it matches development in the other two most common databases. Lets face, while it is different than SQL and MySQL, SOQL is not that different. I am not saying they give up their current library scheme, I am just saying to build an additional scheme on top of it that is like this:

 

 

SforceCommand

SforceCommandBuilder

SforceConnection

SforceConnectionBuilder

SforceDataAdapter

SforceDataReader

 

etc...

 

I just think this would take Saleforce "ease of use" to the next level. If I already know MySQL or SQL C# development practices, then I would also pretty much know SForce / SOQL development in C#.

  • September 24, 2009
  • Like
  • 0