【发布时间】:2013-06-13 19:12:11
【问题描述】:
这个被接受(显式声明的身份验证命名空间)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:auth="http://foo.pro/Auth/">
<soapenv:Header/>
<soapenv:Body>
<auth:login>
<login>xxx</login>
<password>xxxx</password>
</auth:login>
</soapenv:Body>
</soapenv:Envelope>
这个给出“Unmarshalling Error: unexpected element (uri:"http://foo.pro/Auth/", local:"login")。预期的元素是 ,"
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body> <login xmlns="http://foo.pro/Auth/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<login>login</login>
<password>password</password>
</login></soap:Body>
</soap:Envelope>
客户端无法修复,应该在cxf服务端做点什么
【问题讨论】:
标签: java xml soap cxf xml-namespaces