【发布时间】:2015-02-16 10:06:09
【问题描述】:
我已经基于http://spring.io/guides/gs/producing-web-service/ 的示例构建了一个Spring WS 网络服务。响应包含我的命名空间,前缀为“ns2”。
xmlns:ns2="http://www.mycompany.com/somewhere"
肥皂反应
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns2:mitteilungResponse xmlns:ns2="http://www.mycompany.com/somewhere">
<ns2:responseContent>
<ns2:message>Hello World!</ns2:message>
</ns2:responseContent>
</ns2:mitteilungResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
是否可以将该前缀重命名为“myprefix”?如何?有人吗?
【问题讨论】:
标签: spring web-services jaxb xml-namespaces spring-ws