Examples of SoapFaultService


Examples of org.apache.cxf.soapfault.SoapFaultService

    }

    @Test
    public void testSendSoapFaultRequest() throws Exception {

        SoapFaultService service = new SoapFaultService();
        assertNotNull(service);

        SoapFaultPortType soapFaultPort = service.getPort(portName, SoapFaultPortType.class);
        updateAddressPort(soapFaultPort, PORT);

        Fault fault = new Fault();
        fault.setFaultstring("ClientSetFaultString");
        fault.setFaultcode(new QName("http://cxf.apache.org/soapfault", "ClientSetError"));
View Full Code Here

Examples of org.jboss.jbossts.xts.soapfault.SoapFaultService

     * @return
     */
    private static synchronized SoapFaultService getSoapFaultService()
    {
        if (soapFaultService.get() == null) {
            soapFaultService.set(new SoapFaultService());
        }
        return soapFaultService.get();
    }
View Full Code Here

Examples of org.jboss.jbossts.xts.soapfault.SoapFaultService

    }

    private static SoapFaultPortType getSoapFaultPort(final AddressingProperties addressingProperties,
                                                      final AttributedURI action)
    {
        SoapFaultService service = getSoapFaultService();
        SoapFaultPortType port = service.getPort(SoapFaultPortType.class);
        BindingProvider bindingProvider = (BindingProvider)port;
        AttributedURI toUri = addressingProperties.getTo();
        List<Handler> customHandlerChain = new ArrayList<Handler>();
        /*
         * we have to add the JaxWS WSAddressingClientHandler because we cannot specify the WSAddressing feature
View Full Code Here

Examples of org.jboss.jbossts.xts.soapfault.SoapFaultService

    private static SoapFaultPortType getSoapFaultPort(final W3CEndpointReference endpoint,
                                                      final AddressingProperties addressingProperties,
                                                      final AttributedURI action)
    {
        SoapFaultService service = getSoapFaultService();
        SoapFaultPortType port = service.getPort(endpoint, SoapFaultPortType.class);
        BindingProvider bindingProvider = (BindingProvider)port;
        Map<String, Object> requestContext = bindingProvider.getRequestContext();
        AddressingProperties requestProperties = (AddressingProperties)requestContext.get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND);
        if (action != null) {
            addressingProperties.setAction(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.