When adding a Web reference to a BizTalk project, the following message appears:

 

There is a problem with the WSDL but you don’t get any extra information.

The cause was this part in the WSDL:

 

    <port binding=”tns:TestServicePortBinding” name=”TestServicePort”>

            <soap:address location=”REPLACE_WITH_ACTUAL_URL“/>

    </port>

 

Apparently a BizTalk project can’t handle an invalid location (a Console project doesn’t have any problem with this!).

The problem was solved by putting the filepath of the WSDL in the location attribute.

To find this problem i removed part after part of the WSDL untill the import went fine. It’s a good practice to identify different kinds of WSDL problems.