Package com.arjuna.webservices

Examples of com.arjuna.webservices.SoapClient


        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, soapDetails, soapService, messageContext) ;
       
        final EndpointReferenceType replyTo = addressingContext.getReplyTo() ;
        if (replyTo != null)
        {
            if (!replyTo.isValid())
            {
                throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_4")) ;
            }
            final AttributedURIType address = replyTo.getAddress() ;
            if (!AddressingConstants.WSA_ADDRESS_ANONYMOUS.equals(address.getValue()))
            {
                client.invokeOneWay(soapBodyMessage, toURI) ;
                return null ;
            }
        }
       
        final SoapMessage response = client.invoke(soapBodyMessage, toURI) ;
        if (response instanceof SoapBodyMessage)
        {
            return ((SoapBodyMessage)response).getSoapBody() ;
        }
        throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_5")) ;
View Full Code Here


        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, soapDetails, soapService, messageContext) ;
       
        client.invokeOneWay(soapBodyMessage, toURI) ;
    }
View Full Code Here

        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapFaultMessage fault = new SoapFaultMessage(soapFault, soapDetails, soapService, messageContext) ;
        client.invokeOneWay(fault, toURI) ;
    }
View Full Code Here

    private static SoapClient getSoapClient(final String destinationURI)
        throws IOException
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String scheme = soapRegistry.getScheme(destinationURI) ;
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
       
        if (client == null)
        {
            final String pattern = WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_3") ;
            final String message = MessageFormat.format(pattern, new Object[] {scheme}) ;
View Full Code Here

        final String scheme = soapRegistry.getScheme(toURL) ;
        final NamedElement contents = new NamedElement(bodyName, request) ;
        final SoapBody soapBody = new SoapBody(contents, actionValue) ;
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        return client.invoke(soapBodyMessage, toURL) ;
    }
View Full Code Here

        final String scheme = soapRegistry.getScheme(toURL) ;
        final NamedElement contents = new NamedElement(bodyName, request) ;
        final SoapBody soapBody = new SoapBody(contents, actionValue) ;
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        client.invokeOneWay(soapBodyMessage, toURL) ;
    }
View Full Code Here

        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
       
        final String scheme = soapRegistry.getScheme(toURL) ;
        final SoapFaultMessage fault = new SoapFaultMessage(soapFault, null, soapService, messageContext) ;
       
        final SoapClient client = soapRegistry.getSoapClient(scheme) ;
        client.invokeOneWay(fault, toURL) ;
    }
View Full Code Here

    public void contextInitialized(final ServletContextEvent servletContextEvent)
    {
        Sequencer.Callback callback = new Sequencer.Callback(Sequencer.SEQUENCE_WSCOOR10, Sequencer.WEBAPP_WSC10) {
           public void run() {
               final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
               final SoapClient client = new HttpClient() ;
               soapRegistry.registerSoapClient(HttpUtils.HTTP_SCHEME, client) ;
               soapRegistry.registerSoapClient(HttpUtils.HTTPS_SCHEME, client) ;
           }
        };
    }
View Full Code Here

        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, soapDetails, soapService, messageContext) ;
       
        final EndpointReferenceType replyTo = addressingContext.getReplyTo() ;
        if (replyTo != null)
        {
            if (!replyTo.isValid())
            {
                throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_4")) ;
            }
            final AttributedURIType address = replyTo.getAddress() ;
            if (!AddressingConstants.WSA_ADDRESS_ANONYMOUS.equals(address.getValue()))
            {
                client.invokeOneWay(soapBodyMessage, toURI) ;
                return null ;
            }
        }
       
        final SoapMessage response = client.invoke(soapBodyMessage, toURI) ;
        if (response instanceof SoapBodyMessage)
        {
            return ((SoapBodyMessage)response).getSoapBody() ;
        }
        throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_5")) ;
View Full Code Here

        final SoapService soapService)
        throws SoapFault, IOException
    {
        final String toURI = getDestinationURI(addressingContext) ;
        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, soapDetails, soapService, messageContext) ;
       
        client.invokeOneWay(soapBodyMessage, toURI) ;
    }
View Full Code Here

TOP

Related Classes of com.arjuna.webservices.SoapClient

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.