With the few minor changes that I just checked in, and thanks to Axis2C 0.93, any SCA component deployed to Axis2 can now be invoked directly from your Web browser using REST / HTTP GET style.

Here is how to do it with the Calculator sample (the steps are for Linux, should be very similar on Windows).

- Install Axis2C 0.93 and point your $AXIS2C_HOME to axis2c and LD_LIBRARY_PATH to axis2c/lib.

- Configure axis2c/axis2.xml as follows:
  <parameter name="enableMTOM" locked="false">false</parameter>
 <parameter name="enableREST" locked="false">true</parameter>

- Build SDO, SCA and the samples as usual.

- Deploy the Calculator and the BigBank samples to axis2c as usual (create directories for Calculator and BigBank under axis2c/services, containing the services.xml and the shared library for each sample).

- Start axis2c/bin/axis2_http_server.

- Point your Web browser to http://localhost:9090/axis2/services/CalculatorService/add?param1=10&param2=20.

You should receive an XML response:
<result xsi:type="result">
 <data>3.000e+01</data>
</result>

That's it... you've invoked an SCA program the REST way, just from your Web browser. This initial REST support only works on the server side for now, but it allows you to use SCA to publish REST services/resources.

If anybody has time to work on REST, it shouldn't be difficult to add the client side support using the new options in Axis2C 0.93 and nice new samples to demonstrate more real REST patterns as we discussed on this list last week.

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to