Error 107 Cannot import wsdl

Aug 31, 2009 at 2:44 PM
Edited Aug 31, 2009 at 2:47 PM

I tried importing a WSDL generated out of VS 2005 and receive the error below.  I've been unable to identify the cause of the error or how to correct it.

Error 107 Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.ABC.Com/ITWebservices/']/wsdl:binding[@name='ITHttpPost']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.ABC.Com/ITWebservices/']/wsdl:service[@name='IT']/wsdl:port[@name='ITHttpPost']  0 0 

Aug 31, 2009 at 5:41 PM


Did you try importing using the XmlSerializer option?

Aug 31, 2009 at 5:57 PM
Edited Aug 31, 2009 at 6:54 PM

I should have made it clear that I am using the WSDL import extention.  That is what is generating the error.

Aug 31, 2009 at 7:58 PM

Ok fine.

I'm actually saying that you might try setting the XmlSerializer option at the Service Contract model level in properties. By default in WCF you have the DataContractSerializer set.


Sep 1, 2009 at 11:50 AM

The XmlSerializer was on when I received this error, I just double checked it.

Sep 1, 2009 at 10:26 PM

Just to discard WSDL issues, you may try calling svcutil.exe with the /serializer:XmlSerializer parameter.

In case you are getting your WSDL from an IIS host, then you might take a look at this post: