• laurentb
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 7
    Replies

Hi,

I have a slight difference when I call search in v3.0 than in v2.5.

Id is return as an array with twice the same element.

Is it the normal behavior in v3.0 ?

I am running this query

select Id, Name from Account where Phone ='************'

with 2.5 I get

Array
(
    [0] => stdClass Object
        (
            [done] => true
            [queryLocator] => 
            [records] => stdClass Object
                (
                    [type] => Account
                    [Id] => 00130000001qpjkAAA
                    [Name] => ******                )

            [size] => 1
        )

)

with 3.0 I get

Array
(
    [0] => stdClass Object
        (
            [done] => true
            [queryLocator] => 
            [records] => stdClass Object
                (
                    [type] => Account
                    [Id] => Array
                        (
                            [0] => 00130000001qpjkAAA
                            [1] => 00130000001qpjkAAA
                        )

                    [Name] => *****                )

            [size] => 1
        )

)
here is the returned xml with v3.0
  xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<queryResponse xmlns="urn:partner.soap.sforce.com">
<result>
  <done>truedone>
  <queryLocator xsi:nil="true" />
<records xsi:type="sf:sObject" xmlns:sf="urn:sobject.partner.soap.sforce.com">
  <sf:type>Accountsf:type>
  <sf:Id>00130000001qpjkAAAsf:Id>
  <sf:Id>00130000001qpjkAAAsf:Id>
  <sf:Name>****sf:Name>
  records>
  <size>1size>
  result>
  queryResponse>
  soapenv:Body>
  soapenv:Envelope>

Message Edited by laurentb on 04-12-2004 07:00 PM

Message Edited by laurentb on 04-12-2004 07:10 PM

Message Edited by laurentb on 04-12-2004 09:37 PM

First I would like to thanks everyone in SForce dev and support team, for the wonderful API and the support for my stupid questions.

Here is another one, I am successfully  playing with the frontdoor access, and want to log agent automatically from another application.

Since I found documentation of the frontdoor only in the forum, I'm wondering if this functionality is too stay in future salesforce release ?

 

note : https://na1.salesforce.com/secur/frontdoor.jsp?sid= + sid given back by login

Laurent

Hello

I can't login anymore on both my dev account and the account of our company

I'm targeting https://www.salesforce.com/services/Soap/u/2.5 with urn:partner.soap.sforce.com' as namespace


 

I've been playing with the xmlrpc acces with my account, and it was fine.

I'm switching to SOAP, and I always get an error 1112 as a reply.

The following, is the message I write on the socket (just replacedaccount and password with '*'). I'm pretty lost, can someone tells me what is wrong

Thanks


POST /servlet/servlet.SoapApi HTTP/1.0

User-Agent: PEAR-SOAP 0.8.0RC2-devel

Host: www.salesforce.com

Content-Type: text/xml; charset=UTF-8

Content-Length: 509

SOAPAction: ""

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:ns4="urn:partner.soap.sforce.com"

>

<SOAP-ENV:Body>

<ns4:login>

<ns4:username>laurentb@***********.com</ns4:username>

<ns4:password>********</ns4:password></ns4:login>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


env

  • Apache/1.3.29
  • PHP/4.3.4
  • SOAP 0.8RC2 with all depend modules

No luck till now with php 5.0 native SOAP and SOAP headers with salesforce.

 

I gived up and im using PEAR:SOAP 0.8r3 beta which is working fine with php 5.0 but not php 5.01 :-((

 

Please try it and post here.

  • August 19, 2004
  • Like
  • 0

Would you be able to tell me what a session-id can be made up of.

ie. alphanumerical?

 

Thanks in advance,

Tym.

  • January 28, 2004
  • Like
  • 0

i tried logging in and received an HTTP 301 Moved Permantely error. i re-genreted my WSDL to verify that i'm using the correct port endpoint, and indeed i am!

temporary hiccup, or have the services moved? 

sent:
POST /services/Soap/c/2.5 HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: www.salesforce.com
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 403
Connection: close
Accept-Encoding: gzip

received:
HTTP/1.1 301 Moved Permanently
Date Fri, 05 Dec 2003 08:13:29 GMT
Server Apache
Location http://www.salesforce.com/us/products/customer-service-support.jsp
Connection close
Transfer-Encoding chunked
Content-Type text/html; charset=iso-8859-1
X-Pad avoid browser bug
(301)Moved Permanently

  • December 05, 2003
  • Like
  • 0

I've been playing with the xmlrpc acces with my account, and it was fine.

I'm switching to SOAP, and I always get an error 1112 as a reply.

The following, is the message I write on the socket (just replacedaccount and password with '*'). I'm pretty lost, can someone tells me what is wrong

Thanks


POST /servlet/servlet.SoapApi HTTP/1.0

User-Agent: PEAR-SOAP 0.8.0RC2-devel

Host: www.salesforce.com

Content-Type: text/xml; charset=UTF-8

Content-Length: 509

SOAPAction: ""

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:ns4="urn:partner.soap.sforce.com"

>

<SOAP-ENV:Body>

<ns4:login>

<ns4:username>laurentb@***********.com</ns4:username>

<ns4:password>********</ns4:password></ns4:login>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


env

  • Apache/1.3.29
  • PHP/4.3.4
  • SOAP 0.8RC2 with all depend modules

The Perl & PHP examples for the new API are available on here; http://www.majordojo.com/salesforce/.

Adam

  • November 12, 2003
  • Like
  • 0