Search in sources :

Example 31 with EndpointReference

use of org.apache.axis2.addressing.EndpointReference in project axis-axis2-java-core by apache.

the class AddressingHelperTest method testIsSyncReplyAllowedNonAnonReplyTo.

public void testIsSyncReplyAllowedNonAnonReplyTo() {
    MessageContext mc = new MessageContext();
    mc.setReplyTo(new EndpointReference("http://ws.apache.org/axis2"));
    assertFalse(AddressingHelper.isSyncReplyAllowed(mc));
}
Also used : MessageContext(org.apache.axis2.context.MessageContext)

Example 32 with EndpointReference

use of org.apache.axis2.addressing.EndpointReference in project axis-axis2-java-core by apache.

the class AddressingHelperTest method testIsSyncReplyAllowedNoneReplyTo.

public void testIsSyncReplyAllowedNoneReplyTo() {
    MessageContext mc = new MessageContext();
    mc.setReplyTo(new EndpointReference(AddressingConstants.Final.WSA_NONE_URI));
    assertTrue(AddressingHelper.isSyncReplyAllowed(mc));
}
Also used : MessageContext(org.apache.axis2.context.MessageContext)

Example 33 with EndpointReference

use of org.apache.axis2.addressing.EndpointReference in project axis-axis2-java-core by apache.

the class AddressingHelperTest method testIsFaultRedirectedAnonFaultTo.

public void testIsFaultRedirectedAnonFaultTo() {
    MessageContext mc = new MessageContext();
    mc.setFaultTo(new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL));
    assertFalse(AddressingHelper.isFaultRedirected(mc));
}
Also used : MessageContext(org.apache.axis2.context.MessageContext)

Example 34 with EndpointReference

use of org.apache.axis2.addressing.EndpointReference in project axis-axis2-java-core by apache.

the class AddressingHelperTest method testIsFaultRedirectedNoFaultTo.

public void testIsFaultRedirectedNoFaultTo() {
    MessageContext mc = new MessageContext();
    mc.setReplyTo(new EndpointReference("http://ws.apache.org/axis2"));
    assertTrue(AddressingHelper.isFaultRedirected(mc));
}
Also used : MessageContext(org.apache.axis2.context.MessageContext)

Example 35 with EndpointReference

use of org.apache.axis2.addressing.EndpointReference in project axis-axis2-java-core by apache.

the class AddressingHelperTest method testIsSyncFaultAllowedNonAnonFaultTo.

public void testIsSyncFaultAllowedNonAnonFaultTo() {
    MessageContext mc = new MessageContext();
    mc.setFaultTo(new EndpointReference("http://ws.apache.org/axis2"));
    assertFalse(AddressingHelper.isSyncFaultAllowed(mc));
}
Also used : MessageContext(org.apache.axis2.context.MessageContext)

Aggregations

EndpointReference (org.apache.axis2.addressing.EndpointReference)261 Options (org.apache.axis2.client.Options)99 OMElement (org.apache.axiom.om.OMElement)67 AxisFault (org.apache.axis2.AxisFault)66 MessageContext (org.apache.axis2.context.MessageContext)58 ConfigurationContext (org.apache.axis2.context.ConfigurationContext)57 ServiceClient (org.apache.axis2.client.ServiceClient)54 QName (javax.xml.namespace.QName)40 ArrayList (java.util.ArrayList)37 AxisService (org.apache.axis2.description.AxisService)28 Map (java.util.Map)25 MessageContext (org.apache.synapse.MessageContext)25 Axis2MessageContext (org.apache.synapse.core.axis2.Axis2MessageContext)25 Test (org.junit.Test)20 IOException (java.io.IOException)19 SOAPEnvelope (org.apache.axiom.soap.SOAPEnvelope)18 RelatesTo (org.apache.axis2.addressing.RelatesTo)18 URL (java.net.URL)17 SOAPFactory (org.apache.axiom.soap.SOAPFactory)17 AxisConfiguration (org.apache.axis2.engine.AxisConfiguration)17