On Wed, 2006-08-16 at 14:27 -0700, Karr, David wrote: > I have a standalone tool using SAAJ/SOAPConnection that I use to send a > web service request to an external provider, through SSL, with > proxy-auth and basic-auth. This works fine. When I use Ethereal to > monitor the protocol, I see the initial HTTP packet sending the > Proxy-Authorization, Authorization, User-Agent, and SOAPAction headers > (the last is set manually in my code), along with some other > miscellaneous headers. > > I'm now working on an implementation (sending the same message) using > commons-httpclient-3.0rc3, in WebLogic 8.1.4, with JDK 1.4.2. What I > find through Ethereal is that the first HTTP packet sends the > User-Agent, followed by a 407 (proxy auth required) response, followed > by an HTTP packet sending the proxy-authorization header. I never see > it send the Authorization header (basic) or the SOAPAction header > (manually set by my code). > > I'm using "client.getState().setProxyCredentials()" and > "client.getState().setCredentials()" to set the auth and proxy-auth > data. I'm using "postMethod.addRequestHeader()" to add the SOAPAction > header. > > What could I do to get more information about what is going wrong, or > fix the problem in the first place? >
David, Please take a look at the HttpClient logging guide [1] and authentication guide [2]. Most likely you might want to enable preemptive authentication in order to make sure HttpClient sends user credentials preemptively before being challenged by the target or proxy servers. Oleg [1] http://jakarta.apache.org/commons/httpclient/logging.html [2] http://jakarta.apache.org/commons/httpclient/authentication.html > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
