Package com.arjuna.webservices

Examples of com.arjuna.webservices.SoapMessage


                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


     * @message com.arjuna.webservices.transport.http.HttpClient_1 [com.arjuna.webservices.transport.http.HttpClient_1] - No response from RPC request
     */
    public SoapMessage invoke(final SoapMessage request, final String url)
        throws SoapFault, IOException
    {
        final SoapMessage response = invokeRequest(request, url) ;
        if (response == null)
        {
            throw new SoapFault10(SoapFaultType.FAULT_SENDER, WSCLogger.log_mesg.getString("com.arjuna.webservices.transport.http.HttpClient_1")) ;
        }
        return response ;
View Full Code Here

                final Reader reader = new StringReader(contents) ;
                if (logPackets)
                {
                    SoapMessageLogging.appendThreadLog(contents) ;
                }
                final SoapMessage soapResponse ;
                try
                {
                    soapResponse = soapProcessor.process(messageContext,
                        messageResponseContext, action, reader) ;
                }
                finally
                {
                    if (logPackets)
                    {
                        SoapMessageLogging.clearThreadLog() ;
                    }
                }
                response.setContentType(contentType + HttpUtils.HTTP_DEFAULT_CHARSET_PARAMETER) ;
                if (soapResponse == null)
                {
                    response.setStatus(HttpServletResponse.SC_ACCEPTED) ;
                }
                else
                {
                    final String actionURI = soapResponse.getAction() ;
                    response.addHeader(HttpUtils.SOAP_ACTION_HEADER, '"' + actionURI + '"') ;
                    response.setStatus(soapResponse.isFault() ?
                        HttpServletResponse.SC_INTERNAL_SERVER_ERROR :
                        HttpServletResponse.SC_OK) ;
                    try
                    {
                        soapResponse.output(response.getWriter()) ;
                    }
                    catch (Throwable th)
                    {
                        throw new ServletException("Error sending response", th) ;
                    }
View Full Code Here

                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

     * @message com.arjuna.webservices.transport.http.HttpClient_1 [com.arjuna.webservices.transport.http.HttpClient_1] - No response from RPC request
     */
    public SoapMessage invoke(final SoapMessage request, final String url)
        throws SoapFault, IOException
    {
        final SoapMessage response = invokeRequest(request, url) ;
        if (response == null)
        {
            throw new SoapFault(SoapFaultType.FAULT_SENDER, WSCLogger.log_mesg.getString("com.arjuna.webservices.transport.http.HttpClient_1")) ;
        }
        return response ;
View Full Code Here

                final Reader reader = new StringReader(contents) ;
                if (logPackets)
                {
                    SoapMessageLogging.appendThreadLog(contents) ;
                }
                final SoapMessage soapResponse ;
                try
                {
                    soapResponse = soapProcessor.process(messageContext,
                        messageResponseContext, action, reader) ;
                }
                finally
                {
                    if (logPackets)
                    {
                        SoapMessageLogging.clearThreadLog() ;
                    }
                }
                response.setContentType(contentType + HttpUtils.HTTP_DEFAULT_CHARSET_PARAMETER) ;
                if (soapResponse == null)
                {
                    response.setStatus(HttpServletResponse.SC_ACCEPTED) ;
                }
                else
                {
                    final String actionURI = soapResponse.getAction() ;
                    response.addHeader(HttpUtils.SOAP_ACTION_HEADER, '"' + actionURI + '"') ;
                    response.setStatus(soapResponse.isFault() ?
                        HttpServletResponse.SC_INTERNAL_SERVER_ERROR :
                        HttpServletResponse.SC_OK) ;
                    try
                    {
                        soapResponse.output(response.getWriter()) ;
                    }
                    catch (Throwable th)
                    {
                        throw new ServletException("Error sending response", th) ;
                    }
View Full Code Here

TOP

Related Classes of com.arjuna.webservices.SoapMessage

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.