2014-04-22 119 views
0

我正在使用stanalone默认配置的wso2 esb 4.8.1的全新安装。 当我发送SOAP请求给我的后端(用肥皂精简版perl的服务),POST请求的主体根据tcpdump的被截断这样的:wso2 ESB请求被截断

SOAPAction:  "" 
Content-Type: text/xml 
Content-Length: 511 
Host:   192.168.11.234:8181 
Connection:  Keep-Alive 
User-Agent:  Synapse-PT-HttpComponents-NIO 

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="htt 
p://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soap:Body> 
    <deleteAccountForHost xmlns="AbcdeHostingPhysicalHostManagerCPanelService"> 
    <host xsi:type="xsd:string">zs000.abcde.net</host> 
    <user xsi:type="xsd:string">tstauto</user> 
</deleteAccountForHost> 
    </soap:Body> 
</soap:Envel 

你可以看到,关闭标签'</soap:Envel'被截断。

但是,当我启用SOAP-tracer请求正文变得有效。 我使用PT运输。我试图将交通转移到nhttp,这个问题似乎消失了。

所以问题是:如何配置PT传输以避免这种奇怪的行为?

UPD1: 似乎设置只有当财产FORCE_HTTP_1.0和运输是PT

回答

0

我得到了同样的问题,但我设置DISABLE_CHUNKING出现问题。

许多尝试后我测试,禁用分块或迫使HTTP 1.0导致截短的请求。

我用WSO2 ESB版本4.8.1,客户端是了SoapUI 5.0.0或从SoapClient的PHP 5.5.11。

当我使用“试试这个服务”的ESB,然后请求不被截断。

从HTTP直通运输切换到HTTP-NIO运输服务背后端点后收到完整的申请,但我不能下载租户的WSDL。