请教!急!急!急!
一条soap消息如下
<?xml version='1.0' encoding='UTF-8'?>
<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Header>
</env:Header>
<env:Body>
<Indict>
<IndictReq>
.......
</IndictReq>
</Indict>
</env:Body>
</env:Envelope>
发送给weblogic 服务器,可以,正常!
但是发送给tomcat服务器的时候就不行,非要改成
<?xml version='1.0' encoding='UTF-8'?>
<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Header>
</env:Header>
<env:Body>
<Indict xmlns="http://XXX.XXX.XXX/XXX">
<IndictReq>
.......
</IndictReq>
</Indict>
</env:Body>
</env:Envelope>
请注意加上了一个命名空间,但是我们服务器(不管是WEBLOGIC还是tomcat)的WSDL里面都定义了默认的命名空间的.