最近项目需要调用wsdl接口,然后我用java的wsimport工具解析.NET接口,命令如下:
root@XXX-OptiPlex-7050:/usr/lib/jvm/java-8-openjdk-amd64/bin# wsimport -keep -s JavaSrc https://payment.ipay88.com.my/ePayment/WebService/MHGatewayService/GatewayService.svc?wsdl
但是报错如下:
正在解析 WSDL...
[WARNING] schema_reference: 由于 accessExternalSchema 属性设置的限制而不允许 'https' 访问, 因此无法读取方案文档 'GatewayService.svc?xsd=xsd0'。
https://payment.ipay88.com.my/ePayment/WebService/MHGatewayService/GatewayService.svc?wsdl=wsdl0#types?schema1的第 1 行
正在生成代码...
正在编译代码...
百度了一大堆,都是说不允许“file”访问,竟然没有一个说https访问的,请各位大神指点。 另外 我用的系统是ubuntu