本文整理了Java中javax.xml.soap.SOAPElement.setElementQName()
方法的一些代码示例,展示了SOAPElement.setElementQName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPElement.setElementQName()
方法的具体详情如下:
包路径:javax.xml.soap.SOAPElement
类名称:SOAPElement
方法名:setElementQName
[英]Changes the name of this Element
to newName
if possible. SOAP Defined elements such as SOAPEnvelope, SOAPHeader, SOAPBody etc. cannot have their names changed using this method. Any attempt to do so will result in a SOAPException being thrown.
Callers should not rely on the element instance being renamed as is. Implementations could end up copying the content of the SOAPElement
to a renamed instance.
[中]如果可能,将此Element
的名称更改为newName
。SOAPEnvelope、SOAPHeader、SOAPBody等SOAP定义的元素不能使用此方法更改其名称。任何这样做的尝试都将导致抛出SOAPException。
调用者不应依赖正在重命名的元素实例。实现可能最终会将SOAPElement
的内容复制到重命名的实例。
代码示例来源:origin: stackoverflow.com
if (se.getNamespaceURI().equalsIgnoreCase("http://service.plr.mycomp.com/BruttoNettoRechner/1.0")) {
QName qName = new QName("http://service.plr.mycomp.com", "calculateBruttoNetto", "impl");
se.setElementQName(qName);
break;
代码示例来源:origin: net.bpelunit/framework
copy = copy.setElementQName(new QName(null, copy.getLocalName()));
内容来源于网络,如有侵权,请联系作者删除!