Examples of addNamespaceDeclaration()


Examples of org.jboss.ws.core.soap.SOAPBodyElementDoc.addNamespaceDeclaration()

/* 777 */     contentElement.setParamMetaData(paramMetaData);
/*     */
/* 779 */     if (paramMetaData.isSOAPArrayParam())
/*     */     {
/* 781 */       this.log.trace("Add parameter as SOAP encoded Array");
/* 782 */       contentElement.addNamespaceDeclaration("soap11-enc", "http://schemas.xmlsoap.org/soap/encoding/");
/*     */     }
/*     */
/* 787 */     if ((paramMetaData.isXOP()) && (XOPContext.isMTOMEnabled()))
/*     */     {
/* 789 */       this.log.trace("Add parameter as XOP");
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPContentElement.addNamespaceDeclaration()

      contentElement.setParamMetaData(paramMetaData);

      if (paramMetaData.isSOAPArrayParam())
      {
         log.trace("Add parameter as SOAP encoded Array");
         contentElement.addNamespaceDeclaration(Constants.PREFIX_SOAP11_ENC, Constants.URI_SOAP11_ENC);
      }

      // When a potential xop parameter is detected and MTOM is enabled
      // we flag the SOAP message as a XOP package
      if (paramMetaData.isXOP() && XOPContext.isMTOMEnabled())
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPHeaderElementImpl.addNamespaceDeclaration()

/* 777 */     contentElement.setParamMetaData(paramMetaData);
/*     */
/* 779 */     if (paramMetaData.isSOAPArrayParam())
/*     */     {
/* 781 */       this.log.trace("Add parameter as SOAP encoded Array");
/* 782 */       contentElement.addNamespaceDeclaration("soap11-enc", "http://schemas.xmlsoap.org/soap/encoding/");
/*     */     }
/*     */
/* 787 */     if ((paramMetaData.isXOP()) && (XOPContext.isMTOMEnabled()))
/*     */     {
/* 789 */       this.log.trace("Add parameter as XOP");
View Full Code Here

Examples of org.jdom.Element.addNamespaceDeclaration()

  public Document generateGetCoverageDoc()
  {
    // Coverages (owcs) [1]
    Element coveragesElem = new Element( "Coverages", owcsNS );
    coveragesElem.addNamespaceDeclaration( owsNS );
    coveragesElem.addNamespaceDeclaration( xlinkNS );

    coveragesElem.addContent( genCoverage( this.identifier ) );

    return new Document( coveragesElem );
View Full Code Here

Examples of org.jdom2.Element.addNamespaceDeclaration()

  public void testOutputElementNamespaces() {
    String txt = "<ns:root xmlns:ns=\"myns\" xmlns:ans=\"attributens\" xmlns:two=\"two\" ans:att=\"val\"/>";
    Element emt = new Element("root", Namespace.getNamespace("ns", "myns"));
    Namespace ans = Namespace.getNamespace("ans", "attributens");
    emt.setAttribute(new Attribute("att", "val", ans));
    emt.addNamespaceDeclaration(Namespace.getNamespace("two", "two"));
    checkOutput(emt,
        txt, txt,txt, txt, txt);
  }

  @Test
View Full Code Here

Examples of org.jfree.xmlns.common.AttributeList.addNamespaceDeclaration()

    try
    {
      // Write the settings ..
      final AttributeList rootAttributes = new AttributeList();
      rootAttributes.addNamespaceDeclaration("office", OfficeNamespaces.OFFICE_NS);
      rootAttributes.addNamespaceDeclaration("config", OfficeNamespaces.CONFIG);
      rootAttributes.addNamespaceDeclaration("ooo", OfficeNamespaces.OO2004_NS);
      rootAttributes.setAttribute(OfficeNamespaces.OFFICE_NS, "version", "1.0");
      final OutputStream outputStream = getOutputRepository().createOutputStream("settings.xml","text/xml");
      final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), createTagDescription());
View Full Code Here

Examples of org.jibx.schema.elements.AnnotatedBase.addNamespaceDeclaration()

               
                // add any necessary namespace declarations
                AnnotatedBase comp = (AnnotatedBase)iter.next();
                for (Iterator jter = uritoprefix.keySet().iterator(); jter.hasNext();) {
                    String uri = (String)jter.next();
                    comp.addNamespaceDeclaration((String)uritoprefix.get(uri), uri);
                }
               
                // write the documentation
                DocumentationVisitor visitor = new DocumentationVisitor(comptoclas, clasname, comp, dropanno, ref,
                    indexes, prefixes);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    {
      throw new IllegalArgumentException();
    }

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

      throw new IllegalArgumentException();
    }

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("wizard", AttributeNames.Wizard.NAMESPACE);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    }

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("wizard", AttributeNames.Wizard.NAMESPACE);
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.