+ Reply to Thread
Page 7 of 7 FirstFirst ... 567
Results 61 to 65 of 65
This is a discussion on Using Salesforce Outbound SOAP Messages with PHP within the Salesforce PHP Tutorials forums, part of the Salesforce category; I dont think that there is a limit, but I do know
  1. #61
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    I dont think that there is a limit, but I do know that one outbound message can have 100 records in it. I would check with the API documentation

    ~Mike

  2. #62
    t14
    t14 is offline Junior Member
    Join Date
    Jan 2010
    Posts
    11

    API limits

    Hi

    Just for anyone who might be intrested about API limits with regards to outbound messages

    I had a read of the documentation which can be found here:

    Implementation Considerations

    From what I can figure out I don't think there is a API limit on the amount of outbound messages salesforce can send out.

    Any action that sends a call to the API counts toward usage limits, except the following:
    So from what I can gather there is no API limit problems here but I think the way the sample code in this thread logs in to salesforce does have an effect on the API usage limit.

    So I was wondering. Does the sample code here login everytime saleforce sends it a soap message. So for instance if it sends to two seperate messages within say 5 seconds of each other will it be logging in twice?

    Thanks in advance for your help

  3. #63
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    My code does not actually login to Salesforce at all. It just sends back the response of true to be able to clear that message out of the queue

  4. #64
    VideoScience is offline Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Notifications Not Working

    Thanks for this great thread and all its contributors.

    I'm currently receiving an outbound message and running a simple CURL function.
    Everything works except for the notifications and while it doesn't affect my processing, it's probably best to address it instead of leaving Salesforce to repeatedly send the messages.

    In Salesforce, I receive a (500) Internal Server Error in the message queue, but I have verified through file/email output that the data is being received and processed.

    PHP Code:
    <?php
    error_reporting
    (0);

    // Define a log location for archiving each request recieved
    $log_location "/myhost/httpdocs/salesforce/salesforceresponse.txt";

    //Checks for presence of the cURL extension.
    function _iscurlinstalled() 
    {
        if  (
    in_array  ('curl'get_loaded_extensions())) 
        {
            return 
    true;
        }
        else
        {
            return 
    false;
        }
    }

    if (!
    _iscurlinstalled()) die("cURL is NOT installed.");

    $data fopen('php://input','rb');

    $content stream_get_contents($data);

    if (
    $content)
    {
        
    respond('true');
    }
    else
    {
        
    respond('false');
    }

    $dom = new DOMDocument();
    $dom->loadXML($content);

    // Got DOM values directly 
      
    $Email $dom->getElementsByTagName("Email")->item(0)->textContent// GET SALESFORCE EMAIL FROM <sf:Email></sf:Email>
      
    $FirstName $dom->getElementsByTagName("FirstName")->item(0)->textContent// GET SALESFORCE FIRST NAME FROM <sf:FirstName></sf:FirstName>
      
    $LastName $dom->getElementsByTagName("LastName")->item(0)->textContent// GET SALESFORCE LAST NAME FROM <sf:LastName></sf:LastName> 
      
    $SForceId $dom->getElementsByTagName("Id")->item(1)->textContent// GET SALESFORCE ID FROM <sf:Id></sf:Id> 

    // Start my CURL function
    // ...
    // End my CURL function

    //login script to salesforce for the $client variable ***change this path
    require_once ('/myhost/httpdocs/salesforce/includes/sfdc.inc');

    //clean all the data and then exit
    exit;

    //functions
    /* Parse a Salesforce.com Outbound Message notification SOAP packet
    * into an array of notification parms and an sObject.   */
    function respond($tf)
    {

        print 
    '<?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>
               <notifications xmlns="http://soap.sforce.com/2005/09/outbound">
                   <Ack>'
    .$tf.'</Ack>
                  <notifications>
              </soapenv:Body>
          </soapenv:Envelope>'
    ;
          
    }

    ?>
    Is there anything I could be doing wrong?
    Any help or information is greatly appreciated.

  5. #65
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    From my past experiences this can happen if you have anything in our output buffer at all. Try this, turn off the DIE error and the error reporting and see if that solves the issue

    You can always check to see what is in your output buffer and email the contents to your email to see if you are actually getting anything

    Hope that helps!!

    ~Mike

+ Reply to Thread
Page 7 of 7 FirstFirst ... 567

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.2