这个SOAP请求有效吗?

时间:2014-03-31 08:13:59

标签: soap glassfish-4

soap客户端(Control-M)生成以下标题:

<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:CTMOP="http://example.com/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Body>
        <CTMOP:importFile xmlns="http://example.com/">
            <arg0>abc.pdf</arg0>
            <arg1>def.pdf</arg1>
        </CTMOP:importFile>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Glassfish 4无法处理此请求。

Received WS-I BP non-conformant Unquoted SoapAction HTTP header

如果从importFile操作中删除xmlns="http://example.com/方法 由Glassfish 4处理。所以这有效:

<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:CTMOP="http://example.com/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Body>
        <CTMOP:importFile>
            <arg0>abc.pdf</arg0>
            <arg1>def.pdf</arg1>
        </CTMOP:importFile>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

它是Glassfish 4错误还是SOAP请求无效?

0 个答案:

没有答案