[jboss-user] [JBoss Web Services CXF] - Continuing problem with XTS WS-T tests in AS trunk/CXF 2.2.9

Jim Ma do-not-reply at jboss.com
Thu Jun 24 06:49:25 EDT 2010


Jim Ma [http://community.jboss.org/people/jim.ma] replied to the discussion

"Continuing problem with XTS WS-T tests in AS trunk/CXF 2.2.9"

To view the discussion, visit: http://community.jboss.org/message/549473#549473

--------------------------------------------------------------
After looked at the testcase, I think fix this NPE can not resolve this problem completely. If I understand correctly , after server receive this "soapFault" request, it still needs to invoke the method "soapFault(Fault fault)" in service imlementation class.  So far , CXF is not capable to do this.  It is because the CXF Intercetors to process soapFault is only designed to work in the client side.  So fix this one , there will be couple of another issues pop up.

This could be a workaroud: modify the wsdl schema and wrap the soap fault element in another element:
> <schema>
> 
>   <xs:element name="XTSFault" type="tns:XTSFault"/>
> 
>   <complexType name="XTSFault">
>    <sequence>
>        <element name="fault" type="soapEnv:Fault"/>
>    </sequence>
>   </complexType>
> 
> </schema>
> 
> 
> 
> <message  name="SoapFault">
>       <part name="fault"  element="tns:XTSFault" />
> </message>
This will make CXF treat this soap request not a soap fault response and handle it correctly.
Does this change need a lot of work in JBossTS and work for dispatching the fault message ?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/549473#549473]

Start a new discussion in JBoss Web Services CXF at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2046]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100624/41ea1415/attachment.html 


More information about the jboss-user mailing list