By examine the org.apache.axis.client.Call class implementation, I found
that the cookie property set in Call object is not passed MessageContext
object which is used in HTTPSender object. So I have made a patch to the
Call invoke method as following:
msgContext.setProperty (
org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
getProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE));
Should we report this as bug or there is a right way to set cookie
property?
Thanks,
Doug
(904)854-5613
Doug.Liao@alltelm
d.com To: [EMAIL PROTECTED]
cc:
10/26/2002 12:57 Subject: set cookie property
PM
Please respond to
axis-user
I am using axis1.0 to invoke a message style soap service. The service
requires a cookie so I set the property as following.
...
call.removeProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE);
call.setProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
"SMCHALLENGE=YES; path=/; domain=.phdtest.com");
call.setMaintainSession(true);
..
However, when I check the http request header as int the following dump
from TCPMonitor, the cookie property is not set. Therefore, I get a
"HTTP/1.0 403 Forbidden" response.
What is the correct way to set cookie in org.apache.axis.client.Call
object? or othere any othere suggestions. Appreciate your help.
============================================
POST /http://alp2000.jax.alltel.com/PortalSAPI/AppAdminServices.asp
HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.0
Host: localhost:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 452
Authorization: Basic Y3BzZGlyOjEyMzQ1Ng==
Thanks,
Doug
(904)854-5613