SOAP 3 Callback Documentation

From
Revision as of 22:06, 10 September 2015 by Philipc (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The following callback interface is designed using VS2008 and ASMX. The WSDL for this interface, which the external party (i.e. you) will need to provide and implement, is available here: SOAP_3_Callback_WSDL

An implementation of a callback service is also uploaded on our project page on Sourceforge (note, for the EService system to call your callback service, it must be registered first). This implemenation contains a callback service written in ASMX and in WCF.

Need to implement three core methods (getVersion, heartBeat and eventSeq):

namespace soap2.nads.econz.co.nz
{
        [WebService(Namespace = "http://soap2.nads.econz.co.nz")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        public class NADSCallbackService : System.Web.Services.WebService
        {
                [WebMethod]
                public CallbackVersion getVersion()
                {
                        return CallbackVersion.VERSION_2; // should match the version of the callback interface
                }
 
                [WebMethod]
                public void heartBeat(int errorsSinceLastSuccess)
                {
                        // TODO: Implementation
                        // The heartbeat method is called every minute by the EService callback manager.
 
                }
 
                [WebMethod]
                public void eventSeq(UserIDBean externalServiceID, EventBean[] eventBeans)
                {
                        // TODO: Implementation
                        // This will get fired on every user interaction which changes the state of a job, i.e. create job, dispatch, etc.
                }
        }
}
Personal tools
MediaWiki Appliance - Powered by TurnKey Linux