dylanmei / linqpad-soap-driver

A SOAP service driver for LINQPad
MIT License
65 stars 25 forks source link

Error connecting to WCF Service #7

Open dannief opened 8 years ago

dannief commented 8 years ago

I tried to use this driver with linqpad 5 and got the following error:

Warning> This web reference does not conform to WS-I Basic Profile v1.1. Warning> SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementation guidelines that recommend how a set of core Web services specifications should be used together to develop interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema. Error> No classes were generated. > Cannot create a connection

The service works in WCF Test Client

Any ideas?

Thanks.

jawn commented 8 years ago

This is because conformance to WS-I 1.1 is a prerequisite in the current code: WebServicesInteroperability.CheckConformance(WsiProfiles.BasicProfile1_1, reference, violations);

If I change this to WebServicesInteroperability.CheckConformance(WsiProfiles.None, reference, violations);

This validation passes, however, the result I get with a SOAP 1.0 web service is ServiceDescriptionImportWarnings.NoCodeGenerated, and so the import does not succeed either.

It's not clear to me whether that's caused by the WSDL or whether the current code does not support SOAP 1.0.

Your results may differ.