Hi Mike, See my comments inline.
> I could not figure this out from the documention. It would be great if > somebody could answer questions concerning parameters (for services.xml > and axis2.xml) > > > > I found this is the AXIS2C Documentation > > > parameter > > > The service element can have any number of parameters as sub elements. > > Attributes > > Description > > Possible Values > > Value of the Text in the Parameter Element > > name > > Specifies the name of the shared library that holds the service > implementation > > serviceClass > > the service name. Example: echo > > locked > > Indicates whether the parameter can be changed from the code > > true / false > > > > > > > > > > My Questions: > > 1. Can my Web Service add a parameter so that it ends up in > services.xml. I have context information that needs to be persistent. Is > this the intent of the parameter? What is the API? It is not possible to access the services.xml file. However, you can access the content made available inside the services.xml file which will be loaded into the service's configuration. Refer, 1. axis2_svc_ctx.h 2. axis2_svc.h That is the API. > > > 2. My other question concerns AXIS2.XML. Can I also add/modify > parameters via my Web Service? What is the API? Same here. The axis2.xml will be loaded into the engine configuration. If you can fill the right information into the right place, the engine will be blind enough to believe that it has been there since the right beginning. Your attention will have to be paid to, 1. axis2_conf_ctx.h 2. axis2_conf.h > > > > > In addition to that, to understand how the engine loads to itself the configuration information, go through source found inside the src/core/deployment sub directory. I know this sounds hard, but, it wouldn't be a big deal to figure out what should be done. If you want to write to axis2.xml and services.xml, you will basically have to release any thread locks applied on them, and also, you will have to use an xml writer. The engine only reads these at present and does not write. For hot deployment, you will need only to read, but for hot modifications, you will have to write. Feel free to introduce new API. But, it is strongly advised not to change the existing API. I mean the method signatures not the body here. Of course you can modify the body. Please raise an issue on the Axis2/C JIRA so that other developers can get involved too. Regards, Senaka > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]