You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/05/22 10:47:16 UTC

svn commit: r408606 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java

Author: deepal
Date: Mon May 22 01:47:16 2006
New Revision: 408606

URL: http://svn.apache.org/viewvc?rev=408606&view=rev
Log:
fixed http://issues.apache.org/jira/browse/AXIS2-721

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java?rev=408606&r1=408605&r2=408606&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2OM.java Mon May 22 01:47:16 2006
@@ -499,7 +499,7 @@
                     OMElement input = fac.createOMElement(IN_PUT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, input, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap);
+                            null, targetNamespace, soap);
                     addPolicyAsExtElement(PolicyInclude.BINDING_INPUT_POLICY,
                             inaxisMessage.getPolicyInclude(), input, fac);
                     operation.addChild(input);
@@ -519,7 +519,7 @@
                     OMElement output = fac.createOMElement(OUT_PUT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, output, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap);
+                            null, targetNamespace, soap);
                     addPolicyAsExtElement(PolicyInclude.BINDING_OUTPUT_POLICY,
                             outAxisMessage.getPolicyInclude(), output, fac);
                     operation.addChild(output);
@@ -536,7 +536,7 @@
                     OMElement fault = fac.createOMElement(FAULT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, fault, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap);
+                            null, targetNamespace, soap);
                     fault.addAttribute(ATTRIBUTE_NAME, faultyMessge.getName(),
                             null);
                     // TODO adding policies for fault messages
@@ -626,7 +626,7 @@
                     OMElement input = fac.createOMElement(IN_PUT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, input, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap12);
+                            null, targetNamespace, soap12);
                     addPolicyAsExtElement(PolicyInclude.BINDING_INPUT_POLICY,
                             inaxisMessage.getPolicyInclude(), input, fac);
                     operation.addChild(input);
@@ -646,7 +646,7 @@
                     OMElement output = fac.createOMElement(OUT_PUT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, output, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap12);
+                            null, targetNamespace, soap12);
                     addPolicyAsExtElement(PolicyInclude.BINDING_OUTPUT_POLICY,
                             outAxisMessage.getPolicyInclude(), output, fac);
                     operation.addChild(output);
@@ -663,7 +663,7 @@
                     OMElement fault = fac.createOMElement(FAULT_LOCAL_NAME,
                             wsdl);
                     addExtensionElemnet(fac, fault, SOAP_BODY, SOAP_USE, use,
-                            "namespace", targetNamespace, soap12);
+                            null, targetNamespace, soap12);
                     fault.addAttribute(ATTRIBUTE_NAME, faultyMessge.getName(),
                             null);
                     // add policies for fault messages
@@ -767,7 +767,9 @@
         OMElement soapbinding = fac.createOMElement(name, soapNameSpace);
         element.addChild(soapbinding);
         soapbinding.addAttribute(att1Name, att1Value, null);
-        soapbinding.addAttribute(att2Name, att2Value, null);
+        if (att2Name != null) {
+            soapbinding.addAttribute(att2Name, att2Value, null);
+        }
     }
 
     private void addExtensionElement(OMFactory fac, OMElement element,



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