Hi
I am trying to throw typed faults from schemas exposed as WCF in BizTalk. I am able to throw the typed faults using IErrorHandler interface. TO decorate the client with fault atribute when the WCF is consumed, I am trying to set up the WSDL extension and adding it as a endpoint behaviour. I am including the additional fault schema in the wsdl.
The WSDL is generated by the endpoint behaviour. But I am not able to create the client using the wsdl. It throws the error
Error: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter.Error: Cannot import invalid schemas. Compilation on the XmlSchemaSet failed.
Then I saved the generated WSDL and published it. I used the ServiceMetadata service behaviour and used the published wsdl in the externalMetadataLocation and set the httpGetEnabled to true. This generates the client without any issues.
Why is the client not getting generated in the first case when the same wsdl is being used? Do I have to set some other property?
Thanks and Regards
Raci