You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Daniel Woo (JIRA)" <ax...@ws.apache.org> on 2008/06/25 16:08:45 UTC

[jira] Created: (AXIS-2746) Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"

Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"
-----------------------------------------------------------------------------

                 Key: AXIS-2746
                 URL: https://issues.apache.org/jira/browse/AXIS-2746
             Project: Axis
          Issue Type: Bug
          Components: Basic Architecture
    Affects Versions: 1.4
         Environment: jdk 1.5, axis 1.4, httpclient 3.1

            Reporter: Daniel Woo


1. add codec 1.3 and httpclient 3.1 to classpath
2. change client-config.wsdd, replace the line below
  <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport>
  To this:
  <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport>
3. generate a stub and execute the stub, to access two exposed actions, the server has basic http authentication
4. exceptions will be thrown

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode: 
 faultString: Session no longer valid
 faultActor: Server
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace: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)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Issue Comment Edited: (AXIS-2746) Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"

Posted by "Daniel Woo (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608378#action_12608378 ] 

danielywoo edited comment on AXIS-2746 at 6/26/08 5:51 AM:
-----------------------------------------------------------

To fix this, I re-compiled the file CommonsHTTPSender.java, force httpClient.getParams().setAuthenticationPreemptive(true); in line 137. Then everything works.
This is definitely *NOT* a good fix, I think axis should be able to have more control over CommonsHTTPSender, eg, able to setAuthenticationPreemptive(). In axis2 i did not encounter this problem, axis2 looks much more smart. But here I have to adhere to axis1 for some reasons. Hopefully you guys can fix this by configuring CommonsHTTPSender in client-config.wsdd, eg, add a sub element to specify additional paramters to better control apache httpclient.

Below is the correct http traffic I got.

POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "Retrieve"
User-Agent: Axis/1.4
Authorization: Basic U01RQ0ludFVzZXI6cGVyZg==
Host: coconut.asiapacific.hpqcorp.net:13080
Transfer-Encoding: chunked

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=14A5053D07A325F860CF230C007BDFC4; Path=/sc62server
Keep-Alive: timeout=1200000, max=1000
Connection: Keep-Alive
Content-Type: text/xml;charset=utf-8
Content-Length: 976
Date: Thu, 26 Jun 2008 10:10:51 GMT

      was (Author: danielywoo):
    To fix this, I re-compiled the file CommonsHTTPSender.java, force httpClient.getParams().setAuthenticationPreemptive(true); in line 137. Then everything works.
This is definitely a good fix, I think axis should be able to have more control over CommonsHTTPSender, eg, able to setAuthenticationPreemptive(). In axis2 i did not encounter this problem, axis2 looks much more smart. But here I have to adhere to axis1 for some reasons. Hopefully you guys can fix this by configuring CommonsHTTPSender in client-config.wsdd, eg, add a sub element to specify additional paramters to better control apache httpclient.

Below is the correct http traffic I got.

POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "Retrieve"
User-Agent: Axis/1.4
Authorization: Basic U01RQ0ludFVzZXI6cGVyZg==
Host: coconut.asiapacific.hpqcorp.net:13080
Transfer-Encoding: chunked

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=14A5053D07A325F860CF230C007BDFC4; Path=/sc62server
Keep-Alive: timeout=1200000, max=1000
Connection: Keep-Alive
Content-Type: text/xml;charset=utf-8
Content-Length: 976
Date: Thu, 26 Jun 2008 10:10:51 GMT
  
> Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"
> -----------------------------------------------------------------------------
>
>                 Key: AXIS-2746
>                 URL: https://issues.apache.org/jira/browse/AXIS-2746
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>         Environment: jdk 1.5, axis 1.4, httpclient 3.1
>            Reporter: Daniel Woo
>
> 1. add codec 1.3 and httpclient 3.1 to classpath
> 2. change client-config.wsdd, replace the line below
>   <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport>
>   To this:
>   <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport>
> 3. generate a stub and execute the stub, to access two exposed actions, the server has basic http authentication
> 4. exceptions will be thrown
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: Session no longer valid
>  faultActor: Server
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace: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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS-2746) Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"

Posted by "Daniel Woo (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608378#action_12608378 ] 

Daniel Woo commented on AXIS-2746:
----------------------------------

To fix this, I re-compiled the file CommonsHTTPSender.java, force httpClient.getParams().setAuthenticationPreemptive(true); in line 137. Then everything works.
This is definitely a good fix, I think axis should be able to have more control over CommonsHTTPSender, eg, able to setAuthenticationPreemptive(). In axis2 i did not encounter this problem, axis2 looks much more smart. But here I have to adhere to axis1 for some reasons. Hopefully you guys can fix this by configuring CommonsHTTPSender in client-config.wsdd, eg, add a sub element to specify additional paramters to better control apache httpclient.

Below is the correct http traffic I got.

POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "Retrieve"
User-Agent: Axis/1.4
Authorization: Basic U01RQ0ludFVzZXI6cGVyZg==
Host: coconut.asiapacific.hpqcorp.net:13080
Transfer-Encoding: chunked

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=14A5053D07A325F860CF230C007BDFC4; Path=/sc62server
Keep-Alive: timeout=1200000, max=1000
Connection: Keep-Alive
Content-Type: text/xml;charset=utf-8
Content-Length: 976
Date: Thu, 26 Jun 2008 10:10:51 GMT

> Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"
> -----------------------------------------------------------------------------
>
>                 Key: AXIS-2746
>                 URL: https://issues.apache.org/jira/browse/AXIS-2746
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>         Environment: jdk 1.5, axis 1.4, httpclient 3.1
>            Reporter: Daniel Woo
>
> 1. add codec 1.3 and httpclient 3.1 to classpath
> 2. change client-config.wsdd, replace the line below
>   <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport>
>   To this:
>   <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport>
> 3. generate a stub and execute the stub, to access two exposed actions, the server has basic http authentication
> 4. exceptions will be thrown
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: Session no longer valid
>  faultActor: Server
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace: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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS-2746) Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"

Posted by "Daniel Woo (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608344#action_12608344 ] 

Daniel Woo commented on AXIS-2746:
----------------------------------

After a lot of searching on the Internet, I found a lot of people has the same problem.
With some sniffer tool I found the root cause is that Authorization header is not set in the request. 

Remove the httpclient everything goes well. I am considering manually add the header.

> Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"
> -----------------------------------------------------------------------------
>
>                 Key: AXIS-2746
>                 URL: https://issues.apache.org/jira/browse/AXIS-2746
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>         Environment: jdk 1.5, axis 1.4, httpclient 3.1
>            Reporter: Daniel Woo
>
> 1. add codec 1.3 and httpclient 3.1 to classpath
> 2. change client-config.wsdd, replace the line below
>   <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport>
>   To this:
>   <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport>
> 3. generate a stub and execute the stub, to access two exposed actions, the server has basic http authentication
> 4. exceptions will be thrown
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: Session no longer valid
>  faultActor: Server
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace: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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS-2746) Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"

Posted by "Daniel Woo (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608355#action_12608355 ] 

Daniel Woo commented on AXIS-2746:
----------------------------------

A successful BASIC authentication:
POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: coconut.asiapacific.hpqcorp.net:13080
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "Retrieve"
Content-Length: 488
Authorization: Basic U01RQ0ludFVzZXI6cGVyZg==

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=F4974FCD15DF550DC0DAEA2BF04E9620; Path=/sc62server
Connection: close
Content-Type: text/xml;charset=utf-8
Content-Length: 976
Date: Thu, 26 Jun 2008 09:09:36 GMT
Connection: close


The problem we encounter with http 1.1 enabled
Below is the header by a sniffer tool, obviously in the request 1, "Authorization : Basic xxxxxxxxx" is missing, although I did set username/password with stub.
----Request 1:----
POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "Retrieve"
User-Agent: Axis/1.4
Host: coconut.asiapacific.hpqcorp.net:13080
Transfer-Encoding: chunked
----Response 1:----
HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=655A7C3CF62E3B9B2131F2649CF6C161; Path=/sc62server
WWW-Authenticate: Basic realm="CASM"
Connection: close
Content-Type: text/html;charset=utf-8
Content-Length: 40
Date: Thu, 26 Jun 2008 09:21:28 GMT
<HTML><BODY>Not Authorized</BODY></HTML>
----Request 2----
POST /sc62server/PWS/ChangeManagement.wsdl HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "Retrieve"
User-Agent: Axis/1.4
Transfer-Encoding: chunked
Authorization: Basic U01RQ0ludFVzZXI6cGVyZg==
Host: coconut.asiapacific.hpqcorp.net:13080
Cookie: JSESSIONID=655A7C3CF62E3B9B2131F2649CF6C161
---Response 2---
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Connection: close
Content-Type: text/xml;charset=utf-8
Content-Length: 281
Date: Thu, 26 Jun 2008 09:21:28 GMT
Connection: close



> Axis 1.4 with apache commons httpclient 3.1, throws "session no longer valid"
> -----------------------------------------------------------------------------
>
>                 Key: AXIS-2746
>                 URL: https://issues.apache.org/jira/browse/AXIS-2746
>             Project: Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>         Environment: jdk 1.5, axis 1.4, httpclient 3.1
>            Reporter: Daniel Woo
>
> 1. add codec 1.3 and httpclient 3.1 to classpath
> 2. change client-config.wsdd, replace the line below
>   <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"></transport>
>   To this:
>   <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"></transport>
> 3. generate a stub and execute the stub, to access two exposed actions, the server has basic http authentication
> 4. exceptions will be thrown
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: Session no longer valid
>  faultActor: Server
>  faultNode: 
>  faultDetail: 
> 	{http://xml.apache.org/axis/}stackTrace: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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org