Blankman
Blankman

Reputation: 266900

Calling WSE service from a .net 3.5 application

I am trying to call a .asmx (WSE) web service from a .net 3.5 application.

This is possible correct? It seems when I add a web reference the API is completely different than when I add a reference in a .net 2.0 app.

Upvotes: 0

Views: 1367

Answers (2)

John Saunders
John Saunders

Reputation: 161773

If the obsolete WSE service uses any of the WS-* protocols, then you will not be able to call is by using a Web Reference. There is no support for WSE in Visual Studio 2008 or above.

You may be able to make it work using "Add Service Reference", which will create a WCF client. You may still have issues due to the fact that WSE implemented earlier versions of some of the protocols.

Upvotes: 0

Mehrdad Afshari
Mehrdad Afshari

Reputation: 421960

You can use the Add Web Reference button in the dialog displayed (Add service reference) to add a pre-3.0 style reference.

By default, when you add a service reference, VS will generate a class that uses WCF. It's not an issue but you might prefer to stick to the old style.

By the way, WCF is more flexible and unified approach to communication in .NET 3.0 onwards. You should consider it.

Upvotes: 3

Related Questions