Freigeben über


BizTalk Error: WCF Service Consuming Wizard

When you try to using Biztalk WCF Service Consuming Wizard, you get an error message.

Error details: "Error consuming WCF service metadata. Object reference not set to a instance of an object."

As Below:

image

Resolutions:

1, Generate WSDL and XSD files by using svcutil tool
    > svcutil.exe /t:metadata https://yourservice

2, Verify <xsd:schema> nodes in WSDL file, make sure the node has a target namespace define. It doesn't matter what attribute value you use, maybe just looks like <xsd:schema targetNamespace=https://any.

3, Select Metadata Files(WSDL and XSD) as the source 

image

4, Everything should be fine.