Examples of declareNamespace()


Examples of org.apache.axis2.soap.SOAPHeader.declareNamespace()

        reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
        reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
        reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");

        SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
        OMNamespace ns = header.declareNamespace("http://soapinterop.org/xsd", "ns0");
        header.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
        SOAPHeaderBlock blk1 = header.addHeaderBlock("Header1", ns);
        OMElement h1Value1 = omfactory.createOMElement("string", ns);
        h1Value1.addChild(omfactory.createText("String at header1"));
        OMElement h1Value2 = omfactory.createOMElement("int", ns);
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.declareNamespace()

    private Stanza buildResponse(IQStanza stanza, Entity from, String commandNode, String sessionId,
                                 final String status, XMLElement result,
                                 List<Note> notes, boolean isPrevAllowed, boolean isNextAllowed) {
        final StanzaBuilder iqStanza = StanzaBuilder.createIQStanza(null, from, IQStanzaType.RESULT, stanza.getID());
        iqStanza.startInnerElement("command");
        iqStanza.declareNamespace("", NamespaceURIs.XEP0050_ADHOC_COMMANDS);
        iqStanza.addAttribute("node", commandNode);
        iqStanza.addAttribute("sessionid", sessionId);
        iqStanza.addAttribute("status", status);
        if (notes != null && notes.size() > 0) {
            for (Note note : notes) {
View Full Code Here

Examples of org.apache.ws.commons.om.OMElement.declareNamespace()

                }

                OMElement result = (OMElement) method.invoke(obj, args);
                AxisService service = msgContext.getAxisService();
                service.getTargetNamespace();
                result.declareNamespace(service.getTargetNamespace(),
                        service.getTargetNamespacePrefix());
                OMElement bodyContent;

                SOAPFactory fac = getSOAPFactory(msgContext);
                bodyContent = result;
View Full Code Here

Examples of org.apache.ws.commons.soap.SOAPEnvelope.declareNamespace()

        String str_ST_index = Integer.toString(asyncClient.getStartIndex());

        defNs = OMAbstractFactory.getSOAP11Factory().createOMNamespace("", "");
        SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();
        SOAPEnvelope envelope = omFactory.getDefaultEnvelope();
        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/",
                "soapenv");
        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/",
                "SOAP-ENC");
        envelope.declareNamespace("http://www.w3.org/2001/XMLSchema-instance",
                "xsi");
View Full Code Here

Examples of org.exist.xquery.XQueryContext.declareNamespace()

      context = new XQueryContext(broker.getBrokerPool(), accessCtx);
      context.setStaticallyKnownDocuments(documentSet);
      Map.Entry<String, String> namespaceEntry;
      for (final Iterator<Map.Entry<String, String>> i = namespaces.entrySet().iterator(); i.hasNext();) {
        namespaceEntry = (Map.Entry<String, String>) i.next();
        context.declareNamespace(
          namespaceEntry.getKey(),
          namespaceEntry.getValue());
      }
      Map.Entry<String, Object> entry;
      for (final Iterator<Map.Entry<String, Object>> i = variables.entrySet().iterator(); i.hasNext(); ) {
View Full Code Here

Examples of org.geotools.gml.producer.FeatureTransformer.FeatureTypeNamespaces.declareNamespace()

            features = results.getFeatures(resIndex);
            meta = results.getTypeInfo(resIndex);
            namespace = meta.getDataStoreInfo().getNameSpace();

            String uri = namespace.getUri();
            ftNames.declareNamespace(features.getSchema(), namespace.getPrefix(), uri);

            if (ftNamespaces.containsKey(uri)) {
                String location = (String) ftNamespaces.get(uri);
                ftNamespaces.put(uri, location + "," + meta.getName());
            } else {
View Full Code Here

Examples of org.jboss.xb.binding.AbstractMarshaller.declareNamespace()

      // we need to specify what elements are top most (roots) providing namespace URI, prefix and local name
      marshaller.addRootElement("http://example.org/ns/books/", "", "book");

      // declare default namespace
      marshaller.declareNamespace(null, "http://example.org/ns/books/");

      // add schema location by declaring xsi namespace and adding xsi:schemaReader attribute
      marshaller.declareNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
      marshaller.addAttribute("xsi",
         "schemaReader",
View Full Code Here

Examples of org.jboss.xb.binding.XercesXsMarshaller.declareNamespace()

      // we need to specify what elements are top most (roots) providing namespace URI, prefix and local name
      marshaller.addRootElement(PRODUCER_NAMESPACE, "", "producer-configuration");

      // declare default namespace
      marshaller.declareNamespace("wpc", PRODUCER_NAMESPACE);

      // add schema location by declaring xsi namespace and adding xsi:schemaLocation attribute
      marshaller.declareNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
      marshaller.addAttribute("xsi", "schemaLocation", "string",
         PRODUCER_NAMESPACE + " http://www.jboss.org/portal/xsd/" + PRODUCER_XSD);
View Full Code Here

Examples of org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.declareNamespace()

      String ns = "http://www.jboss.org/test/xml/collections";

      MarshallerImpl marshaller = new MarshallerImpl();
      marshaller.addRootElement(new QName(ns, "collections"));
      marshaller.setRootTypeQName(new QName(ns, "collections"));
      marshaller.declareNamespace(null, ns);

      String xsd = getFullPath("xml/collections.xsd");
      StringWriter xml = new StringWriter();
      marshaller.marshal(xsd, new MappingObjectModelProvider(), Collections.getInstance(), xml);
View Full Code Here

Examples of org.pdf4j.saxon.query.StaticQueryContext.declareNamespace()

            sqc.setRequiredContextItemType(contextItemStaticType.getSaxonItemType());
        }
        for (Iterator iter = namespaces.keySet().iterator(); iter.hasNext();) {
            String prefix = (String)iter.next();
            String uri = (String)namespaces.get(prefix);
            sqc.declareNamespace(prefix, uri);
        }
        return sqc;
    }

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.