Package javax.xml.soap

Examples of javax.xml.soap.SOAPFactory.createName()


      SOAPFactory       factory = SOAPFactory.newInstance(  );

      String            namespace = "http://schemas.xmlsoap.org/ws/2004/03/addressing";
      String            localPart = "To";

      SOAPHeaderElement h = header.addHeaderElement( factory.createName( localPart, "ns1", namespace ) );
      h.addTextNode( consumerEPR.getAddress(  ).getStringValue(  ) );

      String value = "http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification/Notify";

      localPart    = "Action";
View Full Code Here


      h.addTextNode( consumerEPR.getAddress(  ).getStringValue(  ) );

      String value = "http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseNotification/Notify";

      localPart    = "Action";
      h            = header.addHeaderElement( factory.createName( localPart, "ns2", namespace ) );
      h.addTextNode( value );

      ReferencePropertiesType props  = consumerEPR.getReferenceProperties(  );
      XmlCursor               cursor = props.newCursor(  );
View Full Code Here

        StructWithAny yOrig = new StructWithAny();
        yOrig.setName("Name2");
        yOrig.setAddress("Some Other Address");

        SOAPFactory sf = SOAPFactory.newInstance();
        Name elementName = sf.createName("UKAddress", "", "http://apache.org/type_test");
        Name xsiAttrName = sf.createName("type", "xsi", "http://www.w3.org/2001/XMLSchema-instance");
        SOAPElement x = sf.createElement(elementName);
        x.addNamespaceDeclaration("tns", "http://apache.org/type_test");
        x.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x.addAttribute(xsiAttrName, "tns:UKAddressType11");
View Full Code Here

        yOrig.setName("Name2");
        yOrig.setAddress("Some Other Address");

        SOAPFactory sf = SOAPFactory.newInstance();
        Name elementName = sf.createName("UKAddress", "", "http://apache.org/type_test");
        Name xsiAttrName = sf.createName("type", "xsi", "http://www.w3.org/2001/XMLSchema-instance");
        SOAPElement x = sf.createElement(elementName);
        x.addNamespaceDeclaration("tns", "http://apache.org/type_test");
        x.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x.addAttribute(xsiAttrName, "tns:UKAddressType11");
        x.addTextNode("This is the text of the node for the first struct");
View Full Code Here

        x.addNamespaceDeclaration("tns", "http://apache.org/type_test");
        x.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x.addAttribute(xsiAttrName, "tns:UKAddressType11");
        x.addTextNode("This is the text of the node for the first struct");

        Name elementName2 = sf.createName("UKAddress", "", "http://apache.org/type_test");
        Name xsiAttrName2 = sf.createName("type", "xsi", "http://www.w3.org/2001/XMLSchema-instance");
        SOAPElement x2 = sf.createElement(elementName2);
        x2.addNamespaceDeclaration("tns", "http://apache.org/type_test");
        x2.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x2.addAttribute(xsiAttrName2, "tns:UKAddressType22");
View Full Code Here

        x.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x.addAttribute(xsiAttrName, "tns:UKAddressType11");
        x.addTextNode("This is the text of the node for the first struct");

        Name elementName2 = sf.createName("UKAddress", "", "http://apache.org/type_test");
        Name xsiAttrName2 = sf.createName("type", "xsi", "http://www.w3.org/2001/XMLSchema-instance");
        SOAPElement x2 = sf.createElement(elementName2);
        x2.addNamespaceDeclaration("tns", "http://apache.org/type_test");
        x2.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        x2.addAttribute(xsiAttrName2, "tns:UKAddressType22");
        x2.addTextNode("This is the text of the node for the second struct");
View Full Code Here

       
        Iterator attributes = imported.getAllAttributes();
        while (attributes.hasNext()) {
            Name attribute = (Name) attributes.next();
            String value = imported.getAttributeValue(attribute);
            Name newName = factory.createName(attribute.getLocalName(),
                    attribute.getPrefix(), attribute.getURI());
            newChild.addAttribute(newName, value);
        }
       
        Iterator children = imported.getChildElements();
View Full Code Here

                imported.getPrefix(), imported.getNamespaceURI());
       
        org.w3c.dom.NamedNodeMap attributes = imported.getAttributes();
        for(int i=0; i<attributes.getLength(); i++) {
            org.w3c.dom.Node attribute = attributes.item(i);
            Name newName = factory.createName(attribute.getLocalName(),
                    attribute.getPrefix(), attribute.getNamespaceURI());
            newChild.addAttribute(newName, attribute.getNodeValue());
        }
       
        org.w3c.dom.NodeList children = imported.getChildNodes();
View Full Code Here

            String nameSpace = "ns";
            String nameSpaceURI = "http://gizmos.com/NSURI";

            Name order =
                    soapFactory.createName("orderDesk", nameSpace, nameSpaceURI);
            SOAPHeaderElement orderHeader = header.addHeaderElement(order);
            orderHeader.setActor("http://gizmos.com/orders");

            Name shipping =
                    soapFactory.createName("shippingDesk", nameSpace, nameSpaceURI);
View Full Code Here

            SOAPHeaderElement shippingHeader =
                    header.addHeaderElement(shipping);
            shippingHeader.setActor("http://gizmos.com/shipping");

            Name confirmation =
                    soapFactory.createName("confirmationDesk", nameSpace,
                                           nameSpaceURI);
            SOAPHeaderElement confirmationHeader =
                    header.addHeaderElement(confirmation);
            confirmationHeader.setActor("http://gizmos.com/confirmations");
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.