+ Reply to Thread
Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 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; Fantastic! Thank you SO much Mike.. for the code and for your
  1. #21
    toddz is offline Junior Member
    Join Date
    Aug 2008
    Posts
    5
    Fantastic! Thank you SO much Mike.. for the code and for your time. This is a tremendous help for me. You rock. I can't wait to implement it and start using it.

  2. #22
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    Quote Originally Posted by toddz View Post
    Fantastic! Thank you SO much Mike.. for the code and for your time. This is a tremendous help for me. You rock. I can't wait to implement it and start using it.
    My pleasure Todd, anytime!

    If you find time to come back and visit the site, please do!
    If you find something using PHP that works with Salesforce, please share with my small community. Every bit helps

    Again, let me know if you have any questions


    ~Mike

  3. #23
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    Quick question. When you are building a response to acknowledge the SOAP message was delivered to you, do you post one ACK response, or do you post multiple? This is in the case of having multiple notifications.

    Code:
    <?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>True</Ack>
                   <Ack>True</Ack>
                   <Ack>True</Ack>
                   <Ack>True</Ack>
                  </notifications>
              </soapenv:Body>
          </soapenv:Envelope>
    Or just one ACK response:

    Code:
    <?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>True</Ack>
                  </notifications>
              </soapenv:Body>
          </soapenv:Envelope>

  4. #24
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    Thanks for joining the site sir, here is my answer to your question:

    Our process picks up single and multiple, but we just send one response and it clears out the outbound message Que just fine

  5. #25
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    Ah, so it seems either way would work. I didn't know if it needed to be one way or the other. I was looking at documentation based on this and it seemed like it needed a response for each notification.

  6. #26
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    I've been working on some other stuff, but I decided to come back to the response back to salesforce. I was curious if I could just print out the response to the page (like you do in the first post's code example), or if I would have to go a different route. Currently, there is a LOT of processing that gets done and salesforce sometimes sends the message two or three times before the first response gets there it seems.

  7. #27
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    I don't have any issues clearing out the que in Salesforce.

    So are you saying that it sends the same message 2 or 3 times or does it send 2 or 3 separate messages?

  8. #28
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    It will send a message then about another minute later it sends another, then about another minute later it sometimes sends a third. It's 3 individual soap messages, but it must think that if it doesn't get a response right then to send another. I might change when I'm doing my processing if that's the case. The pattern goes:

    Update SF.com information -> Outbound Message -> pull the data into our system -> save the data -> send the response

    (wait a minute)

    Another Outbound Message -> look at the data and respond that we already have this data

    (wait another minute)

    Third Outbound Message comes in -> Respond again that we already have this data

  9. #29
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    are they the exact same, duplicate messages? Same message ID?

    I would capture the message and take a look at it

  10. #30
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    Yes, everything is the same. I believe it has something to do with the amount of processing I'm doing before sending the response. I have some other pieces that I finished earlier today that do practically the same thing, but they don't do as much processing before sending their response. They don't seem to get duplicate messages nearly as often.

    So, a custom quote type (that my company set up in SF.com) will get duplicate or triplicate messages every time where as an account or contact type will get a duplicate MAYBE 10% of the time. Neither one of the EVER get a triplicate message. I have a very strong feeling it has something to do with the amount of processing.

+ Reply to Thread
Page 3 of 7 FirstFirst 12345 ... LastLast

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