Svcutil with local dosen't make code files, but on-line does
I have wsdl it xsd files locally and am trying to get the proxy file svcutil.exe
using this command
svcutil *.wsdl *.xsd /l:cs
I am getting this error:
Error: unable to import wsdl: portType
Detail: Exception was thrown when running WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: There was a problem loading the provided XSD documents: The reference to the schema element named "callcreditheaders" and the namespace "urn: xxxx / yyyy: zzzz" could not be resolved because the element definition could not be found in the schema for targetNamespace 'urn: xxxx / yyyy: zzzz '.
Please check the provided XSDs and try again.
XPath for error Source://wsdl:definitions[@targetNamespace='urn:xxxx/yyyy:zzzz']/wsdl:portType[@name='Soap']
But if I put these files in local IIS in a web application and use this command
svcutil [http://localhost/XX/YY.wsdl] /l:cs
He works.
Why does svcutil work differently, even the same files? And is there a way to work with a local call?
source to share
No one has answered this question yet
Check out similar questions: