• skyfj
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 10
    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
hello, veryone.
I want to partner.wsdl as wcf service in the application, but there are some problems like that:
1. after login,how to set serverUrl property?
2. call method: client.loginAsync("usreName", "password"), then, the exception has occured:KeyNotFoundException
Is there anyone has used wsdl as wcf service?


Sincerely
skyfj
  • September 30, 2009
  • Like
  • 0

Hello,veryone.

     I want to develop an application like this:

         Silverlight directly access salesforce's wsdl, I don't know how to do.Who has experience?

 

Sincerely

skyfj

  • September 29, 2009
  • Like
  • 0

Hello,everyone:

       Now, I want to develop a silverlight application and the data is storaged based on salesForce.Mymethod is that:

      Silverlight application --->(reference) Silverlight web application(silverlight host)--->(reference) SalesForce Enterprise API

      Now,I need to change this access path, Silverlight application directly accesses  SalesForce Enterprise API:

     Silverlight application --->(reference) SalesForce Enterprise API

 

    But ,I refered to SalesForce Enterprise wsdl,and I didn't find the SforceService object. Who will give me some advises?

 

    Sincerely 

   skyfj

 

 

 

 

  • September 28, 2009
  • Like
  • 0

Hello,everyone:

 

      I have met a question:

            testStudent.Birthday__c = Convert.ToDateTime("2000/02/03");

      Birthday__c is the Date type field, but I can't save it, is there anyone can give some advises?

 

Sincerely

 

skyfj

  • September 14, 2009
  • Like
  • 0

Hello,everyone:

       Now, I want to get some datas fromtwo tables(parent and child table).the question is blow:

      [

          Relationship:Parent to child

             .......

             SOQL is this:select a.Id,a.Name,a.Industry,(Select c.Id,c.FirstName,c.LastName From a.Contacts c)

                       From Account a;

             and I can get some datas(a.Id,a.Name,a.Industry) of  "Account" table, and I use blew codes to access the   "Contact" object,but qr always is null,why? How can I do?

 

              [

                         for (int i = 0; i < qr.records.Length; i++)
                        {
                              account = (Account)qr.records[i];
                             QueryResult qr = account.Contacts;

                              .......
                         } 

              ]

 

             Relationship:Child to Parent

             .......

             SOQL is this:Select Id, FirstName,MailingCity from Contact where Account.Name like '%a%'

             .......

              for (int i = 0; i < qr.records.Length; i++)
              {
                    contact = (Contact)qr.records[i];
                    Account acc = (Account)contact.Account;
                    here, acc alwasy is null,I don't know how to do?

              }

 

      ]

 

      Who can give me some advises  or a completely example of getting datas from two tables(Parent and childe)?

 

sincerely

 

skyfj

      

  • September 11, 2009
  • Like
  • 0

Hello, everyone.

I have met a question:

I created new Windows Forms Application(VS2008 C#),and then, I add service reference "partner.wsdl"(I generated this file from salesforce.come, and then copied it to my project floder.), I view the file "Reference.cs", and didn't find the class " public partial class SforceService : System.Web.Services.Protocols.SoapHttpClientProtocol", so, I can't use  SforceService , and why the SforceService didn't generate?

Who can help me?

 

sincerely

skyfj

 

  • September 09, 2009
  • Like
  • 0

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
hello, veryone.
I want to partner.wsdl as wcf service in the application, but there are some problems like that:
1. after login,how to set serverUrl property?
2. call method: client.loginAsync("usreName", "password"), then, the exception has occured:KeyNotFoundException
Is there anyone has used wsdl as wcf service?


Sincerely
skyfj
  • September 30, 2009
  • Like
  • 0

Hello,everyone:

 

      I have met a question:

            testStudent.Birthday__c = Convert.ToDateTime("2000/02/03");

      Birthday__c is the Date type field, but I can't save it, is there anyone can give some advises?

 

Sincerely

 

skyfj

  • September 14, 2009
  • Like
  • 0

Hello, everyone.

I have met a question:

I created new Windows Forms Application(VS2008 C#),and then, I add service reference "partner.wsdl"(I generated this file from salesforce.come, and then copied it to my project floder.), I view the file "Reference.cs", and didn't find the class " public partial class SforceService : System.Web.Services.Protocols.SoapHttpClientProtocol", so, I can't use  SforceService , and why the SforceService didn't generate?

Who can help me?

 

sincerely

skyfj

 

  • September 09, 2009
  • Like
  • 0

I have a custom object "Test" from which I need to select the records for which a field "Status" of the object has a value 'x' and was changed to this value in a specified date range (previous month from the current month). For this I need to query the history table for that object, to find out when was field "Status" changed to value 'x', and see if the date is in the specified range. I've tried various ways to write the SOQL for this, but none is working.

 

What I need should look similar to this:

 

Select a.Last_Name__c, a.First_Name__c, (Select Id, ParentId, CreatedDate, Field, OldValue, NewValue From Histories where Field = 'Test' and NewValue = 'x' and CreatedDate >= 2009-08-01T00:00:00.000Z and CreatedDate < 2009-09-01T00:00:00.000Z) From Test a where a.Status__c = 'x'

 

 

Any suggestions are appreciated

 

Thank you

  • September 02, 2009
  • Like
  • 0