21 Aug 2009, 2:32pm
.net VB.NET:
by Derek

WCF and WSDL and HTTPS and WinForms

So everytime I bring a post to this blog, I try to make sure it something that other people don’t just post willy nilly. So here is an interesting problem I had the other day, and the series of searches and trials, and time spent to bring this to some poor soul looking for an answer.

The problem: You are using .NET 3.0 or 3.5, and you need to connect to an older Web Service. Specifically, you need to connect to a WSDL that is secured. The WebService address could be something such as: https://www.here.com/service.wsdl

When you use Visual Studio to make this connection it does many things incorrectly. The big error you are likely to encounter, less any specifics about the WSDL you are trying to connect to is:

Type TEXT/XML is not valid, Type Application/XML was expected.

In one easy little new Binding, we can make this all go away. For the novices here is a detailed explanation.

Take this custom binding here








Stick it into your Bindings section in App.Config and point the EndPoint to use that binding. You should be off and running in NO TIME!

*name

*e-mail

web site

leave a comment