Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Does Cassini 1.1 support WSE 2.0?
Guest
#1 Posted : Thursday, April 20, 2006 8:23:44 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi-

Does Cassini 1.1 support WSE 2.0? I tried this in a sample C# WebService running on Cassini but the SoapContext keeps returning a null in my webmethod.

Thanks
Ultidev Team
#2 Posted : Friday, April 21, 2006 6:27:46 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Orcus.

Yes, Cassini 1.1 fully supports WSE 2.0. There might be a couple of reasons why you get null while trying to access SoapContext from your web service method - though both would lead to null SoapContext under IIS as well as Cassini:
1) You use WS client that doesn't send WS-* headers. For example, if you use web browser to point to your http://localhost:port/WebService1.asmx - you will get null under IIS and Cassini. Your client needs to talk WS-* for your service to get SoapContext. Make sure when you build your client, you add WSE 2.0 support first, then add Web Reference pointing to your web service, and third, out of two versions of the client proxy classes, instantiate one that ends with "Wse", like "new localhost.Service1Wse()".

2) This may sound silly, but make sure you access WSE.RequestSoapContext.Current, not WSE.SoapContext.Current in your web service.

Again, both scenarios will return null SoapContext under IIS as well as Cassini if not implemented correclty.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.