Hello Christian,
I believe I understand what you are trying to do!
Correct me if Im wrong. What you are trying to do is to EXPOSE your
existing legacy as a Web Service, and not the opposite (legacy accessing Web
Service). This the opposite of what I have done (I create a Stub that is
use by my legacies to access Web Service).
This is also possible since AXIS2C let you write Server and or Client code.
So the correct statement should be:-
So if I want to access the data gathered by my old program from within a
webbrowser I need to write a such AXIS2C-SERVER that will implement my app
(build as a share object).
i.e. browser <- -> axis-service <- -> my app.
I already implemented a first (dumb) service which react on a REST call
(URL). It returns the data in xml. Is it possible to return the values in a
simple string like: {val1=x;val2=y}
AXIS2C is the C/C++ implementation of the Java AXIS. This is built for
Web Service (soap), and REST, which are XML driven. So if this is not what
you really need, maybe you should consider other tools, Like CGI script !
Kinds regards,
Jean-Marc
De : Christian Wiese [mailto:[email protected]]
Envoyé : dimanche 9 juin 2013 20:12
À : 'Apache AXIS C User List'
Objet : AW: [Bulk] How to use Axis2C (REST) as 'gateway' to an existing app
Hello Jean-Marc,
thank you for your answer and hints.
But I´m sorry, I don´t get it L
Maybe I have a problem with the wording here. I understand client as one
option to trigger a service. For example a webbrowser is a client. The
axis2c-client-API allows me to use the same service from my c-application.
So if I want to access the data gathered by my old program from within a
webbrowser I need to write a such an axis-client into my app. And these
client also connects to the service and gets all requests from the browser
forwarded?
i.e. browser <- -> axis-service <- -> axis-client (my app)
And a short second question J
I already implemented a first (dumb) service which react on a REST call
(URL). It returns the data in xml. Is it possible to return the values in a
simple string like: {val1=x;val2=y}
Kind regards
Chris
Von: GIACAMOND [mailto:[email protected]]
Gesendet: Sonntag, 9. Juni 2013 14:11
An: 'Apache AXIS C User List'
Betreff: RE: [Bulk] How to use Axis2C (REST) as 'gateway' to an existing app
Hi Christian,
Im currently working on an integration project which involve an old legacy
TXSeries / Cobol environment on AIX, and REST-API to invoke Web Service. I
used AXIS2C 1.7 Client API, build with libxml2 2.9. I had to apply a small
fix in the http_sender.c module (see JIRA AXIS2C-1626), to make-it work. I
have also implement XPATH search query from the client side.
You just can use a stub module from your existing application, that will be
link with dynamic libraries, or integrate directly the native AXIS2C client
API.
You should consider generating / building both AXIS2C and LIBXML2 from your
own installation. It make it much more flexible when its time to build.
Have fun,
Jean-Marc
De : Christian Wiese [mailto:[email protected]]
Envoyé : samedi 8 juin 2013 12:20
À : c-user@axis. <mailto:[email protected]> apache.org
Objet : [Bulk] How to use Axis2C (REST) as 'gateway' to an existing app
Hello all,
I´m completely new to Axis2c so I have an absolute beginner questions, but I
haven´t found an answer yet so maybe you could point me to the right
direction.
I currently have a more or less finished application on an embedded
linux-PC. This application gather different information and data from a lot
of places. Now I would like to use a REST-API to get and set some of this
data. Firstly I hopped I could easily integrate axis2c into my application
(as a REST-server) but I realized that it offered a standalone server with
services I can implement.
So to my question:
Is there a concept or idea how I can use the axis2c server and use it as
some sort of gateway/REST-server for my existing application? Should I write
an axis2c-service that routes the incoming calls to my existing program
like:
External call <-REST-> axis2c-service <-UDP-> existing tool
Or maybe implement an axis2c-client into my existing application which also
connect to the axis2c-server?
Am I right that it is not possible to implement an axis2c-service into my
running application? It would be some sort of library which is linked at
runtime into my program.
Thanks in advance
Chris