Author: veithen
Date: Sun May 23 16:17:42 2010
New Revision: 947440

URL: http://svn.apache.org/viewvc?rev=947440&view=rev
Log:
Fixed an issue in the UDP transport that prevents it from correctly indicating 
the end of the message to the StAX parser. Regression test will follow 
(reproducing this bug with the testkit also reveals related problems in other 
transports).

Modified:
    
axis/axis2/java/transports/trunk/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java

Modified: 
axis/axis2/java/transports/trunk/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/transports/trunk/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java?rev=947440&r1=947439&r2=947440&view=diff
==============================================================================
--- 
axis/axis2/java/transports/trunk/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
 (original)
+++ 
axis/axis2/java/transports/trunk/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
 Sun May 23 16:17:42 2010
@@ -124,7 +124,7 @@ public class UDPSender extends AbstractT
         // create the soap envelope
         try {
             MessageContext respMessageContext = 
messageContext.getOperationContext().getMessageContext(WSDL2Constants.MESSAGE_LABEL_IN);
-            InputStream inputStream = new ByteArrayInputStream(inputBuffer, 0, 
inputBuffer.length);
+            InputStream inputStream = new ByteArrayInputStream(inputBuffer, 0, 
packet.getLength());
             SOAPEnvelope envelope = 
TransportUtils.createSOAPMessage(respMessageContext, inputStream, contentType);
             respMessageContext.setEnvelope(envelope);
         } catch (XMLStreamException e) {


Reply via email to