Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPBody.addChild()


                    OMFactory fac = OMAbstractFactory.getOMFactory();
                    body.addChild(fac.createOMText("\n"));
                    body.addChild(bodyElement);
                    body.addChild(fac.createOMText("\n"));
                } else {
                    body.addChild(bodyElement);
                }
            }
        } else {
            envelope = OMAbstractFactory.getSOAP11Factory().getDefaultEnvelope();
        }
View Full Code Here


    public void setPayloadXML(Object payload) throws OMException, ScriptException {
        SOAPBody body = mc.getEnvelope().getBody();
        OMElement firstChild = body.getFirstElement();
        OMElement omElement = xmlHelper.toOMElement(payload);
        if (firstChild == null) {
            body.addChild(omElement);
        } else {
            firstChild.insertSiblingAfter(omElement);
            firstChild.detach();
        }
    }
View Full Code Here

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

    soapBody.addChild(createSequenceElement);
    return soapBody;
  }

  public void setAcksTo(AcksTo acksTo) {
    this.acksTo = acksTo;
View Full Code Here

    if (accept != null) {
      accept.toOMElement(createSequenceResponseElement);
    }

    SOAPBody.addChild(createSequenceResponseElement);

   

    return SOAPBody;
  }
View Full Code Here

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

    soapBody.addChild(createSequenceElement);
    return soapBody;
  }

  public void setAcksTo(AcksTo acksTo) {
    this.acksTo = acksTo;
View Full Code Here

    if (accept != null) {
      accept.toOMElement(createSequenceResponseElement);
    }

    SOAPBody.addChild(createSequenceResponseElement);

   

    return SOAPBody;
  }
View Full Code Here

        Object[] args = (Object[])msg.getBody();
        if (args != null && args.length > 0) {
            SOAPBody body = env.getBody();
            for (Object bc : args) {
                if (bc instanceof OMElement) {
                    body.addChild((OMElement)bc);
                } else {
                    throw new IllegalArgumentException(
                                                       "Can't handle mixed payloads between OMElements and other types.");
                }
            }
View Full Code Here

                        throw new IllegalArgumentException( "Can't handle mixed payloads between OMElements and other types for endpoint reference " + endpointReference);
                    }
                }
               
                SOAPBody body = env.getBody();
                body.addChild(operationNameElement);
               
            } else if (wsBinding.isRpcEncoded()){
                throw new ServiceRuntimeException("rpc/encoded WSDL style not supported for endpoint reference " + endpointReference);
            } else if (wsBinding.isDocEncoded()){
                throw new ServiceRuntimeException("doc/encoded WSDL style not supported for endpoint reference " + endpointReference);
View Full Code Here

                       wsBinding.isDocLiteralUnwrapped()){
                // it's doc/lit
                SOAPBody body = env.getBody();
                for (Object bc : args) {
                    if (bc instanceof OMElement) {
                        body.addChild((OMElement)bc);
                    } else {
                        throw new IllegalArgumentException( "Can't handle mixed payloads between OMElements and other types for endpoint reference " + endpointReference);
                    }
                }
            } else {
View Full Code Here

                        .setText(resourcePath
                                + ClientStatisticsPublisherConstants.BAM_USER_DEFINED_EVENT_TOPIC_SEPARATOR
                        + ClientStatisticsPublisherConstants.BAM_USER_DEFINED_EVENT_NAME);

                SOAPBody body = eventEnv.getBody();
                body.addChild(createOMElement(event.getMessage().toString()));
                eventMessageContext
                        .getOptions()
                        .setAction(
                                ClientStatisticsPublisherConstants.BAM_USER_DEFINED_EVENT_PUBLISH_ACTION);
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.