[jboss-jira] [JBoss JIRA] (WFLY-1667) SOAPFaultException cannot render SOAP 1.2 Fault Subcode
Emmanuel Hugonnet (JIRA)
jira-events at lists.jboss.org
Wed Jul 10 02:22:21 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788723#comment-12788723 ]
Emmanuel Hugonnet commented on WFLY-1667:
-----------------------------------------
This should be fixed with the current version of CXF. Adding some tests to check this.
> SOAPFaultException cannot render SOAP 1.2 Fault Subcode
> -------------------------------------------------------
>
> Key: WFLY-1667
> URL: https://issues.jboss.org/browse/WFLY-1667
> Project: WildFly
> Issue Type: Bug
> Components: Web Services
> Reporter: Emmanuel Hugonnet
> Assignee: Alessio Soldano
>
> The code below doesn't render <soapenv:Subcode>:
> import javax.xml.soap.SOAPConstants;
> import javax.xml.soap.SOAPFactory;
> import javax.xml.soap.SOAPFault;
> import javax.xml.ws.soap.SOAPFaultException;
> ...
> SOAPFactory factory = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
> SOAPFault fault = factory.createFault("Operator not found", new QName(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, "Receiver"));
> fault.appendFaultSubcode(new QName("...", "OperatorNotFound"));
> ...
> throw new SOAPFaultException(fault);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list