[jbossws-dev] [Design of JBoss Web Services] - JAX-WS Conformance Requirements

Richard Opalka ropalka at redhat.com
Mon Jan 12 08:54:03 EST 2009


Additional parameter solution sounds better to me Darran

Richard

darran.lofthouse at jboss.com wrote:
> I just quickly wanted to double check the interpretation a conformance requirement from the JAX-WS specification.
>
> >From section 4.2.4 of the JAX-WS specification describing exception handling: -
>
> anonymous wrote : 
>   | Conformance (Exceptions During Handler Processing): Exceptions thrown during handler processing on the client MUST be passed on to the application. If the exception in question is a subclass of WebService-Exception then an implementation MUST rethrow it as-is, without any additional wrapping, otherwise it MUST throw a WebServiceExceptionwhose cause is set to the exception that was thrown during handler processing.
>   | 
>
> I read this as only being applicable on the client side and not on the server side of the call.  However the HandlerChainExecutor is enforcing this on both sides, see the processHandlerFailure method: -
>
> http://anonsvn.jboss.org/repos/jbossws/stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerChainExecutor.java
>
> The problem is that the WSSecurityDispatcher throws a CommonSOAPFaultException so that a faultCode and faultString can be specified but as this class does not extend WebServiceException the HandlerChainExecutor is replacing the exception so loosing the faultCode and changing the faultString.
>
> The HandlerChainExecutor is instantiated from three locations, two for clients and one for server side, my proposal is to pass an additional parameter into the constructor to indicate if this is server side or client side and only enforce the conformance requirement if client side.
>
> I have considered other options such as changing class hierarchies for the exceptions but these changes potentially start to leak JAX-WS details into JAX-RPC specific code.
>
>
>
>
>
>
>
> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200995#4200995
>
> Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200995
> _______________________________________________
> jbossws-dev mailing list
> jbossws-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbossws-dev
>   


-- 
B.Sc. Richard Opalka
Senior Software Engineer
JBoss, a division of Red Hat

Mobile: +420 731 186 942
Mail: ropalka at redhat.com




More information about the jbossws-dev mailing list