Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPBody


      this.name = name;
    }
   
    public void onComplete(AsyncResult result) {
      //System.out.println("On Complete Called for " + text);
      SOAPBody body = result.getResponseEnvelope().getBody();
     
      OMElement echoStringResponseElem = body.getFirstChildWithName(new QName (applicationNamespaceName,echoStringResponse));
      if (echoStringResponseElem==null) {
        System.out.println("Error: SOAPBody does not have a 'echoStringResponse' child");
        return;
      }
     
View Full Code Here


      this.name = name;
    }
   
    public void onComplete(AsyncResult result) {
      //System.out.println("On Complete Called for " + text);
      SOAPBody body = result.getResponseEnvelope().getBody();
     
      OMElement echoStringResponseElem = body.getFirstChildWithName(new QName (applicationNamespaceName,echoStringResponse));
      if (echoStringResponseElem==null) {
        System.out.println("Error: SOAPBody does not have a 'echoStringResponse' child");
        return;
      }
     
View Full Code Here

  private void doInvocation(MessageContext mc) throws AxisFault {
    SOAPEnvelope envelope = mc.getEnvelope();

    assertNotNull(envelope);

    SOAPBody body = envelope.getBody();

    OMElement payload = body.getFirstElement();
    OMElement attachmentElem = payload.getFirstChildWithName(new QName(applicationNamespaceName, Attachment));
    if (attachmentElem == null)
      throw new AxisFault("'Attachment' element is not present as a child of the 'Ping' element");

    OMText binaryElem = (OMText) attachmentElem.getFirstOMChild();
View Full Code Here

      this.name = name;
    }
   
    public void onComplete(AsyncResult result) {

      SOAPBody body = result.getResponseEnvelope().getBody();
     
      OMElement echoStringResponseElem = body.getFirstChildWithName(new QName (applicationNamespaceName,echoStringResponse));
      if (echoStringResponseElem==null) {
        log.error("Error: SOAPBody does not have a 'echoStringResponse' child");
        return;
      }
     
View Full Code Here

      this.name = name;
    }
   
    public void onComplete(AsyncResult result) {
      //System.out.println("On Complete Called for " + text);
      SOAPBody body = result.getResponseEnvelope().getBody();
     
      OMElement echoStringResponseElem = body.getFirstChildWithName(new QName (applicationNamespaceName,echoStringResponse));
      if (echoStringResponseElem==null) {
        System.out.println("Error: SOAPBody does not have a 'echoStringResponse' child");
        return;
      }
     
View Full Code Here

    @Override
    public SoapBody getBody() {
        if (body == null) {
            try {
                SOAPBody axiomBody = getAxiomEnvelope().getBody();
                String namespaceURI = getAxiomEnvelope().getNamespace().getNamespaceURI();
                if (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(namespaceURI)) {
                    body = new AxiomSoap11Body(axiomBody, getAxiomFactory(), payloadCaching,
                            langAttributeOnSoap11FaultString);
                }
View Full Code Here

  public void setIdentifier(Identifier identifier) {
    this.identifier = identifier;
  }

  public void toSOAPEnvelope(SOAPEnvelope envelope) {
    SOAPBody body = envelope.getBody();
   
    //detach if already exist.
    OMElement elem = body.getFirstChildWithName(new QName(namespaceValue,
        Sandesha2Constants.WSRM_COMMON.TERMINATE_SEQUENCE));
    if (elem!=null)
      elem.detach();
   
    toOMElement(body);
View Full Code Here

      return name;
    }
   
    public void onComplete(AsyncResult result) {
      //System.out.println("On Complete Called for " + text);
      SOAPBody body = result.getResponseEnvelope().getBody();
     
      OMElement echoStringResponseElem = body.getFirstChildWithName(new QName (applicationNamespaceName,echoStringResponse));
      if (echoStringResponseElem==null) {
        System.out.println("Error: SOAPBody does not have a 'echoStringResponse' child");
        return;
      }
     
View Full Code Here

    if (acksTo == null)
      throw new OMException(SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.createSeqNullAcksTo));

    SOAPBody soapBody = (SOAPBody) bodyElement;
   
    OMFactory factory = bodyElement.getOMFactory();

    OMNamespace rmNamespace = factory.createOMNamespace(rmNamespaceValue,Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
    OMElement createSequenceElement = factory.createOMElement(
        Sandesha2Constants.WSRM_COMMON.CREATE_SEQUENCE, rmNamespace);
   
    acksTo.toOMElement(createSequenceElement);

    if (sequenceOffer != null) {
      sequenceOffer.toOMElement(createSequenceElement);
    }

    if (expires != null) {
      expires.toOMElement(createSequenceElement);
    }
   
    if(securityTokenReference != null) {
      createSequenceElement.addChild(securityTokenReference);
    }

    soapBody.addChild(createSequenceElement);
    return soapBody;
  }
View Full Code Here

  public SequenceOffer getSequenceOffer() {
    return sequenceOffer;
  }

  public void toSOAPEnvelope(SOAPEnvelope envelope) throws AxisFault {
    SOAPBody body = envelope.getBody();
   
    //detach if already exist.
    OMElement elem = body.getFirstChildWithName(new QName(rmNamespaceValue,
        Sandesha2Constants.WSRM_COMMON.CREATE_SEQUENCE));
    if (elem!=null)
      elem.detach();
   
    toOMElement(body);
View Full Code Here

TOP

Related Classes of org.apache.axiom.soap.SOAPBody

Copyright © 2018 www.massapicom. 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.