You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by David Q Levitt <dq...@us.ibm.com> on 2002/11/18 22:50:25 UTC
how to set cookie in SOAPHTTPConnection?
How do I pass a LtpaCookie to a web service using a SOAP call? I believe
the cookie should be passed in the http header (not the SOAP header). I've
constructed the SOAP Call but when I execute soapCall.getSOAPTransport() I
get a null returned. If I try to construct the SOAPTransport as:
SOAPTransport soapTransport = new SOAPHTTPConnection(), then when I do
soapTransport.getHeaders() I get a null returned. There is no
soapTransport.setHeaders() method.
What am I missing here?
Thanks much for any help.
- Dave Levitt
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: how to set cookie in SOAPHTTPConnection?
Posted by Scott Nichol <sn...@scottnichol.com>.
I'm not sure what is available for various versions of Apache SOAP.
With the current code base, SOAPHTTPConnection has a setCookies method.
Also, Call has an overloaded invoke method that accepts HTTP headers as
a Hashtable:
public Response invoke(URL url, String SOAPActionURI, Hashtable
headers) throws SOAPException
These may have been added after 2.3.1 was released, so they may only be
in the current code.
Scott Nichol
----- Original Message -----
From: "David Q Levitt" <dq...@us.ibm.com>
To: <so...@xml.apache.org>
Sent: Monday, November 18, 2002 4:50 PM
Subject: how to set cookie in SOAPHTTPConnection?
>
>
>
>
> How do I pass a LtpaCookie to a web service using a SOAP call? I
believe
> the cookie should be passed in the http header (not the SOAP header).
I've
> constructed the SOAP Call but when I execute
soapCall.getSOAPTransport() I
> get a null returned. If I try to construct the SOAPTransport as:
> SOAPTransport soapTransport = new SOAPHTTPConnection(), then when I do
> soapTransport.getHeaders() I get a null returned. There is no
> soapTransport.setHeaders() method.
>
> What am I missing here?
>
> Thanks much for any help.
>
> - Dave Levitt
>
>
> --
> To unsubscribe, e-mail:
<ma...@xml.apache.org>
> For additional commands, e-mail:
<ma...@xml.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: how to set cookie in SOAPHTTPConnection?
Posted by Scott Nichol <sn...@scottnichol.com>.
I'm not sure what is available for various versions of Apache SOAP.
With the current code base, SOAPHTTPConnection has a setCookies method.
Also, Call has an overloaded invoke method that accepts HTTP headers as
a Hashtable:
public Response invoke(URL url, String SOAPActionURI, Hashtable
headers) throws SOAPException
These may have been added after 2.3.1 was released, so they may only be
in the current code.
Scott Nichol
----- Original Message -----
From: "David Q Levitt" <dq...@us.ibm.com>
To: <so...@xml.apache.org>
Sent: Monday, November 18, 2002 4:50 PM
Subject: how to set cookie in SOAPHTTPConnection?
>
>
>
>
> How do I pass a LtpaCookie to a web service using a SOAP call? I
believe
> the cookie should be passed in the http header (not the SOAP header).
I've
> constructed the SOAP Call but when I execute
soapCall.getSOAPTransport() I
> get a null returned. If I try to construct the SOAPTransport as:
> SOAPTransport soapTransport = new SOAPHTTPConnection(), then when I do
> soapTransport.getHeaders() I get a null returned. There is no
> soapTransport.setHeaders() method.
>
> What am I missing here?
>
> Thanks much for any help.
>
> - Dave Levitt
>
>
> --
> To unsubscribe, e-mail:
<ma...@xml.apache.org>
> For additional commands, e-mail:
<ma...@xml.apache.org>
>
>