使用soap請求服務(wù)時(shí),如果xml中使用了xsi:type 屬性,可能會(huì)遇到如下報(bào)錯(cuò):
xsi:type http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound
這是因?yàn)閤ml缺少xsi聲明。
解決辦法:在body標(biāo)簽上加上聲明,如下:
<Body xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
即可。