Author: heiko.braun(a)jboss.com
Date: 2007-03-08 12:07:55 -0500 (Thu, 08 Mar 2007)
New Revision: 2556
Modified:
trunk/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
Log:
First step towards SAAJ 1.3 compliance
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPFaultImpl.java 2007-03-08
17:00:04 UTC (rev 2555)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPFaultImpl.java 2007-03-08
17:07:55 UTC (rev 2556)
@@ -68,6 +68,8 @@
private SOAPElement faultactor;
private Locale faultStringLocale;
+ private String faultRole;
+
public SOAPFaultImpl() throws SOAPException
{
this(SOAPConstants.SOAP_ENV_PREFIX, SOAPConstants.URI_NS_SOAP_ENVELOPE);
@@ -295,8 +297,7 @@
public String getFaultRole()
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ return this.faultRole;
}
public Iterator getFaultSubcodes()
@@ -325,7 +326,13 @@
public void setFaultRole(String uri) throws SOAPException
{
- //TODO: SAAJ 1.3
- throw new NotImplementedException();
+ assertSOAPBinding();
+ this.faultRole = uri;
}
+
+ private void assertSOAPBinding()
+ {
+ if(getNamespaceURI().equals(Constants.NS_SOAP11_ENV))
+ throw new UnsupportedOperationException();
+ }
}
\ No newline at end of file
Show replies by date