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 Do...@alltelmd.com on 2002/10/26 18:57:20 UTC
set cookie property
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