Wednesday, August 4, 2010

Cannot import wsdl:port

Error: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is depend
ent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.xxx.xx.com/Service/SyncRiskProfileService/1.0']/wsdl:binding[@name='ISyncRiskBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.xxx.xx.com/Service/xxxxx/1.0']/wsdl:service[@name='SyncRiskxxx']/wsdl:port[@name='ISyncRiskService']

Solution is very simple actually svcutil looking for xsd's if you are using multiple xsd ,beacuse it's unable to load xsd. so, give xsd paths with spaces.
svcutil.exe

No comments: