我有一个wsdl文件http://85.81.229.78/services/prod/eIndkomst/wsdl/IndkomstOplysningPersonHent.wsdl
运行wsimport
会给出一些警告和以下错误
[ERROR] org.xml.sax.SAXParseException; systemId: http://digitaliser.dk/resource/247441/artefact/SKAT_HovedOplysninger.xsd; lineNumber: 2; columnNumber: 2; The markup in the document following the root element must be well-formed.
line 2 of http://85.81.229.78/services/prod/eIndkomst/wsdl/IndkomstOplysningPersonHent.wsdl
原因是http://digitaliser.dk/resource/247441/artefact/SKAT_HovedOplysninger.xsd使用www:
进行301重定向到http s 。$ curl -i http://digitaliser.dk/resource/247432/artefact/SKAT_HovedOplysningerSvar.xsd
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Location: https://www.digitaliser.dk/resource/247432/artefact/SKAT_HovedOplysningerSvar.xsd
...
wsimport
是否可以处理301
重定向?