How to reference a local XML Schema file correctly?

前端 未结 3 1317
别跟我提以往
别跟我提以往 2020-11-22 15:36

I\'m having this problem with referencing my XML Schema in an XML file.

I have my XSD in this path:

C:\\environment\\workspace\\maven-ws\\ProjectXmlS         


        
3条回答
  •  眼角桃花
    2020-11-22 16:08

    If you work in MS Visual Studio just do following

    1. Put WSDL file and XSD file at the same folder.
    2. Correct WSDL file like this YourSchemeFile.xsd

    3. Use visual Studio using this great example How to generate service reference with only physical wsdl file

    Notice that you have to put the path to your WSDL file manually. There is no way to use Open File dialog box out there.

提交回复
热议问题