Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 36239 invoked by uid 500); 22 Apr 2003 15:35:20 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 36196 invoked from network); 22 Apr 2003 15:35:20 -0000 Message-ID: <6B1DF6EEBA51D31182F2009027404368038CAB47@mail-in.comverse.com> From: Feldman Leonid To: "'axis-user@ws.apache.org'" Subject: RE: Authentication using Soap headers Date: Tue, 22 Apr 2003 11:29:57 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C308E4.082A4720" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C308E4.082A4720 Content-Type: text/plain; charset="iso-8859-1" Hello, I don't have much experience with soap headers but I was able to get to them via setHeader/getHeader. All stubs were generated by WSDL2Java. stub = (MyServiceStub) service.getMyServiceSoap(); TokenInfo ti = new TokenInfo(); // it's used for the auth tokens ti.setTokenKey("asdf"); stub.setHeader(" http://tempuri.org/","TokenInfo ", ti); Regards, LF -----Original Message----- From: Larry Edwardson [mailto:bunnys@tpg.com.au] Sent: Tuesday, April 22, 2003 3:55 AM To: Axis-user Subject: Authentication using Soap headers Hi, I have posted this request before with no success, I am authenticating my users using soap headers, which are sent with the first call to the service, my problem is I cant access them on the service side, I have tried getting the MessageContext but it is null, do I have to write a custom Handeler to gain access to the Message Context, or is there another way to gain access to my soap headers on the service side, I hope someone out there has experience with this problem, Thanks. ------_=_NextPart_001_01C308E4.082A4720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
       &nb= sp;   =20 Hello,
       &nb= sp;   =20 I don't have much experience with soap headers=20 but 
       &nb= sp;   =20 I was able to get to them via = setHeader/getHeader.       &nb= sp;           &nb= sp;   =20
 
       &nb= sp;   =20 All stubs were generated by WSDL2Java.
       &nb= sp;   =20
       &nb= sp;   =20 stub =3D (MyServiceStub) = service.getMyServiceSoap();
 
       &nb= sp;   =20 TokenInfo ti =3D new TokenInfo(); // it's used for the auth=20 tokens
          &n= bsp; ti.setTokenKey("asdf");
      = ;   =20   stub.setHeader("http://tempuri.org/","TokenInfo= ",=20 ti); 
       &nb= sp;           &nb= sp;       =20
       &nb= sp;   =20 Regards,
       &nb= sp;   =20 LF
 
-----Original Message-----
From: Larry Edwardson=20 [mailto:bunnys@tpg.com.au]
Sent: Tuesday, April 22, 2003 = 3:55=20 AM
To: Axis-user
Subject: Authentication using = Soap=20 headers

Hi, I have=20 posted this request before with no success, I am
authenticating my = users=20 using soap headers, which are sent with the
first call to the = service, my=20 problem is I cant access them on the
service side, I have tried = getting the=20 MessageContext but it is null, do
I have to write a custom = Handeler to gain=20 access to the Message Context,
or is there another way to gain = access to my=20 soap headers on the service
side, I hope someone out there has = experience=20 with this problem, = Thanks.

------_=_NextPart_001_01C308E4.082A4720--