WSDL Wizard
I'm trying to use the wsdl wizard to consume a wsdl. However, when I get the the "Generate Java Coe From Wsdl or Wadl" form I get the following error when putting in the URL
"Wsdl url connection exception".
Ok, so it doesn't like my URL, but what could be wrong with it. This same wsdl imports just fine into Delphi (yes I still use Delphi ;) )
Thanks in advance.
请先登录再写评论。
Hello Preston,
Could you please send me URL you tried to use? If it's accessible, there
could be another one problem. We do not accept Content-Type text/html for
requested wsdl documents. So, if it's prohibited for you to send me the URL,
you can check response header of it and send it to me.
Thanks,
Konstantin
P.S. Have you set up you proxy correctly?
import java.net.URLConnection;
import java.net.URL;
import java.io.*;
public class Test {
//TODO Just paste your wsdl url to WSDL_URL
static final String WSDL_URL = "https://api.betdaq.com/v2.0/api.wsdl";
public static void main(String[] args) throws Exception {
URLConnection conn = new URL(WSDL_URL).openConnection();
for (String key : conn.getHeaderFields().keySet()) {
System.out.println(key + ": " + conn.getHeaderField(key));
}
// BufferedReader in = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
// String line;
// while ((line = in.readLine()) != null) {
// System.out.println(line);
// }
}
}
"Preston" <presotn_mcfarland@adp.com> wrote in message
news:27399326.195511217886288272.JavaMail.jive@app4.labs.intellij.net...
>
>
>