linqpad-soap-driver icon indicating copy to clipboard operation
linqpad-soap-driver copied to clipboard

Error connecting to WCF Service

Open dannief opened this issue 8 years ago • 1 comments

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.

dannief avatar Mar 14 '16 19:03 dannief

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.

jawn avatar Aug 05 '16 08:08 jawn