Package javax.xml.soap

Examples of javax.xml.soap.SOAPElement.removeNamespaceDeclaration()


/* 228 */       if (getFrom() != null)
/*     */       {
/* 230 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
/* 231 */         epr.setRootQName(ADDR.getFromQName());
/* 232 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 233 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 234 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 238 */       if (getReplyTo() != null)
/*     */       {
View Full Code Here


/* 238 */       if (getReplyTo() != null)
/*     */       {
/* 240 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
/* 241 */         epr.setRootQName(ADDR.getReplyToQName());
/* 242 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 243 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 244 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 248 */       if (getFaultTo() != null)
/*     */       {
View Full Code Here

/* 248 */       if (getFaultTo() != null)
/*     */       {
/* 250 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
/* 251 */         epr.setRootQName(ADDR.getFaultToQName());
/* 252 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 253 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 254 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 257 */       appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
/*     */
View Full Code Here

                if (header != null) {
                    String prefixAtHeader = header.getPrefix();
                    SOAPElement env = getEnvelope();
                    header.detachNode();
                    if (prefixAtHeader != null && !prefixAtHeader.equals(env.getPrefix())) {
                        env.removeNamespaceDeclaration(prefixAtHeader);
                    }
                }
            }
        } catch (SOAPException e) {
            throw new XMLStreamException(e);
View Full Code Here

                if (header != null) {
                    String prefixAtHeader = header.getPrefix();
                    SOAPElement env = getEnvelope();
                    header.detachNode();
                    if (prefixAtHeader != null && !prefixAtHeader.equals(env.getPrefix())) {
                        env.removeNamespaceDeclaration(prefixAtHeader);
                    }
                }
            }
        } catch (SOAPException e) {
            throw new XMLStreamException(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.