You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by PATRAN QC LOL <pa...@yahoo.com> on 2010/03/25 00:00:15 UTC

Please Ignore Re: Bug Headsup: CXF Appending Extra Data to Soap Envelope

Please ignore.  




________________________________
From: PATRAN QC LOL <pa...@yahoo.com>
To: users@cxf.apache.org
Sent: Wed, March 24, 2010 10:15:51 AM
Subject: Bug Headsup: CXF Appending Extra Data to Soap Envelope

Hi,

I think we found a bug in CXF 2.2.5.

CXF 2.2.5 Jax-WS service running in JBOSS 5.1.5.GA appends extra data to the soap envelope.  

"<soap:envelope>...</soap:envelope>extra data"

The extra data is a truncated duplication of the actual soap:envelope message itself.

Related Issue:
https://issues.apache.org/jira/browse/CXF-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660851#action_12660851

Sending an echo request with a message with a length <= 7958  is a-ok.  Any message longer than 7958 (or try a big message) will cause extra data to be appended to </soap:envelope>

Code to reproduce:

public class EchoService
{
    public EchoRsp echo(EchoRequest request)
    {
        EchoRsp rsp = new EchoRsp();
        rsp.setMessage(request.getMessage());
        return(rsp);
    }
}

public class EchoRequest
{
    public EchoRequest()
    {
    }
    public String getMessage()
    {
        return message;
    }
    public void setMessage(String message)
    {
        this.message = message;
    }
    private String message;
}

public class EchoRsp
{
    public EchoRsp()
    {
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }
    private String message;
}