axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r551116 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Date Wed, 27 Jun 2007 10:39:00 GMT
Author: deepal
Date: Wed Jun 27 03:38:59 2007
New Revision: 551116

URL: http://svn.apache.org/viewvc?view=rev&rev=551116
Log:
fixing AXIS2-2771
 - I think we need to improve this a bit , to have ?wsdl based on Binding hierarchy 

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=551116&r1=551115&r2=551116
==============================================================================
--- 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
Wed Jun 27 03:38:59 2007
@@ -485,6 +485,16 @@
 
                 AxisMessage axisInMessage =
                         axisOperation.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+                //This is a hack to get AXIS2-2771 working , I had to copy soap headers
+                //  from binding message to AxisMessage
+                List soapHeaders =
+                            (List) axisBindingInMessage.getProperty(WSDL2Constants.ATTR_WSOAP_HEADER);
+                    if (soapHeaders != null) {
+                        for (int i = 0; i < soapHeaders.size(); i++) {
+                            SOAPHeaderMessage headerMessage = (SOAPHeaderMessage) soapHeaders.get(i);
+                            axisInMessage.addSoapHeader(headerMessage);
+                        }
+                    }
 
                 if (isSetMessageQNames) {
                     addQNameReference(axisInMessage, wsdl4jOperation,
@@ -511,6 +521,17 @@
                 copyExtensibleElements(wsdl4jBindingOutput.getExtensibilityElements(),
                                        wsdl4jDefinition,
                                        axisBindingOutMessage, BINDING_OPERATION_OUTPUT);
+
+                //This is a hack to get AXIS2-2771 working , I had to copy soap headers
+                //  from binding message to AxisMessage
+                List soapHeaders =
+                        (List) axisBindingOutMessage.getProperty(WSDL2Constants.ATTR_WSOAP_HEADER);
+                if (soapHeaders != null) {
+                    for (int i = 0; i < soapHeaders.size(); i++) {
+                        SOAPHeaderMessage headerMessage = (SOAPHeaderMessage) soapHeaders.get(i);
+                        axisOutMessage.addSoapHeader(headerMessage);
+                    }
+                }
 
                 if (isSetMessageQNames) {
                     addQNameReference(axisOutMessage, wsdl4jOperation,



---------------------------------------------------------------------
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