axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject svn commit: r208895 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
Date Sun, 03 Jul 2005 08:08:59 GMT
Author: hemapani
Date: Sun Jul  3 01:08:58 2005
New Revision: 208895

URL: http://svn.apache.org/viewcvs?rev=208895&view=rev
Log:
make raw xml reciver for with the case the fist element name of a rpc case is method-name
+ Response

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java?rev=208895&r1=208894&r2=208895&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
Sun Jul  3 01:08:58 2005
@@ -88,7 +88,8 @@
                     } else if (WSDLService.STYLE_RPC.equals(style)) {
                         OMElement operationElement = msgContext.getEnvelope().getBody().getFirstElement();
                         if (operationElement != null) {
-                            if (method.getName().equals(operationElement.getLocalName()))
{
+                            if (method.getName().equals(operationElement.getLocalName())

+                               || operationElement.getLocalName() != null && operationElement.getLocalName().startsWith(method.getName())
) {
                                 omElement = operationElement.getFirstElement();
                             } else {
                                 throw new AxisFault("Operation Name does not match the immediate
child name, expected "+ method.getName() + " but get " + operationElement.getLocalName());



Mime
View raw message