You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by Sanjiva Weerawarana <sa...@opensource.lk> on 2005/12/06 15:09:13 UTC

Re: svn commit: r354198 [3/3] - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/jms/

Hi Dims,

I know you said this is the initial cut .. but .. :):

> +    public static void processJMSRequest(
> +            MessageContext msgContext,
> +            InputStream in,
> +            OutputStream out,
> +            String contentType
> +    )
> +            throws AxisFault {
> +        boolean soap11 = false;
> +        try {
> +
> +//            //remove the starting and trailing " from the SOAP Action
> +//            if (soapActionHeader != null
> +//                    && soapActionHeader.startsWith("\"")
> +//                    && soapActionHeader.endsWith("\"")) {
> +//
> +//                soapActionHeader =
> +//                        soapActionHeader.substring(
> +//                                1,
> +//                                soapActionHeader.length() - 1);
> +//            }
> +//            //fill up the Message Contexts
> +//            msgContext.setWSAAction(soapActionHeader);
> +//            msgContext.setSoapAction(soapActionHeader);
> +//            msgContext.setTo(new EndpointReference(requestURI));
> +            msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
> +            msgContext.setServerSide(true);
> +
> +            SOAPEnvelope envelope = null;
> +            StAXBuilder builder = null;
...

Can this code not be shared with HTTP?

Sanjiva.



Re: svn commit: r354198 [3/3] - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/jms/

Posted by Davanum Srinivas <da...@gmail.com>.
yep. am still trying to get something to work before i start cleaning up.

-- dims

On 12/6/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> Hi Dims,
>
> I know you said this is the initial cut .. but .. :):
>
> > +    public static void processJMSRequest(
> > +            MessageContext msgContext,
> > +            InputStream in,
> > +            OutputStream out,
> > +            String contentType
> > +    )
> > +            throws AxisFault {
> > +        boolean soap11 = false;
> > +        try {
> > +
> > +//            //remove the starting and trailing " from the SOAP Action
> > +//            if (soapActionHeader != null
> > +//                    && soapActionHeader.startsWith("\"")
> > +//                    && soapActionHeader.endsWith("\"")) {
> > +//
> > +//                soapActionHeader =
> > +//                        soapActionHeader.substring(
> > +//                                1,
> > +//                                soapActionHeader.length() - 1);
> > +//            }
> > +//            //fill up the Message Contexts
> > +//            msgContext.setWSAAction(soapActionHeader);
> > +//            msgContext.setSoapAction(soapActionHeader);
> > +//            msgContext.setTo(new EndpointReference(requestURI));
> > +            msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
> > +            msgContext.setServerSide(true);
> > +
> > +            SOAPEnvelope envelope = null;
> > +            StAXBuilder builder = null;
> ...
>
> Can this code not be shared with HTTP?
>
> Sanjiva.
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Re: svn commit: r354198 [3/3] - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/jms/

Posted by Davanum Srinivas <da...@gmail.com>.
yep. am still trying to get something to work before i start cleaning up.

-- dims

On 12/6/05, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> Hi Dims,
>
> I know you said this is the initial cut .. but .. :):
>
> > +    public static void processJMSRequest(
> > +            MessageContext msgContext,
> > +            InputStream in,
> > +            OutputStream out,
> > +            String contentType
> > +    )
> > +            throws AxisFault {
> > +        boolean soap11 = false;
> > +        try {
> > +
> > +//            //remove the starting and trailing " from the SOAP Action
> > +//            if (soapActionHeader != null
> > +//                    && soapActionHeader.startsWith("\"")
> > +//                    && soapActionHeader.endsWith("\"")) {
> > +//
> > +//                soapActionHeader =
> > +//                        soapActionHeader.substring(
> > +//                                1,
> > +//                                soapActionHeader.length() - 1);
> > +//            }
> > +//            //fill up the Message Contexts
> > +//            msgContext.setWSAAction(soapActionHeader);
> > +//            msgContext.setSoapAction(soapActionHeader);
> > +//            msgContext.setTo(new EndpointReference(requestURI));
> > +            msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
> > +            msgContext.setServerSide(true);
> > +
> > +            SOAPEnvelope envelope = null;
> > +            StAXBuilder builder = null;
> ...
>
> Can this code not be shared with HTTP?
>
> Sanjiva.
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/