axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/providers/java MsgProvider.java
Date Sat, 17 Jan 2004 16:44:54 GMT
dims        2004/01/17 08:44:54

  Modified:    java/src/org/apache/axis/providers/java MsgProvider.java
  Log:
  My Bad. This should fix all scenarios outlined by dug for "Bug 26208 - Problem with parsing
of body too soon"
  
  Revision  Changes    Path
  1.38      +11 -3     ws-axis/java/src/org/apache/axis/providers/java/MsgProvider.java
  
  Index: MsgProvider.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/providers/java/MsgProvider.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- MsgProvider.java	17 Jan 2004 05:24:52 -0000	1.37
  +++ MsgProvider.java	17 Jan 2004 16:44:54 -0000	1.38
  @@ -63,8 +63,10 @@
   import org.apache.axis.i18n.Messages;
   import org.apache.axis.message.SOAPBodyElement;
   import org.apache.axis.message.SOAPEnvelope;
  +import org.apache.axis.message.MessageElement;
   import org.w3c.dom.Document;
   import org.w3c.dom.Element;
  +import org.w3c.dom.Node;
   
   import javax.xml.namespace.QName;
   import java.lang.reflect.Method;
  @@ -111,9 +113,15 @@
           ServiceDesc serviceDesc = service.getServiceDescription();
           
           if (operation == null) {
  -            QName qname = new QName(reqEnv.getBody().getNamespaceURI(),
  -                    reqEnv.getBody().getLocalName());
  -            operation = serviceDesc.getOperationByElementQName(qname);
  +            Vector bodyElements = reqEnv.getBodyElements();
  +            if(bodyElements.size() > 0) {
  +                MessageElement element = (MessageElement) bodyElements.get(0);
  +                if (element != null) {
  +                    QName qname = new QName(element.getNamespaceURI(),
  +                            element.getLocalName());
  +                    operation = serviceDesc.getOperationByElementQName(qname);
  +                }
  +            }
           }
   
           if (operation == null) {
  
  
  

Mime
View raw message