Examples of removeNamespaceDeclaration()


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

      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
     
View Full Code Here

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

      if (getFrom() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
        epr.setRootQName(ADDR.getFromQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:ReplyTo
      if (getReplyTo() != null)
View Full Code Here

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

      if (getReplyTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
        epr.setRootQName(ADDR.getReplyToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:FaultTo
      if (getFaultTo() != null)
View Full Code Here

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

      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
     
View Full Code Here

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

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

/* 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

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

/* 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

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

                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

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

                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

Examples of nu.xom.Element.removeNamespaceDeclaration()

   
    public void testRemoveNullPrefix() {
        Element e = new Element("pre:test", "http://www.example.com/");
        e.addNamespaceDeclaration("", "http://www.example.net");
        e.removeNamespaceDeclaration(null);
        assertEquals("", e.getNamespaceURI(""));  
    }

   
    public void testBindXMLNSPrefix() {
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.