Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query Web Service from Informix 4GL

343 views
Skip to first unread message

eferreyra

unread,
Nov 20, 2008, 8:11:20 AM11/20/08
to
Hi !!

Our DBA tell us (developers) that in informix IDS 11.5 and his new
version of Informix 4GL we can query web services from Informix 4gl
program.

I cant find any help or guide to do this.

Does anyone have some link or doc where i can get info on this
function ?

Thanks !!!

Enrique

meh...@querix.com

unread,
Nov 20, 2008, 9:22:36 AM11/20/08
to eferreyra, inform...@iiug.org
Hi Enrique;

Hydra4gl will allow you to create web services as well as, Query other Web services all in 4GL.  It is simple and the code is automatically generated for you, and there are publishing facilities.

You are welcome to download and test, by registering on Querix site.

> _______________________________________________
> Informix-list mailing list
>

Jonathan Leffler

unread,
Nov 20, 2008, 2:27:18 PM11/20/08
to IIUG Informix List
[Resend to list]

There will be some functionality related to I4GL and SOA in I4GL
7.50.xC2, due out soon; it is not in 7.50.xC1 which is currently GA.

The functionality will be released in increments over the next two or
three releases.

In the first release, it will be possible to use I4GL as a service
publisher - that is, you will be able to deploy I4GL functions so that
they can be used as a web service by other languages. When I say
"function", that means there's an entry point function that is
described in WSDL (Web Services Description Language); the
implementation of that function may, and usually will, call other I4GL
functions. The I4GL function is accessed via the Axis2/C libraries,
which does the heavy lifting of parsing the messages incoming
(collecting the parameters to the function) and reformatting the
responses outgoing (sending the return values from the function).

In subsequent releases (order, timing unspecified), the functionality
will be extended.
It will allow I4GL to invoke web services (nominally provided by some
other system, though of course it could actually be a web service
provided by an I4GL function). It will handle report output, possibly
via MTOM (a SOAP-based Message Transmission Optimization Mechanism) or
an analogous mechanism. It will handle record type parameters. It
will (eventually) handle array (and array of record) parameters, using
the dynamic array feature of I4GL 7.32 and later.

As with all predictions about the future, this one is bound to be
wrong in details. It is in no sense a commitment by IBM; product
plans may change; and all the other standard disclaimers.

--
Jonathan Leffler #include <disclaimer.h>
Email: jlef...@earthlink.net, jlef...@us.ibm.com
Guardian of DBD::Informix v2008.0513 -- http://dbi.perl.org/
"Blessed are we who can laugh at ourselves, for we shall never cease
to be amused."
NB: Please do not use this email for correspondence.
I don't necessarily read it every week, even.

eferreyra

unread,
Nov 21, 2008, 6:47:33 AM11/21/08
to
Ok, many thanks Jonathan!

For other people who could fall in this posts, what we do is:

Build a c++ program with gSOAP (google it) that consume web/wcf
services process the results and send it to a new file with unload
format (pipe separated or something like) and then we load the file in
a temp table, then we have the result in I4GL. Of course as "good"
developers all this is isolated in a function in a library, so for
simple example a I4GL function like:

f_get_some_info_from_ws()

works doing:
RUN "gsoapprogram > /tmpfile"
(Check exit code for exceptions)
LOAD FROM /tmpfile DELIMITER ... INSERT INTO temptable.......
process temptable to build function's return
return info

Hope helps anyone more!

Thanks again!

meh...@querix.com

unread,
Nov 21, 2008, 7:51:55 AM11/21/08
to eferreyra, inform...@iiug.org
Here are some alternetaive ways;

http://www.querix.com/news-events/development/development-
update-september-2008-4gl-web-service-provider

http://www.querix.com/news-events/development/development-
update-september-2008-4gl-web-service-client

queri...@hoelzl-bavaria.de

unread,
Nov 24, 2008, 5:43:02 AM11/24/08
to
Hi Enrique,
please let me know if you would like to evaluate the Querix Hydra 4GL
compiler for free.
You bascially can
a) 'CREATE' web services from your 4gl code (there are tools
included which let you publish normal 4gl functions within minutes) as
Web services. Functions which are published as Web Service operations
can still be used within your 4gl code as normal functions and web
service functions can also still use function calls to other normal
4gl functions or web service functions.

b) 'USE' Web service operations from other web service provider. You
call them like normal 4gl functions.

I could also email you the '4GL Web Service Getting Started Guide'
which shows you, what work/tasks are involded to do this.

Please let me know.

Best regards
Hubert

0 new messages