Older Web Service Variation
In previous releases, an InterSystems IRIS® web method could not directly call SendRequestSync(), SendRequestAsync(), or SendDeferredResponse(). An alternative approach was needed. This appendix provides the details, for the benefit of anyone who is maintaining code that uses this alternative approach.
Overview
In previous releases, an InterSystems IRIS web method could not directly call SendRequestSync(), SendRequestAsync(), or SendDeferredResponse(). Instead, there were two requirements for a production web service, in addition to the requirements discussed earlier in this book:
-
Each web method had to invoke the ProcessInput() method as appropriate, passing to it the appropriate request production message and receiving a response message.
-
The web service class had to define the OnProcessInput() callback method. In this method, you would call SendRequestSync(), SendRequestAsync(), or SendDeferredResponse().
The following figure shows the overall flow of request messages in this scenario: