You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Michael Timpe <MT...@t-online.de> on 2002/02/09 00:40:26 UTC

Interop Problem MS SOAP Toolkit <-> Java SOAP

Hi,

first of all I would like to say "Thank You" to the community. Your help will always be helpful. Thanks a lot.

Now I have the following problem:

I deployed a web service using Java SOAP using a session scope. I wrote a SOAP Client using the Microsoft SOAP Toolkit (V. 2.0 SP2). It seems that the MS Toolkit does not keep track of the session. Each call of a service method will generate a new Session - in fact that means that the server side session scope degrates to a request scope. 

Background: I woul like to implement a basic login. If I'm not able to keep track of the session, this will not be possible.

Within the MS Toolkit I implemented the IHeaderHandler-interface that should be a possible solution for that problem. But it doesn't work. The IHeaderHandler will not be invoked for the response of the SOAP service.

Greetings

Michael



--------------------------------------------------------------------------------
Michael Timpe
Melchiorstr. 24
50670 Köln
eMail: mail@michael-timpe.de

Re: Interop Problem MS SOAP Toolkit <-> Java SOAP

Posted by Paramdeep Singh <ma...@yahoo.com>.
Micheal,

MS-SOAP toolkit does NOT support cookies!

When you deploy any web-service in Session Scope, using Apache SOAP, then Apache SOAP tracks this session using cookies.
But MS-SOAP toolkit does NOT send cookies! So you are loosing the session.

If you want to maintain session, with an MS-SOAP toolkit, then you have to use SOAP headers for this purpose. (Remember NOT HTTP headers)
This can be achieved using IHeaderHandler interface. (As you are trying to do!)

But Apache SOAP 2.2 does NOT provide a good support for writing SOAP Headers.

So basically maintaining session between the two is very difficult!

I think that Apache Axis does have a support for writing SOAP headers. I have not tried it, but you can check it out!

Hope that it helps.

With Warm Regards,
Paramdeep
  ----- Original Message ----- 
  From: Michael Timpe 
  To: SOAP Mailing List 
  Sent: Saturday, February 09, 2002 5:10 AM
  Subject: Interop Problem MS SOAP Toolkit <-> Java SOAP


  Hi,
   
  first of all I would like to say "Thank You" to the community. Your help will always be helpful. Thanks a lot.
   
  Now I have the following problem:
   
  I deployed a web service using Java SOAP using a session scope. I wrote a SOAP Client using the Microsoft SOAP Toolkit (V. 2.0 SP2). It seems that the MS Toolkit does not keep track of the session. Each call of a service method will generate a new Session - in fact that means that the server side session scope degrates to a request scope. 
   
  Background: I woul like to implement a basic login. If I'm not able to keep track of the session, this will not be possible.
   
  Within the MS Toolkit I implemented the IHeaderHandler-interface that should be a possible solution for that problem. But it doesn't work. The IHeaderHandler will not be invoked for the response of the SOAP service.
   
  Greetings
   
  Michael
   
   
   
  --------------------------------------------------------------------------------
  Michael Timpe
  Melchiorstr. 24
  50670 Köln
  eMail: mail@michael-timpe.de

Re: Interop Problem MS SOAP Toolkit <-> Java SOAP

Posted by Paramdeep Singh <ma...@yahoo.com>.
Micheal,

MS-SOAP toolkit does NOT support cookies!

When you deploy any web-service in Session Scope, using Apache SOAP, then Apache SOAP tracks this session using cookies.
But MS-SOAP toolkit does NOT send cookies! So you are loosing the session.

If you want to maintain session, with an MS-SOAP toolkit, then you have to use SOAP headers for this purpose. (Remember NOT HTTP headers)
This can be achieved using IHeaderHandler interface. (As you are trying to do!)

But Apache SOAP 2.2 does NOT provide a good support for writing SOAP Headers.

So basically maintaining session between the two is very difficult!

I think that Apache Axis does have a support for writing SOAP headers. I have not tried it, but you can check it out!

Hope that it helps.

With Warm Regards,
Paramdeep
  ----- Original Message ----- 
  From: Michael Timpe 
  To: SOAP Mailing List 
  Sent: Saturday, February 09, 2002 5:10 AM
  Subject: Interop Problem MS SOAP Toolkit <-> Java SOAP


  Hi,
   
  first of all I would like to say "Thank You" to the community. Your help will always be helpful. Thanks a lot.
   
  Now I have the following problem:
   
  I deployed a web service using Java SOAP using a session scope. I wrote a SOAP Client using the Microsoft SOAP Toolkit (V. 2.0 SP2). It seems that the MS Toolkit does not keep track of the session. Each call of a service method will generate a new Session - in fact that means that the server side session scope degrates to a request scope. 
   
  Background: I woul like to implement a basic login. If I'm not able to keep track of the session, this will not be possible.
   
  Within the MS Toolkit I implemented the IHeaderHandler-interface that should be a possible solution for that problem. But it doesn't work. The IHeaderHandler will not be invoked for the response of the SOAP service.
   
  Greetings
   
  Michael
   
   
   
  --------------------------------------------------------------------------------
  Michael Timpe
  Melchiorstr. 24
  50670 Köln
  eMail: mail@michael-timpe.de