axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r488577 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Date Tue, 19 Dec 2006 08:09:10 GMT
Author: amilas
Date: Tue Dec 19 00:09:10 2006
New Revision: 488577

URL: http://svn.apache.org/viewvc?view=rev&rev=488577
Log:
revert the last commit 

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?view=diff&rev=488577&r1=488576&r2=488577
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Tue Dec 19 00:09:10 2006
@@ -516,30 +516,10 @@
                 for (Iterator faultKeys = bindingFaultsMap.keySet().iterator(); faultKeys
                         .hasNext();) {
                     Object faultMapKey = faultKeys.next();
-                    BindingFault bindingFault = (BindingFault) bindingFaultsMap.get(faultMapKey);
-                    // accoding to the ws-basic profile and the wsdl 1.1 spec wsdl:fault
element must have an
-                    // soap:fault extensibility element with the name attribute.
-                    String faultMappingName = null;
-                    Object nextElement;
-                    for (Iterator iter = bindingFault.getExtensibilityElements().iterator();
-                            iter.hasNext();){
-                       nextElement = iter.next();
-                       if (nextElement instanceof SOAP12Fault){
-                           SOAP12Fault soapFault = (SOAP12Fault) nextElement;
-                           faultMappingName = soapFault.getName();
-                       } else if (nextElement instanceof SOAPFault){
-                           SOAPFault soapFault = (SOAPFault) nextElement;
-                           faultMappingName = soapFault.getName();
-                       }
-                    }
-
-                    if (faultMappingName == null){
-                        throw new AxisFault("the fault binding " + bindingFault.getName()
-                                + " soap:fault element must be present and it should have
an " +
-                                "name attribute to map to the wsdl:fault element.");
-                    }
-
-                    Fault wsdl4jFault = wsdl4jOperation.getFault(faultMappingName);
+                    BindingFault bindingFault = (BindingFault) bindingFaultsMap
+                            .get(faultMapKey);
+                    Fault wsdl4jFault = wsdl4jOperation.getFault(bindingFault
+                            .getName());
                     if (wsdl4jFault == null || wsdl4jFault.getMessage().getParts().size()
== 0) {
                         throw new AxisFault("fault \"" + bindingFault.getName()
                                 + "\" not found in the Operation "



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message