URLConnection FileNotFoundException for non-standard HTTP port sources

后端 未结 8 959
野性不改
野性不改 2020-11-29 04:30

I was trying to use the Apache Ant Get task to get a list of WSDLs generated by another team in our company. They have them hosted on a weblogic 9.x server on http://....co

8条回答
  •  感情败类
    2020-11-29 05:05

    I've tried that locally - using the code provided - and I don't get a FileNotFoundException except when the server returns a status 404 response.

    Are you sure that you're connecting to the webserver you intend to be connecting to? Is there any chance you're connecting to a different webserver? (I note that the port number in the code doesn't match the port number in the link)

提交回复
热议问题