Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMElement.detach()


   
    //detach if already exist.
    OMElement elem = body.getFirstChildWithName(new QName(namespaceValue,
        Sandesha2Constants.WSRM_COMMON.TERMINATE_SEQUENCE_RESPONSE));
    if (elem!=null)
      elem.detach();
   
    toOMElement(body);
  }
 
  public boolean isNamespaceSupported (String namespaceName) {
View Full Code Here


   
    //detach if already exist.
    OMElement elem = header.getFirstChildWithName(new QName(namespaceValue,
        Sandesha2Constants.WSRM_COMMON.SEQUENCE));
    if (elem!=null)
      elem.detach();
   
    toOMElement(header);
  }
 
  public boolean isNamespaceSupported (String namespaceName) {
View Full Code Here

        log.info("Response received to the callback");
        OMElement result
                = messageContext.getEnvelope().getBody().getFirstElement();
        // Detach the result to make sure that the element we return to the sample client
        // is completely built
        result.detach();
        client.setResponse(result);
    }

    public void onFault(org.apache.axis2.context.MessageContext messageContext) {
        log.warn("Fault received to the callback : " + messageContext.getEnvelope().
View Full Code Here

    protected void removeSessionID(OMElement header, QName keyQName) {

        OMElement sgcIDElm = getHeaderBlock(header, keyQName);
        if (sgcIDElm != null) {
            sgcIDElm.detach();
        }
    }


    private Map getTransportHeaderMap(MessageContext synCtx) {
View Full Code Here

                          OMNode child = (OMNode)children.next();
                          child.detach();
                          header.addChild(child);
                        }
                       
                        element.detach();
                       
                        soapHeader.build();
                       
                        header.setProcessed();
                       
View Full Code Here

                OMElement om = (OMElement) o;
                OMNamespace ns = om.getNamespace();
                if (ns != null && (
                    AddressingConstants.Submission.WSA_NAMESPACE.equals(ns.getNamespaceURI()) ||
                        AddressingConstants.Final.WSA_NAMESPACE.equals(ns.getNamespaceURI()))) {
                    om.detach();
                }
            }
        }
    }
View Full Code Here

            if (child.getQName().equals(PARAMETER_Q)) {
                OMAttribute paramNameAttr = child.getAttribute(ATT_NAME);
                if (paramNameAttr != null) {
                    paramNames.add(paramNameAttr.getAttributeValue());
                }
                child.detach();
            }
        }
        templateMediator.setParameters(paramNames);
    }
View Full Code Here

                } else if (isSoapBody) {
                    for (Iterator itr = synCtx.getEnvelope().getBody().getChildElements();
                        itr.hasNext(); ) {
                        OMElement child = (OMElement) itr.next();
                        child.detach();
                    }

                    for (Iterator itr = result.getChildElements(); itr.hasNext(); ) {
                        OMElement child = (OMElement) itr.next();
                        synCtx.getEnvelope().getBody().addChild(child);
View Full Code Here

                } else if (isSoapHeader) {
                    for (Iterator itr = synCtx.getEnvelope().getHeader().getChildElements();
                         itr.hasNext();) {
            OMElement child = (OMElement) itr.next();
            child.detach();
          }

          for (Iterator itr = result.getChildElements(); itr.hasNext();) {
            OMElement child = (OMElement) itr.next();
            synCtx.getEnvelope().getHeader().addChild(child);
View Full Code Here

        }

        // replace the existing payload with the new payload
        for (Iterator itr = soapBody.getChildElements(); itr.hasNext();) {
            OMElement child = (OMElement) itr.next();
            child.detach();
        }

        for (Iterator itr = resultElement.getChildElements(); itr.hasNext();) {
            OMElement child = (OMElement) itr.next();
            soapBody.addChild(child);
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.