Package org.apache.axiom.om

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


   
    //detach if already exist.
    OMElement elem = header.getFirstChildWithName(new QName(namespaceValue,
        Sandesha2Constants.WSRM_COMMON.SEQUENCE));
    if (elem!=null)
      elem.detach();
   
    toOMElement(header);
  }

  public boolean isMustUnderstand() {
View Full Code Here


   
    //detach if already exist.
    OMElement elem = body.getFirstChildWithName(new QName(namespaceValue,
        Sandesha2Constants.WSRM_COMMON.CLOSE_SEQUENCE));
    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.MESSAGE_PENDING));
    if (elem!=null)
      elem.detach();
   
    toOMElement(header);
  }

  public String getNamespaceValue() {
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

               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

     */

    public void setPayloadXML(Object payload) throws OMException, ScriptException {
        OMElement firstChild = mc.getEnvelope().getBody().getFirstElement();
        firstChild.insertSiblingAfter(xmlHelper.toOMElement(payload));
        firstChild.detach();
    }

    /**
     * Get the XML representation of the complete SOAP envelope
     * @return return an object that represents the payload in the current scripting language
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

                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

                    header.detach();
                }
            } else if (o instanceof OMElement) {
                OMElement omElem = (OMElement) o;
                if (omElem.getLocalName().equals(qName.getLocalPart())) {
                    omElem.detach();
                }
            }
        }
    }
View Full Code Here

    @Override
    public void removeHeaderElement(QName name) throws SoapHeaderException {
        try {
            OMElement element = getAxiomHeader().getFirstChildWithName(name);
            if (element != null) {
                element.detach();
            }
        }
        catch (OMException ex) {
            throw new AxiomSoapHeaderException(ex);
        }
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.