You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/03/22 16:34:57 UTC

[jira] Closed: (AXIS-798) Documents returned by Axis being truncated

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Mon, 22 Mar 2004 7:34 AM

Need more info to recreate the problem.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-798

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-798
    Summary: Documents returned by Axis being truncated
       Type: Bug

     Status: Closed
 Resolution: CANNOT REPRODUCE

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.0

   Assignee: 
   Reporter: Chris Garrison

    Created: Fri, 4 Apr 2003 3:42 PM
    Updated: Mon, 22 Mar 2004 7:34 AM
Environment: Operating System: Windows XP
Platform: PC

Description:
I am trying to return a document via Axis Web Service and it is being truncated.

We have isolated the problem to the server side: Here is the code.

package xxxxxx.xxxxx;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.apache.axis.message.SOAPBodyElement;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class XXXXXX {

    /**
     * 
     */ 
    
    public Element[] doXXXXX(Element[] elem) throws Exception {
    	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		DocumentBuilder builder = factory.newDocumentBuilder();
		
		System.err.println("parsing file");
 		Document document = builder.parse( "c:/temp/testHydro.xml" );
 		System.err.println("parsing complete");
 		Element elDoc = document.getDocumentElement();
    	Element[] elarray = new Element[1];
    	elarray[0]=elDoc;
        return elarray;
    }

}

The code doesn't do anything with the incoming element. It simply returns a 
file from c:/temp

Troubleshooting:
The first file I tried to return:
orig file size: 1164 kb
received file size: 1152 kb

second test file:
orig file: 2328 kb
received file: 2315

third test:
orig file: 582 kb
received file: 568 kb

Here is the deploy.wsdd in case you need it:

<deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/" 
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
            xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
  <!-- note that either style="message" OR provider="java:MSG" both work -->
  <service name="XXXXXXXX" style="message">
    <parameter name="className" value="XXXXXX.XXXXX.XXXXX" />
    <parameter name="allowedMethods" value="doXXXXXXXXX" />
  </service>
</deployment>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira