如何从https请求获取WSDL文件的操作?

时间:2019-02-08 10:27:48

标签: java wsdl wsdl2java

如何从 HTTPS 请求中获取 WSDL文件的操作? 我尝试了此操作,但不适用于 HTTPS 请求。它适用于 HTTP // url = https // xyz.com?wsdl

//url = https//xyz.com?wsdl
WsdlProject project = new WsdlProject();
    WsdlInterface[] wsdls = WsdlImporter.importWsdl(project,url);
    int index=0;
    for(WsdlInterface wsInterface: wsdls) {
        index++;
        Operation[] operations = wsInterface.getAllOperations();
        for(Operation op:operations) {
            ApiOperation operation = new ApiOperation();
            operation.setName(op.getName());
            //Adding operation to a list
        }
    }

如何获取用于HTTPS网址的WSDL文件?

0 个答案:

没有答案