[jbossws-issues] [JBoss JIRA] Issue Comment Edited: (JBWS-3291) Native & CXF stacks should support endpoints with WSDL overloaded methods

Richard Opalka (JIRA) jira-events at lists.jboss.org
Wed May 11 06:28:18 EDT 2011


    [ https://issues.jboss.org/browse/JBWS-3291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601268#comment-12601268 ] 

Richard Opalka edited comment on JBWS-3291 at 5/11/11 6:27 AM:
---------------------------------------------------------------

<ropalka> asoldano, I'm investigating JBWS-3291 ATM and I think we're not going to fix it
<ropalka> asoldano, let me explain current situation
<ropalka> asoldano, there are two design issues related to this (I'm talking about Native)
<asoldano> ropalka, reading...
<ropalka>  * we depend on wsdl4j thirdparty artifact that doesn't allow operation name with same name (so called wsdl overloaded methods) - typical exception thrown for such WSDLs is:
<ropalka>    - http://fpaste.org/0nTL/
<ropalka>  * JBossWS Native was designed in the way it also doesn't allow overloaded methods for endpoints - I was trying to fix it locally but it results in API changes explosion
<ropalka>     - I started modifying Native to lookup operation not only via QName (operationName) key, but via both QName (operationName) & soapAction
<asoldano> ropalka, I can immagine...
<ropalka>      - this would require complete Native redesign because
<ropalka>       - we'd need to pass soapAction everywhere
<ropalka>       - our Native was designed in the way this might little bit work for WS-A usecases where soapAction is in the envelope
<asoldano> ropalka, mmhh... not something to spend time on now imho...
<ropalka>      - this will not work for standard soap messages where soapAction is present in HTTP request header - would require further Native changes to propagate it to all invocations
<ropalka> asoldano, conclusion
<ropalka> asoldano, Native was designed with precondition overloaded methods are not allowed on both client & server side
<ropalka>  - also because of wsdl4j dependency (that is forbidding it too)
<asoldano> ropalka, btw, does the same usecase work with cxf?
<asoldano> ropalka, I assume not..
<ropalka>  - also because further design decisions
<ropalka> asoldano, I can try it, but if it depend on wsdl4j too, then no
<asoldano> ropalka, if you can, just give that a try too
<ropalka> asoldano, give me few minutes
<asoldano> ropalka, sure, np
<ropalka> asoldano, I need to move the test case from native to shared-testsuite ...
<asoldano> ropalka, JimMa: in the mean time, 4.0.0.Beta1 is finally released
<ropalka> asoldano, great ;)
<ropalka> asoldano, OK, I've got the result
<ropalka> asoldano, the same applies for CXF, it doesn't allow you WSDL overloaded methods
<ropalka> asoldano, see - http://fpaste.org/MoSj/
<asoldano> ropalka, ok, then we can conclude that this is a limitation with wsdl4j and can't be fixed
<ropalka> asoldano, in case of CXF it's not wsdl4j issue - it's design limitation
<ropalka> asoldano, and AFAIK org.apache.cxf.service.model.InterfaceInfo is reused on both client & server CXF side
<ropalka> asoldano, so it's not easily fixable on CXF side too :(
<ropalka> asoldano, I'll close this JBWS-3291 bug as won't fix
<asoldano> ropalka, ok

      was (Author: ropalka):
    <ropalka> asoldano, I'm investigating JBWS-3291 ATM and I think we're not going to fix it
<ropalka> asoldano, let me explain current situation
<ropalka> asoldano, there are two design issues related to this (I'm talking about Native)
<asoldano> ropalka, reading...
<ropalka>  * we depend on wsdl4j thirdparty artifact that doesn't allow operation name with same name (so called wsdl overloaded methods) - typical exception thrown for such WSDLs is:
<ropalka>    - http://fpaste.org/0nTL/
<ropalka>  * JBossWS Native was designed in the way it also doesn't allow overloaded methods for endpoints - I was trying to fix it locally but it results in API changes explosion
<ropalka>     - I started modifying Native to lookup operation not only via QName (operationName) key, but via both QName (operationName) & soapAction
<asoldano> ropalka, I can immagine...
<ropalka>      - this would require complete Native redesign because
<ropalka>       - we'd need to pass soapAction everywhere
<ropalka>       - our Native was designed in the way this might little bit work for WS-A usecases where soapAction is in the envelope
<asoldano> ropalka, mmhh... not something to spend time on now imho...
<ropalka>      - this will not work for standard soap messages where soapAction is present in HTTP request header - would require further Native changes to propagate it to all invocations
<ropalka> asoldano, conclusion
<ropalka> asoldano, Native was designed with precondition overloaded methods are not allowed on both client & server side
<ropalka>  - also because of wsdl4j dependency (that is forbidding it too)
<asoldano> ropalka, btw, does the same usecase work with cxf?
<asoldano> ropalka, I assume not..
<ropalka>  - also because further design decisions
<ropalka> asoldano, I can try it, but if it depend on wsdl4j too, then no
<asoldano> ropalka, if you can, just give that a try too
<ropalka> asoldano, give me few minutes
<asoldano> ropalka, sure, np
<ropalka> asoldano, I need to move the test case from native to shared-testsuite ...
<asoldano> ropalka, JimMa: in the mean time, 4.0.0.Beta1 is finally released
* ropalka 's refactoring test case to try CXF how it deals with overloaded WSDL operations ...
<ropalka> asoldano, great ;)
<ropalka> asoldano, OK, I've got the result
<ropalka> asoldano, the same applies for CXF, it doesn't allow you WSDL overloaded methods
<ropalka> asoldano, see - http://fpaste.org/MoSj/
<asoldano> ropalka, ok, then we can conclude that this is a limitation with wsdl4j and can't be fixed
<ropalka> asoldano, in case of CXF it's not wsdl4j issue - it's design limitation
<ropalka> asoldano, and AFAIK org.apache.cxf.service.model.InterfaceInfo is reused on both client & server CXF side
<ropalka> asoldano, so it's not easily fixable on CXF side too :(
<ropalka> asoldano, I'll close this JBWS-3291 bug as won't fix
<asoldano> ropalka, ok
  
> Native & CXF stacks should support endpoints with WSDL overloaded methods 
> --------------------------------------------------------------------------
>
>                 Key: JBWS-3291
>                 URL: https://issues.jboss.org/browse/JBWS-3291
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf, jbossws-native
>            Reporter: Richard Opalka
>            Assignee: Richard Opalka
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossws-issues mailing list