You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Daniel Woo <da...@gmail.com> on 2008/06/25 13:47:47 UTC

how to use apache commons httpclient 3.x with axis 1.4?

Hi guys,

Because apache common http 3.x supports HTTP 1.1 "keep connection alive"
which could improve the performance issue now I am facing, I am gonna use it
with axis 1.4.
But the problem is how? just simply put commons httpclient jar file to the
classpath? Is axis clever enough to try to discover httpclient at bootstrap?


-- 
Thanks & Regards,
Daniel

Re: how to use apache commons httpclient 3.x with axis 1.4?

Posted by keith chapman <ke...@gmail.com>.
If performance is a concern then why not try Axis2? Axis2 is around 4-5
times faster than Axis. (And it uses httpClient 3.1)

Thanks,
Keith.

On Wed, Jun 25, 2008 at 6:08 PM, Daniel Woo <da...@gmail.com> wrote:

> Now I configured wsdd and put apache commons httpclient into classpath but
> an exception was thrown. What's wrong?
>
> Caused by: Session no longer valid
>     at
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
>     at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
>     at
> org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
>     at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>     at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>     at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>     at
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
>     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>     at org.apache.axis.client.Call.invoke(Call.java:2767)
>     at org.apache.axis.client.Call.invoke(Call.java:2443)
>     at org.apache.axis.client.Call.invoke(Call.java:2366)
>     at org.apache.axis.client.Call.invoke(Call.java:1812)
>     at
> com.hp.ov.sm.ws.change.QCIntChangeService_BindingStub.retrieveQCIntChangeKeysList(Unknown
> Source)
>     at
> com.hp.ov.qc.adapter.sm.client.SMChangeEntityWSClient.getTimedRecordsModifiedSince(SMChangeEntityWSClient.java:104)
>
>
>
> On Wed, Jun 25, 2008 at 7:47 PM, Daniel Woo <da...@gmail.com>
> wrote:
>
>> Hi guys,
>>
>> Because apache common http 3.x supports HTTP 1.1 "keep connection alive"
>> which could improve the performance issue now I am facing, I am gonna use it
>> with axis 1.4.
>> But the problem is how? just simply put commons httpclient jar file to the
>> classpath? Is axis clever enough to try to discover httpclient at bootstrap?
>>
>>
>> --
>> Thanks & Regards,
>> Daniel
>
>
>
>
> --
> Thanks & Regards,
> Daniel




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: how to use apache commons httpclient 3.x with axis 1.4?

Posted by Daniel Woo <da...@gmail.com>.
Now I configured wsdd and put apache commons httpclient into classpath but
an exception was thrown. What's wrong?

Caused by: Session no longer valid
    at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at
com.hp.ov.sm.ws.change.QCIntChangeService_BindingStub.retrieveQCIntChangeKeysList(Unknown
Source)
    at
com.hp.ov.qc.adapter.sm.client.SMChangeEntityWSClient.getTimedRecordsModifiedSince(SMChangeEntityWSClient.java:104)


On Wed, Jun 25, 2008 at 7:47 PM, Daniel Woo <da...@gmail.com> wrote:

> Hi guys,
>
> Because apache common http 3.x supports HTTP 1.1 "keep connection alive"
> which could improve the performance issue now I am facing, I am gonna use it
> with axis 1.4.
> But the problem is how? just simply put commons httpclient jar file to the
> classpath? Is axis clever enough to try to discover httpclient at bootstrap?
>
>
> --
> Thanks & Regards,
> Daniel




-- 
Thanks & Regards,
Daniel