Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPHeaderBlock.addAttribute()


            SOAPFactory soapFactory = OMAbstractFactory.getSOAP11Factory();
            OMNamespace omNs = soapFactory.createOMNamespace(
                    ActivityPublisherConstants.BAM_ACTIVITY_ID_HEADER_NAMESPACE_URI, "ns");
            SOAPHeaderBlock soapHeaderBlock = envelope.getHeader().addHeaderBlock(
                    "BAMEvent", omNs);
            soapHeaderBlock.addAttribute("activityID", ACTIVITY_ID, null);
            synCtx.setEnvelope(envelope);
        } catch (Exception ignored) {

        }
View Full Code Here


                    if (synapseContext.getProperty("bam_activity_id") == null) { // this if
                        // condition we add
                        // to track failure messages coming from
                        // DS.That is a new message. So, doesn't have activityID.Getting activityID
                        // from the synapsecontext.property
                        soapHeaderBlock.addAttribute("activityID", uuid_string, null);
                        synapseContext.setProperty("bam_activity_id", uuid_string);
                    } else {
                        soapHeaderBlock.addAttribute("activityID", (String) synapseContext
                                .getProperty("bam_activity_id"), null);
                    }
View Full Code Here

                        // DS.That is a new message. So, doesn't have activityID.Getting activityID
                        // from the synapsecontext.property
                        soapHeaderBlock.addAttribute("activityID", uuid_string, null);
                        synapseContext.setProperty("bam_activity_id", uuid_string);
                    } else {
                        soapHeaderBlock.addAttribute("activityID", (String) synapseContext
                                .getProperty("bam_activity_id"), null);
                    }
                    bampropertyElement.addAttribute("name", propName, null);
                    bampropertyElement.addAttribute("value", propValue, null);
                    soapHeaderBlock.addChild(bampropertyElement);
View Full Code Here

                    if (synapseContext.getProperty("bam_activity_id") == null) { // this if
                        // condition we add
                        // to track failure messages coming from
                        // DS.That is a new message. So, doesn't have activityID.Getting activityID
                        // from the synapsecontext.property
                        soapHeaderBlock.addAttribute("activityID", uuid_string, null);
                        synapseContext.setProperty("bam_activity_id", uuid_string);
                    } else {
                        soapHeaderBlock.addAttribute("activityID", (String) synapseContext
                                .getProperty("bam_activity_id"), null);
                    }
View Full Code Here

                        // DS.That is a new message. So, doesn't have activityID.Getting activityID
                        // from the synapsecontext.property
                        soapHeaderBlock.addAttribute("activityID", uuid_string, null);
                        synapseContext.setProperty("bam_activity_id", uuid_string);
                    } else {
                        soapHeaderBlock.addAttribute("activityID", (String) synapseContext
                                .getProperty("bam_activity_id"), null);
                    }
                    bampropertyElement.addAttribute("name", propName, null);
                    bampropertyElement.addAttribute("value", propValue, null);
                    soapHeaderBlock.addChild(bampropertyElement);
View Full Code Here

        if (bamEventElement == null) {
            OMNamespace omNs = soapFactory.createOMNamespace(
                    ActivityPublisherConstants.BAM_ACTIVITY_ID_HEADER_NAMESPACE_URI, "ns");
            SOAPHeaderBlock soapHeaderBlock = soapEnvelope.getHeader().addHeaderBlock(
                    "BAMEvent", omNs);
            soapHeaderBlock.addAttribute("activityID", activityId, null);
        }
    }
}
View Full Code Here

                .getChildrenWithName(
                                     new QName(ActivityPublisherConstants.BAM_ACTIVITY_ID_HEADER_NAMESPACE_URI,
                                         "BAMEvent"));
            if (itr.hasNext() == false) {
                soapHeaderBlock = soapEnvelope.getHeader().addHeaderBlock("BAMEvent", omNs);
                soapHeaderBlock.addAttribute("activityID", uuid, null);
            } else {
                OMElement element = (OMElement) itr.next();
                String aid = element.getAttributeValue(new QName("activityID"));
                if (aid != null) {
                    if (aid.equals("")) {
View Full Code Here

            if (soapFactory != null) {
                (soapFactory).createSOAPHeader(soapEnvelope);
            }
            if (soapEnvelope.getHeader() != null) {
                soapHeaderBlock = soapEnvelope.getHeader().addHeaderBlock("BAMEvent", omNs);
                soapHeaderBlock.addAttribute("activityID", uuid, null);           
            }
       }
       
        if (messageContext.getProperty("REMOTE_ADDR") != null) {
            remoteIPAddress = (String) messageContext.getProperty("REMOTE_ADDR");
View Full Code Here

                .getChildrenWithName(
                                     new QName(ActivityPublisherConstants.BAM_ACTIVITY_ID_HEADER_NAMESPACE_URI,
                                         "BAMEvent"));
            if (!itr.hasNext()) {
                soapHeaderBlock = soapEnvelope.getHeader().addHeaderBlock("BAMEvent", omNs);
                soapHeaderBlock.addAttribute("activityID", actID, null);
                soapHeaderBlock.addChild(bampropertyElement);
            }
        } // If header is null add BAM headers
        if (soapEnvelope.getHeader() == null) {
            if (soapFactory != null) {
View Full Code Here

            if (soapFactory != null) {
                (soapFactory).createSOAPHeader(soapEnvelope);
            }
            if (soapEnvelope.getHeader() != null) {
                soapHeaderBlock = soapEnvelope.getHeader().addHeaderBlock("BAMEvent", omNs);
                soapHeaderBlock.addAttribute("activityID", actID, null);
                soapHeaderBlock.addChild(bampropertyElement);
            }
        }
    }
   
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.