| | |
| | | */ |
| | | @Component |
| | | @WebServiceClient(name = "WebService", |
| | | wsdlLocation = "file:/D:/work_2025/lxzn-system-xhj/src/main/resources/wsdl/WebService.asmx.wsdl", |
| | | wsdlLocation = "classpath:/wsdl/WebService.asmx.wsdl", |
| | | targetNamespace = "http://tempuri.org/") |
| | | public class WMSWebService extends Service { |
| | | |
| | |
| | | static { |
| | | URL url = null; |
| | | try { |
| | | url = new URL("file:/D:/work_2025/lxzn-system-xhj/src/main/resources/wsdl/WebService.asmx.wsdl"); |
| | | url = new URL("classpath:/wsdl/WebService.asmx.wsdl"); |
| | | } catch (MalformedURLException e) { |
| | | java.util.logging.Logger.getLogger(WMSWebService.class.getName()) |
| | | .log(java.util.logging.Level.INFO, |
| | | "Can not initialize the default wsdl from {0}", "file:/D:/work_2025/lxzn-system-xhj/src/main/resources/wsdl/WebService.asmx.wsdl"); |
| | | "Can not initialize the default wsdl from {0}", "classpath:/wsdl/WebService.asmx.wsdl"); |
| | | } |
| | | WSDL_LOCATION = url; |
| | | } |