× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




        It occurred to me that it might be possible to set up an RPG program
listening on an internal port and just suck the message in and manually
parse it,  produce a reply and send it.  I immediately thought about Scott's
HTTPAPI, but I was unsure if the httpapi had any facility for doing that.
It seems that all of the api's require a URL for gets/posts and it isn't
obvious to me how to set that up or if this is even true.

Are you running the server side or the client side? From what I can make out from your description, you're actually running the SERVER. HTTPAPI (and Brad's GetURI, as well) are client-side tools. They take on the role that would more traditionally be handled by a web browser. They do not take on the role of the web server.

For a web server, you could use a tool like CGIDEV2. Though, for parsing XML input, it might make more sense to call QtmhRdStin() directly, since CGIDEV2 doesn't understand XML.

You could then feed the input to an XML parser (such as Expat, or IBM's tool) to get the data you need from the SOAP message, and use CGIDEV2 to return the results.

I guess I could just write a socket program listening to an internal port that I have a reverse proxy in apache pointing to... ?

I guess? I haven't worked with Apache's proxies, so I'm not sure if that would benefit you at all.

I've written some articles on Web programming from RPG that you might find interesting (these require a membership to the iSeries Network, but a free "Associate" membership will work:)

http://www.iseriesnetwork.com/article.cfm?id=51135 http://www.iseriesnetwork.com/article.cfm?id=51145 http://www.iseriesnetwork.com/article.cfm?id=51209

I've also written some material on parsing XML with Expat. You can download the code from my Web site, there are also links there to iSeries Network articles that explain the code (which also require an associate or better membership)
http://www.scottklement.com/expat/

Good luck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.