You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "gengshaoguang (JIRA)" <tu...@ws.apache.org> on 2007/08/29 11:47:30 UTC
[jira] Created: (TUSCANY-1630) On fly wsdl generation with axis2
1.3, coding suggestion draft
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
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
Re: [jira] Commented: (TUSCANY-1630) On fly wsdl generation with axis2 1.3, coding suggestion draft
Posted by ant elder <an...@gmail.com>.
Would be good if it was possible for Tuscany to work with any StAX impl,
would you raise a JIRA about the BEA one not working so we could investigate
if there's anything we can do (though from the sound of it it may well turn
out to be an Axis2 incompatibility)?
...ant
On 8/31/07, gengshaoguang (JIRA) <tu...@ws.apache.org> wrote:
>
>
> [
> https://issues.apache.org/jira/browse/TUSCANY-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523985]
>
> gengshaoguang commented on TUSCANY-1630:
> ----------------------------------------
>
> Sorry every,
>
> I was wrong here, Tuscany's code is right, my mistake happend as:
>
> StAX implementation has seval vendors, majority 2 of them are BEA(
> stax-1.2.0.jar) and woodstox.codehaus.org (wstx-asl-3.2.1.jar).
>
> I have been using the first one for a long time, but it would cause the
> error in Tuscany. Now I changed it into the second one, things go right.
>
> I'm sorry for making the above warning and those mails about on fly wsdl
> generation.
>
> > 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.wswhen 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
>
>
[jira] Closed: (TUSCANY-1630) On fly wsdl generation with axis2
1.3, coding suggestion draft
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Commented: (TUSCANY-1630) On fly wsdl generation with axis2
1.3, coding suggestion draft
Posted by "gengshaoguang (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523985 ]
gengshaoguang commented on TUSCANY-1630:
----------------------------------------
Sorry every,
I was wrong here, Tuscany's code is right, my mistake happend as:
StAX implementation has seval vendors, majority 2 of them are BEA(stax-1.2.0.jar) and woodstox.codehaus.org (wstx-asl-3.2.1.jar).
I have been using the first one for a long time, but it would cause the error in Tuscany. Now I changed it into the second one, things go right.
I'm sorry for making the above warning and those mails about on fly wsdl generation.
> 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