[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]