10.07.2015 Views

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4<strong>Using</strong> the <strong>TCP</strong> Counted XML InboundAdapterThe EnsLib.<strong>TCP</strong>.CountedXMLInboundAdapter acts as a <strong>TCP</strong> listener for an XTE server. The adapter receives XML data incounted <strong>TCP</strong> format and imports the XML data into <strong>Ensemble</strong>. The result is an instantiated <strong>Ensemble</strong> object.This chapter explains how to use the EnsLib.<strong>TCP</strong>.CountedXMLInboundAdapter. It discusses the following topics:• Background Information• <strong>Using</strong> the Adapter• Creating a New Business Service Class• Adapter Settings4.1 Background InformationYou can simply set up the EnsLib.<strong>TCP</strong>.CountedXMLInboundAdapter as instructed in the next section, “<strong>Using</strong> the Adapter.”However, some developers want more details about how the adapter communicates <strong>with</strong> its configured business service.This section provides those details.If you look at the EnsLib.<strong>TCP</strong>.CountedXMLInboundAdapter class code, you see that it contains a call to an <strong>Ensemble</strong>framework method called ProcessInput(). However, the code for the business service class provides a method calledOnProcessInput(). This section explains the relationship between the two methods. If you want to view <strong>Ensemble</strong> classcode, try the following:• In Studio, from the Tools menu choose Class Browser. The Class Browser dialog displays. In the window at left, navigatethe hierarchy to find the class of interest. In the window at right, display details about class members and theclass hierarchy by clicking the tabs along the lower edge of the display: All, Properties, Methods, Parameters, and soon.• In Studio, from the Help menu choose On-line <strong>Documentation</strong>. The documentation home page displays. Scroll downand choose Class Reference Information. The Caché Class Reference home page displays. At top left, for Classes inchoose an <strong>Ensemble</strong>-enabled namespace. Navigate the hierarchy of package names to find the class of interest.<strong>Using</strong> <strong>TCP</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong> 21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!