You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <tu...@ws.apache.org> on 2007/10/02 10:56:50 UTC
[jira] Closed: (TUSCANY-1630) On fly wsdl generation with axis2
1.3, coding suggestion draft
[ https://issues.apache.org/jira/browse/TUSCANY-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder closed TUSCANY-1630.
------------------------------
Resolution: Fixed
> On fly wsdl generation with axis2 1.3, coding suggestion draft
> --------------------------------------------------------------
>
> Key: TUSCANY-1630
> URL: https://issues.apache.org/jira/browse/TUSCANY-1630
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: jdk1.5 windows, eclipse, latest svn code
> Reporter: gengshaoguang
> Fix For: Java-SCA-Next
>
>
> The axis2 binding depends on axis2 1.2, it works well for binding.ws when you provide artificial wsdl and reference it with <interface:wsdl interface="[uri]"/>. Be careful the service name must be the same to the java interface.
> Then you could remove your wsdl and mark out the <interface.wsdl/>.
> Then the Java2WSDLHelper is going to work, but failed with compilation, it compiles only with axis2 1.3.
> Refresh the classpath, then we should do the following correction to fit axis2 1.3.
> ...binding.ws.axis2.Axis2ServiceServlet.
> private ConfigurationContext conf_ctx;
> public void init(ConfigurationContext configContext) {
> conf_ctx = configContext; //keep this object locally instead of in the super's (super now change this member by itself)
> /*this.configContext = configContext;
> try {
> super.init(DUMMY_CONFIG);
> } catch (ServletException e) {
> throw new RuntimeException(e);
> }*/
> agent = new TuscanyListingAgent(configContext);
> }
> .....
> @Override
> protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException {
> return conf_ctx; //return local instance instead of original: instance in the super
> }
> Tomorrow I will make a mvn test case and attach the code here on.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org