Error 107 Cannot import wsdl

Aug 31, 2009 at 3:44 PM
Edited Aug 31, 2009 at 3: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 

Coordinator
Aug 31, 2009 at 6:41 PM

Hi,

Did you try importing using the XmlSerializer option?

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

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

Coordinator
Aug 31, 2009 at 8: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 12:50 PM

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

Coordinator
Sep 1, 2009 at 11: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: http://blogs.infosupport.com/blogs/raimondb/archive/2008/02/14/Unable-to-generate-a-WCF-proxy-using-svcutil-but-retreiving-the-wsdl-works_3F00_.aspx