[
http://issues.apache.org/jira/browse/AXIS-2530?page=comments#action_12423150 ]
Christopher Sahnwaldt commented on AXIS-2530:
---------------------------------------------
Here's an example Spring configuration:
To create the AxisServer object and export it into the ServletContext:
<bean id="axisServerExporter" class="axis.dynamic.AxisServerExporter">
<property name="configuration" ref="soapServerConfiguration"/>
<property name="servletName" value="${soap.servlet.name}"/>
</bean>
<bean id="soapServerConfiguration" class="axis.dynamic.SoapServerConfiguration">
<property name="attachmentDir" value="${soap.attachment.dir}"/>
<property name="disableServicesList" value="false"/>
<property name="servicesPath" value="${soap.path}"/>
</bean>
And to publish a bean as service:
<bean id="MyService" class="axis.dynamic.SoapReceiver">
<property name="target" ref="myBean"/>
<property name="allowedMethods" value="method1,method2"/>
<property name="serverConfiguration" ref="soapServerConfiguration"/>
</bean>
> publish any object as web service
> ---------------------------------
>
> Key: AXIS-2530
> URL: http://issues.apache.org/jira/browse/AXIS-2530
> Project: Apache Axis
> Issue Type: New Feature
> Components: Deployment / Registries
> Affects Versions: current (nightly)
> Reporter: Christopher Sahnwaldt
> Attachments: AxisServerExporter.java, ObjectRPCProvider.java,
> SoapConfiguration.java, SoapInterface.java, SoapReceiver.java,
> SoapServerConfiguration.java
>
>
> It would be great if one could take any object and publish it as a service.
> See for example http://marc.theaimsgroup.com/?l=axis-dev&m=115168170301873 .
> We have similar requirements (we configure objects using Spring), so we
> figured out a way to create our own Axis configuration and fill it with
> service handlers for our objects. To make the AxisServlet use our handmade
> configuration, we create an AxisServer object and store it as an attribute in
> the ServletContext.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]