我试图用groovy WSClient连接到Exchange服务器wsdl,但不能因为我收到一个空文件(当我想分析wsdl时)。 我使用下面几行:WSClient无法连接交换wsdl on https
Map mapClient=[
"https.truststore":"/path/jssecacerts",
"https.truststore.pass":"changeit",
"https.keystore":"/path/cacerts",
"https.keystore.pass":"changeit"
]
def proxy=new WSClient("https://mail.exchangeserver:443/ews/services.wsdl", this.class.classLoader)
proxy.setSSLProperties(mapClient)
proxy.setBasicAuthentication("user","password")
proxy.initialize()
()它基本上是失败的proxy.initialize因为XML上的空文件解析错误的。 但是,当我使用浏览器时,我有完整的wsdl文件。
这不是SSL握手,因为我已经打了几个小时才能使它工作。这是我得到的第一个错误...
我认为这是由于某种原因错误的BasicAuthentication。我这样说的原因是:我可以注释掉认证行,我有相同的结果。
任何提示?
您使用的是WSClient和Groovy的哪个版本? – 2010-11-23 10:06:17