Examples of examineAllHeaderElements()


Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

            SOAPHeader header = env.getHeader();
           
            if (header != null) {
                Unmarshaller unmarshaller =
                    getJAXBContext().createUnmarshaller();
                Iterator headerElements = header.examineAllHeaderElements();
                while (headerElements.hasNext()) {
                    SOAPHeaderElement headerElement =
                        (SOAPHeaderElement)headerElements.next();
                    Name headerName = headerElement.getElementName();
                    String localName = headerName.getLocalName();
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

        try {
            List<String> wsaHeaders = new ArrayList<String>();
            SOAPHeader header =
                context.getMessage().getSOAPPart().getEnvelope().getHeader();
            if (header != null) {
                Iterator headerElements = header.examineAllHeaderElements();
                while (headerElements.hasNext()) {
                    Name headerName = ((SOAPHeaderElement)headerElements.next()).getElementName();
                    if (isAddressingNamespace(headerName.getURI())) {
                        wsaHeaders.add(headerName.getLocalName());
                    }
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

        // check all expected headers are present

        for (String name : names) {
            boolean found = false;
            Iterator headerElements = header.examineAllHeaderElements();
            while (headerElements.hasNext()) {
                SOAPHeaderElement headerElement = (SOAPHeaderElement)headerElements.next();
                Name headerName = headerElement.getElementName();
                String localName = headerName.getLocalName();
                if (headerName.getURI().equals(RMUtils.getRMConstants().getNamespaceURI())
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

            assertTrue("Could not find header element " + name, found);
        }

        // no other headers should be present

        Iterator headerElements = header.examineAllHeaderElements();
        while (headerElements.hasNext()) {
            SOAPHeaderElement headerElement = (SOAPHeaderElement)headerElements.next();
            Name headerName = headerElement.getElementName();
            String localName = headerName.getLocalName();
            assertTrue(RMUtils.getRMConstants().getNamespaceURI().equals(headerName.getURI())
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

        try {
            SOAPEnvelope env = message.getSOAPPart().getEnvelope();
            SOAPHeader header = env.getHeader();
            if (header != null) {
                Unmarshaller unmarshaller = null;
                Iterator headerElements = header.examineAllHeaderElements();
                while (headerElements.hasNext()) {
                    SOAPHeaderElement headerElement =
                        (SOAPHeaderElement)headerElements.next();
                    Name headerName = headerElement.getElementName();
                    String headerURI = headerName.getURI();
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

            SOAPHeader header =
                context.getMessage().getSOAPPart().getEnvelope().getHeader();
            if (header != null) {
                System.out.println(getDirection(context)
                                   + " WS-Addressing headers");
                Iterator headerElements = header.examineAllHeaderElements();
                while (headerElements.hasNext()) {
                    SOAPHeaderElement headerElement =
                        (SOAPHeaderElement)headerElements.next();
                    Name headerName = headerElement.getElementName();
                    if (WSA_NAMESPACE_URI.equals(headerName.getURI())) {
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

     */
    private void discardWSHeaders(SOAPMessageContext context) {
        try {
            SOAPHeader header = 
                context.getMessage().getSOAPPart().getEnvelope().getHeader();
            Iterator headerElements = header.examineAllHeaderElements();
            while (headerElements.hasNext()) {
                SOAPHeaderElement headerElement =
                    (SOAPHeaderElement)headerElements.next();
                Name headerName = headerElement.getElementName();
                if (WSRM_NAMESPACE_URI.equals(headerName.getURI())
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

    protected String getAction(SOAPMessageContext context) {
        String action = null;
        try {
            SOAPHeader header = 
                context.getMessage().getSOAPPart().getEnvelope().getHeader();
            Iterator headerElements = header.examineAllHeaderElements();
            while (headerElements.hasNext()) {
                SOAPHeaderElement headerElement =
                    (SOAPHeaderElement)headerElements.next();
                Name headerName = headerElement.getElementName();
                if (WSA_NAMESPACE_URI.equals(headerName.getURI())
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

    }

    protected String getAction(SOAPMessage msg) throws Exception {
        SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
        SOAPHeader header = env.getHeader();
        Iterator headerElements = header.examineAllHeaderElements();
        while (headerElements.hasNext()) {
            SOAPHeaderElement headerElement = (SOAPHeaderElement)headerElements.next();
            Name headerName = headerElement.getElementName();
            String localName = headerName.getLocalName();
            if ((headerName.getURI().equals(org.objectweb.celtix.bus.ws.addressing.Names.WSA_NAMESPACE_NAME)
View Full Code Here

Examples of javax.xml.soap.SOAPHeader.examineAllHeaderElements()

    }

    protected SOAPElement getSequence(SOAPMessage msg) throws Exception {
        SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
        SOAPHeader header = env.getHeader();
        Iterator headerElements = header.examineAllHeaderElements();
        while (headerElements.hasNext()) {
            SOAPHeaderElement headerElement = (SOAPHeaderElement)headerElements.next();
            Name headerName = headerElement.getElementName();
            String localName = headerName.getLocalName();
            if (headerName.getURI().equals(Names.WSRM_NAMESPACE_NAME)
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.