Resources for IT Professionals > Forums Home > BizTalk Server Forums > BizTalk Server General > WSDL Extensions not working correctly in EndPoint Behaviour in wshttp Custom Isolated Port
Ask a questionAsk a question
 

QuestionWSDL Extensions not working correctly in EndPoint Behaviour in wshttp Custom Isolated Port

  • Saturday, November 07, 2009 5:30 AMRaci Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

All Replies

  • Tuesday, November 10, 2009 8:48 AMGreg.ForsytheMVP, AnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    My only guess would be a slight difference between the Wsdl returned by the behaviour and that return by using the externalMetadataLocation property of ServiceMetadata.
    Have youdone a comparison between the two files?
  • Friday, November 13, 2009 8:02 AMRaci Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Greg

    I saved the wsdl returned by the behaviour and used the same wsdl in external metadata.

    Regards
    Raci