axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Sambi" <>
Subject Re: C# Cllient , Axis Server, Session Management
Date Mon, 08 Mar 2004 16:47:39 GMT
I'm trying to use your SessionHandler to manage session between C# client
and Axis web service but I do not succeed to set the SOAP header in my wsdl.
Can you send me an example of your wsdl? And also how do you manage sessions
in your C# client?

Here it's my changes to wsdl that don't work:
I added the definition of sessionID element in 'Types' section:
  <xsd:schema targetNamespace=http://localhost/axis/services/MyService>
    <xsd:complexType name="Session">
        <xsd:element name="sessionID">
              <xsd:element name="ID" type="xsd:string"/>

I added the definition of soap header message in 'Messages' section:
<wsdl:message name="soapHeader">
    <wsdl:part name="SessionID" type="impl:Session"

and I added the soap header binding to my operation in 'Binding' section:
<wsdlsoap:header message="impl:soapHeader" part="SessionID" use="encoded"
encodingStyle="" />


----- Original Message -----
From: "Abhinav Maheshwari" <>
To: <>
Sent: Monday, February 16, 2004 3:15 PM
Subject: RE: C# Cllient , Axis Server, Session Management

> Hi Srinivas,
> You need to use the SessionHandler to maintain session information but
> are problems with using the one supplied with Axis. This is a modified
> version of the SessionHandler supplied with Axis which can be used.
> Also, you need to manually put the SOAP Header in the WSDL generated by
> so that Visual Studio can generate the code for session variables.
> Regards,
> Abhinav
> -----Original Message-----
> From: Srinivas Vemula []
> Sent: Monday, February 16, 2004 6:30 PM
> To:
> Subject: C# Cllient , Axis Server, Session Management
> Hi All,
>       I am new to using axis. We are trying to communciate from a .NET
> C# client. Can any one let me know, how to track sessions in this
> scenario? Basically, we would like to put some authorization info in  a
> session object as the first call from the client will be for
>     After that client will call  other Axis (web) services for executing
> some more tasks. We would like to check for the authorization
> information for subsequent calls from the same client and deny services
> if we dont find the relevant information in the session object .
>     Any help or pointers to solve this? Thank you all for your help and
> time.
> srini
> --
> Srinivas Vemula                          +91 40 23547826- Ext 201
> Associate Consultant                     +91 40 23541447 (Fax)
> Mensamind                                +91 98497-42720 (Mobile)
> Hyderabad
> India
> The information contained in this e-mail is confidential and intended for
> the named recipient(s) only. If you are not an intended recipient of this
> email you must not copy, distribute or take any further action in reliance
> on it. You should delete it and notify the sender immediately.

View raw message