APLDN Forum Index APLDN
APL2000 Developer Network Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Communicating between APL WebServers

 
Post new topic   Reply to topic    APLDN Forum Index -> APL WebServices
View previous topic :: View next topic  
Author Message
joe_blaze



Joined: 11 Feb 2007
Posts: 230
Location: Box 361 Brielle, NJ 08730-0361

PostPosted: Wed Jul 28, 2010 6:49 UTC    Post subject: Communicating between APL WebServers Reply with quote

Q: Can an APL+Win workspace behind APLNext WebServices 'see' other web services?

A: Yes. The communication between two web servers is done via http-protocol requests. The source server generates the http request and the target server, assuming that it is configured to handle such a request, responds to the request and returns that response in xml-format. Either one of the interacting web services may be APLNext WebServices servers or not.

Functions in an instance of an APL+Win workspace started by APLNextWebServices can perform the same operations as those which a function in a manually-started instance of that workspace can do.

Communicating with a web server can generally be done two ways:

    Via direct human action, by pointing a browser to the url of the web service.

    Under program control using HTTP requests.


A function in an instance of a, possibly server-side, APL+Win workspace can communicate with a web service under program control via HTTP requests. There are various ways to create HTTP requests in APL+Win including:

    The APL+Win []ni system function for 'network interface' is very flexible, but requires serious study and application skill.

    The Win32 ActiveX component ADODB treats the results of an HTTP request as a record set. It also requires some study and careful application.

    APLNext WebTransfer is a .Net web client application exposed as ActiveX so that APL+Win can use it is the easiest option available.


APLNext WebTransfer is included with the APLNext WebServices product. To download APLNext WebTransfer go to: http://forum.apl2000.com/viewtopic.php?t=431. This Forum topic includes a pdf-format document which provides a simple example using APLNext WebTransfer so that a (possibly server-side) APL+Win function can access (another) web service using APLNext WebTransfer to generate the HTTP requests using its 'XSend' or XASendmethod.

APLNext WebTransfer also provides methods for exchanging objects between APL+Win and a WebServer, such as XSend, XSendFile, XSendFileSegment, XSendObject, XSendSoapObject as well as asynchronous analogues of these methods.

_________________
Bringing APL into the .Net mainstream! Ask me about the VisualAPL application software development environment that is fully integrated with Microsoft Visual Studio.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    APLDN Forum Index -> APL WebServices All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group