Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPFactory


public class AxiomSoap11HeaderTest extends AbstractSoap11HeaderTestCase {

    @Override
    protected SoapHeader createSoapHeader() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP11Factory();
        AxiomSoapMessage axiomSoapMessage = new AxiomSoapMessage(axiomFactory);
        return axiomSoapMessage.getSoapHeader();
    }
View Full Code Here


public class AxiomSoap11EnvelopeTest extends AbstractSoap11EnvelopeTestCase {

    @Override
    protected SoapEnvelope createSoapEnvelope() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP11Factory();
        AxiomSoapMessage axiomSoapMessage = new AxiomSoapMessage(axiomFactory);
        return axiomSoapMessage.getEnvelope();
    }
View Full Code Here

public class AxiomSoap12EnvelopeTest extends AbstractSoap12EnvelopeTestCase {

    @Override
    protected SoapEnvelope createSoapEnvelope() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP12Factory();
        AxiomSoapMessage axiomSoapMessage = new AxiomSoapMessage(axiomFactory);
        return axiomSoapMessage.getEnvelope();
    }
View Full Code Here

public class AxiomSoap12BodyTest extends AbstractSoap12BodyTestCase {

    @Override
    protected SoapBody createSoapBody() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP12Factory();
        AxiomSoapMessage axiomSoapMessage = new AxiomSoapMessage(axiomFactory);
        return axiomSoapMessage.getSoapBody();
    }
View Full Code Here

public class AxiomSoap12HeaderTest extends AbstractSoap12HeaderTestCase {

    @Override
    protected SoapHeader createSoapHeader() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP12Factory();
        AxiomSoapMessage axiomSoapMessage = new AxiomSoapMessage(axiomFactory);
        return axiomSoapMessage.getSoapHeader();
    }
View Full Code Here

    private SOAPBody body;

    @Before
    public final void setUp() {
        SOAPFactory soapFactory = OMAbstractFactory.getSOAP11Factory();
        body = soapFactory.createSOAPBody();
        payload = new NonCachingPayload(body, soapFactory);
    }
View Full Code Here

public class AxiomSoap11MessageTest extends AbstractSoap11MessageTestCase {

    @Override
    protected SoapMessage createSoapMessage() throws Exception {
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP11Factory();
        return new AxiomSoapMessage(axiomFactory);
    }
View Full Code Here

        data.setCode(SOAP12Constants.FAULT_CODE_SENDER);

      data.setSubcode(SpecSpecificConstants.getFaultSubcode(rmMessageContext.getRMNamespaceValue(),
          Sandesha2Constants.SOAPFaults.FaultType.UNKNOWN_SEQUENCE ));

      SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);

      OMElement identifierElement = factory.createOMElement(Sandesha2Constants.WSRM_COMMON.IDENTIFIER,
          rmMessageContext.getRMNamespaceValue(), Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
      identifierElement.setText(sequenceID);
     
      data.setDetail(identifierElement);
View Full Code Here

    data.setType(Sandesha2Constants.SOAPFaults.FaultType.INVALID_ACKNOWLEDGEMENT);
    data.setSubcode(SpecSpecificConstants.getFaultSubcode(rmMsgCtx.getRMNamespaceValue(),
        Sandesha2Constants.SOAPFaults.FaultType.INVALID_ACKNOWLEDGEMENT ));
    data.setReason(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.invalidAckFault));

    SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);

    OMElement seqAckElement = factory.createOMElement(Sandesha2Constants.WSRM_COMMON.SEQUENCE_ACK,
        rmMsgCtx.getRMNamespaceValue(), Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
 
    // Set the sequence Id
    sequenceAcknowledgement.getIdentifier().toOMElement(seqAckElement);
View Full Code Here

      data.setCode(SOAP12Constants.FAULT_CODE_SENDER);

    data.setSubcode(SpecSpecificConstants.getFaultSubcode(rmMessageContext.getRMNamespaceValue(),
        Sandesha2Constants.SOAPFaults.FaultType.CREATE_SEQUENCE_REFUSED ));

    SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);
    OMElement identifierElement = factory.createOMElement(Sandesha2Constants.WSRM_COMMON.IDENTIFIER,
        rmMessageContext.getRMNamespaceValue(), Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
    identifierElement.setText(detail);
    data.setDetail(identifierElement);
    data.setDetailString(detail);
View Full Code Here

TOP

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

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.