Soap Error: WSWS3147E: Error: no SOAPAction header!

来源:互联网 发布:微软办公软件多少钱 编辑:程序博客网 时间:2024/05/21 11:34

当soap请求的发出的时候,报如下错误:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Header/>

<soapenv:Body>

<soapenv:Fault>

<faultcode>Client.NoSOAPAction</faultcode>

<faultstring>WSWS3147E: Error: no SOAPAction header!</faultstring>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

主要是因为在soap的请求头中缺少SOAPAction: "" 的信息,加上这个信息就可以了,

java中添加这条信息如下:


out.println("SOAPAction: \"\"");




原创粉丝点击