Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > client state with AXIS WebService

Reply
Thread Tools

client state with AXIS WebService

 
 
Reinhold Mannsberger
Guest
Posts: n/a
 
      02-25-2004
Hello!

I'm trying to access an AXIS WebService from .NET.
After a lot of WSDL hacking I was able to create a proxy,
furthermore it was necessary to implement a SoapExtension
to get it working.
However there remains a problem: The session state.
I know about the CookieContainer property. But the
CookieContainer never gets filled right
(CookieCollection.Count is always 0).
It is for sure, that there are cookies:
-------------------
HTTP/1.1 200 200 OK
Date: Tue, 24 Feb 2004 11:39:46 GMT
Server: Netscape-Enterprise/6.0
Content-type: text/xml; charset=utf-8
Set-Cookie: GX_jst=90c7c67c662d6165;Path=/NASApp/axis;
path=/NASApp/System
Set-Cookie: GX_jst=90c7c67c662d6165;Path=/NASApp/axis
Set-Cookie: JSESSIONID=-
8498574363882303979;Path=/NASApp/axis
X-Cache: MISS from www.ksv.at
Keep-Alive: timeout=180
Connection: Keep-Alive
Transfer-Encoding: chunked

153
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<response method="ksvLogin">
<payload>
<info>ok</info>
</payload>
</response>
</soapenv:Body>
</soapenv:Envelope>
-------------------

As a consequence of the missing cookies subsequent calls
to WebService methods always return an "User not logged
in" error.

I have an fully functional Java client for the same
WebService:
------------------- (code snippet)
java.net.URL portAddress = new java.net.URL
("http://www.ksv.at/testws/services/urn:ksv-premium");
KSVInfoServiceLocator locator = new KSVInfoServiceLocator
();
KSVInfoBindingStub stub = (KSVInfoBindingStub)
locator.getKSVInfoPort(portAddress);
stub.setMaintainSession(true);
// calling login method
// calling other methods
-------------------
The Java client works fine.
When I set
-------------------
stub.setMaintainSession(false);
-------------------
then I the "User not logged in" error occurs on subsequent
WebService method calls. So it crucial that this value is
set to true.
But how can the same be done in .NET?

Any help on this topic would be appreciated.


Regards,

Reinhold

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Webservice-Client (Axis) with HTTP-Authentication: how to do? Reinhard Java 0 03-29-2006 09:23 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
Calling Axis WebService out of .net Client Christian Wilhelm Java 0 12-16-2004 03:28 PM
axis.jar does not contain org.apache.axis.client.ServiceClient? Joey Vendetta Java 0 04-01-2004 05:51 PM



Advertisments