SOAP 3 Callback Documentation

From
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
The following callback interface is designed using VS2008 and ASMX.
 
The following callback interface is designed using VS2008 and ASMX.
  
An implementation of a callback service is also uploaded on our project page on Sourceforge.  This implemenation contains a callback service written in tradition ASMX and in WCF.
+
An implementation of a callback service is also uploaded on our [http://sourceforge.net/projects/econz-eservice/|project page] on Sourceforge.  This implemenation contains a callback service written in tradition ASMX and in WCF.
  
 
Need to implement '''three''' core methods (getVersion, heartBeat and eventSeq):
 
Need to implement '''three''' core methods (getVersion, heartBeat and eventSeq):
  
<pre>
+
<source lang="csharp">
 
namespace soap2.nads.econz.co.nz
 
namespace soap2.nads.econz.co.nz
 
{
 
{
Line 31: Line 31:
 
}
 
}
 
}
 
}
</pre>
+
</source>
  
 
[[CallbackVersion]] enumerand definition
 
[[CallbackVersion]] enumerand definition

Revision as of 03:24, 16 December 2009

The following callback interface is designed using VS2008 and ASMX.

An implementation of a callback service is also uploaded on our page on Sourceforge. This implemenation contains a callback service written in tradition 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
                }
 
                [WebMethod]
                public void eventSeq(UserIDBean externalServiceID, EventBean[] eventBeans)
                {
                        // TODO: Implementation
                }
        }
}

CallbackVersion enumerand definition

UserIDBean object definition

EventBean object definition

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux