本文整理了Java中org.apache.axiom.soap.SOAPHeader.getChildrenWithName()
方法的一些代码示例,展示了SOAPHeader.getChildrenWithName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPHeader.getChildrenWithName()
方法的具体详情如下:
包路径:org.apache.axiom.soap.SOAPHeader
类名称:SOAPHeader
方法名:getChildrenWithName
暂无
代码示例来源:origin: stackoverflow.com
SOAPHeader header = env.getHeader();
OMChildrenQNameIterator childrenWithName = (OMChildrenQNameIterator) header.getChildrenWithName(omElementauthentication.getQName());
while (childrenWithName.hasNext()) {
org.apache.axiom.om.OMElement omElement = (org.apache.axiom.om.OMElement) childrenWithName.next();
QName mustAnderstandQName = omElement.resolveQName("soapenv:mustUnderstand");
if (mustAnderstandQName == null) {
continue;
}
OMAttribute mustAnderstandAttribute = omElement.getAttribute(mustAnderstandQName);
if (mustAnderstandAttribute == null) {
continue;
}
omElement.removeAttribute(mustAnderstandAttribute);
}
代码示例来源:origin: org.apache.airavata/airavata-message-broker
private void extractInfoFromHeader(ProcessingContext context, SOAPHeader header) {
Iterator ite = header.getChildrenWithName(new QName(NameSpaceConstants.WSNT_NS.getNamespaceURI(),
WsmgCommonConstants.SUBSCRIPTION_ID));
if (ite.hasNext()) {
OMElement identifier = (OMElement) ite.next();
logger.debug("extracted identifier " + identifier.getText());
context.setContextParameter(ContextParameters.SUB_ID, identifier.getText());
}
}
}
代码示例来源:origin: org.apache.airavata/airavata-message-broker
private void extractInfoFromHeader(ProcessingContext context, SOAPHeader header) {
Iterator ite = header.getChildrenWithName(new QName(NameSpaceConstants.WSE_NS.getNamespaceURI(),
WsmgCommonConstants.SUBSCRIPTION_ID));
if (ite.hasNext()) {
OMElement identifier = (OMElement) ite.next();
logger.debug("extracted identifier " + identifier.getText());
context.setContextParameter(ContextParameters.SUB_ID, identifier.getText());
}
}
代码示例来源:origin: org.apache.airavata/messagebroker
private void extractInfoFromHeader(ProcessingContext context, SOAPHeader header) {
Iterator ite = header.getChildrenWithName(new QName(NameSpaceConstants.WSNT_NS.getNamespaceURI(),
WsmgCommonConstants.SUBSCRIPTION_ID));
if (ite.hasNext()) {
OMElement identifier = (OMElement) ite.next();
logger.debug("extracted identifier " + identifier.getText());
context.setContextParameter(ContextParameters.SUB_ID, identifier.getText());
}
}
}
代码示例来源:origin: org.apache.airavata/messagebroker
private void extractInfoFromHeader(ProcessingContext context, SOAPHeader header) {
Iterator ite = header.getChildrenWithName(new QName(NameSpaceConstants.WSE_NS.getNamespaceURI(),
WsmgCommonConstants.SUBSCRIPTION_ID));
if (ite.hasNext()) {
OMElement identifier = (OMElement) ite.next();
logger.debug("extracted identifier " + identifier.getText());
context.setContextParameter(ContextParameters.SUB_ID, identifier.getText());
}
}
代码示例来源:origin: org.apache.axis2/axis2-saaj
public Iterator getChildElements(Name name) {
QName qName = new QName(name.getURI(), name.getLocalName());
return getChildren(omTarget.getChildrenWithName(qName));
}
代码示例来源:origin: apache/axis2-java
public Iterator getChildElements(Name name) {
QName qName = new QName(name.getURI(), name.getLocalName());
return getChildren(omTarget.getChildrenWithName(qName));
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineHeaderElements(QName name) throws SoapHeaderException {
try {
return new AxiomSoapHeaderElementIterator(getAxiomHeader().getChildrenWithName(name));
}
catch (OMException ex) {
throw new AxiomSoapHeaderException(ex);
}
}
代码示例来源:origin: spring-projects/spring-ws
@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineHeaderElements(QName name) throws SoapHeaderException {
try {
return new AxiomSoapHeaderElementIterator(getAxiomHeader().getChildrenWithName(name));
}
catch (OMException ex) {
throw new AxiomSoapHeaderException(ex);
}
}
代码示例来源:origin: apache/servicemix-bundles
@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineHeaderElements(QName name) throws SoapHeaderException {
try {
return new AxiomSoapHeaderElementIterator(getAxiomHeader().getChildrenWithName(name));
}
catch (OMException ex) {
throw new AxiomSoapHeaderException(ex);
}
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineHeaderElements(QName name) throws SoapHeaderException {
try {
return new AxiomSoapHeaderElementIterator(getAxiomHeader().getChildrenWithName(name));
}
catch (OMException ex) {
throw new AxiomSoapHeaderException(ex);
}
}
代码示例来源:origin: apache/axis2-java
if (replaceHeaders) {
QName qname = new QName(addressingNamespace, name, WSA_DEFAULT_PREFIX);
Iterator<OMElement> iterator = header.getChildrenWithName(qname);
while (iterator.hasNext()) {
iterator.next();
代码示例来源:origin: org.apache.rampart/rampart-core
.hasNext();) {
QName name = (QName) iter.next();
Iterator omKids = header.getChildrenWithName(name);
if(omKids.hasNext()) {
((SOAPHeaderBlock)omKids.next()).setProcessed();
代码示例来源:origin: org.apache.rampart/rampart-core
.hasNext();) {
QName name = (QName) iter.next();
Iterator omKids = header.getChildrenWithName(name);
if(omKids.hasNext()) {
((SOAPHeaderBlock)omKids.next()).setProcessed();
内容来源于网络,如有侵权,请联系作者删除!