Pier--

 Use of the @Control annotation (declarative instantiation) requires
that the container of the web service be aware of how to create and
manage a control instance.  Out of the box, Axis 1.x does not support
this, but there is some as yet unshipped code in WSM that provides
very basic support for using Controls from an Axis web service.

 Basically, this code just intercepts the call to the web service,
instantiates fields declared with @Control, and then calls the web
service method.

 If you're interested, I can help you set this up -- it would require
using the source files in this directory:

http://svn.apache.org/repos/asf/beehive/wsm/trunk/src/axis1/org/apache/beehive/wsm/axis/controls/

in your application.  FWIW, this is code that Beehive could ship as a
standalone add-on to Axis if there's sufficient interest in that.

Eddie


On 8/9/06, Magli, Pierangelo <[EMAIL PROTECTED]> wrote:
Hi folks,
I have a litte problem with JdbcControls and webservices, hope somebody
can help :)

The use case is as following:

I have to access a JdbcControl through a webservice (actually, a .jws
deployed on Axis, embedded in my web application). If I instantiate the
control programmaticaly, everything works flawlessly, but if I use the
declarative approach with the @Control annotation, I get a
NullPointerException when I try to access the control...

Do you have any suggestion that could fix this problem?
Many thanks,

Pier

Reply via email to