• ochang
  • NEWBIE
  • 0 Points
  • Member since 2003

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

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
Hi,

I ran stubmaker.pl that comes with SOAP::Lite on http://www.sforce.com/us/docs/sforce.wsdl. Resulting
class was sfconnector.pm. I just tried login.

It simple as:

use sfconnector qw (:all);
my $result = login ( $ver, $usr, $pass );

Seems to work fine. Just wondering if anyone has
played around with this and ran into any issues.
Or is there something I should know about.

Cheers.
  • August 29, 2003
  • Like
  • 0