wsimport和301重定向

时间:2019-03-20 10:56:02

标签: redirect wsdl http-status-code-301 wsimport

我有一个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重定向?

0 个答案:

没有答案