Antoine,

It looks like the difference is that the transport used is HTTP/1.1 with
Transfer-encoding="Chunked".
The number it adds is used to separate chunks.

Try configuring your client to use HTTP/1.0 in the axis2.xml file.

By default, it uses HTTP/1.1 which uses chunk by default also...

<transportSender name="http" class="axis2_http_sender">
        *<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>*
      <parameter name="xml-declaration" insert="false"/>
      <!--parameter name="Transfer-Encoding">chunked</parameter-->
      <!--parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080"
locked="true"/-->
    </transportSender>

    <transportSender name="https" class="axis2_http_sender">
      *<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>*
      <parameter name="xml-declaration" insert="false"/>
    </transportSender>


Change it to :

<transportSender name="http" class="axis2_http_sender">
        *<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>*
      <parameter name="xml-declaration" insert="false"/>
      <!--parameter name="Transfer-Encoding">chunked</parameter-->
      <!--parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080"
locked="true"/-->
    </transportSender>

    <transportSender name="https" class="axis2_http_sender">
      *<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>*
      <parameter name="xml-declaration" insert="false"/>
    </transportSender>



Guillaume Devianne
08-428.1651


On Wed, May 23, 2012 at 2:39 AM, Antoine Louiset <antoine.loui...@yousign.fr
> wrote:

>  Hi everyone,
>
> I have a problem with WSO2 framework for PHP. I create a client which call
> a web service. The answer is a string, the length of this string in my
> example is 47300 characters and could be bigger.
>
> In this string, I have 4 integers which have been added by wso2. For
> example, this is a part of my string response :
>
> [...]
> MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMA
> 2000
> DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
> [...]
>
>
> The integer 2000 should not be there... Therefore, my string result is not
> correct and I can not exploit it.
>
> I know that this is wso2 which add this number beacause when I use the
> same web service with soapui, I do not have these integers and my response
> is correct.
>
> Is there a buffer or a limit size for the response. Is this error known ?
>
> Thanks a lot for your help.
>
> Have a nice day.
>
> Best regards,
>
> --
> Antoine Louiset
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to