You need to sign in to do that
Don't have an account?

OutBound messages feature
Alo:
Hope someone help me, i want to integrate salesforce app with a jee app, so im using web services api and this workflow feature, that is outbound messages, but what the...cant make heads nor tails of it.
The easy thing is (or at least it seems easy):
1. I got an object A, on the screen, I have a button and it will trigger some event, suppose populate new object B and save it.
2. After save object B, I have to send some fields of object A to my web service.
3. I have to get a response from my web service, with some id created there.
4. Set that id on object B and A.
the problem is, I cannot understand why if i create an outbound message, I have to use the wsdl created by force engine, why cant i call my wsdl.
I already parse wsdl of mine and made a class from it, but when I invoke that class within a trigger, it didn't work, some callout not permited or the like...not sure now. Then I searched on salesforce forum, and Simon was telling other guy to use outbound messages...xD
any help ?
thanks 4 reading
Outbound messaging is a one way, reliable notification of events from salesforce.com. You would have to have your webservice use the specific OM WSDL, and use the serverUrl / sessionId in the message to make changes in salesforce.com when it receieves a message.
The other option, would be to use the @future anotation in apex so that your trigger can make the callout, this will let you use your own WSDL, but it will also require you to handle the reliability part yourself.
but... yes there is a "but"...
See, got a trigger, with @future, everyone is happy now but...I see it executes asynchronously!!!!
copy and paste of sf man...
For example, you can use the future annotation when making an asynchronous Web service callout to an external service. Without the annotation, the Web service callout is made from the same thread that is executing the Apex script, and no additional processing can occur until the callout is complete (synchronous processing).
In few words, I have to use future annotation, and if I want to use synchronous processing, I dont know where to use it, because in trigger is not allow...anyway This is not for you to answer me, i just wanted to state this fact...