简体   繁体   English

无法为我的 java Web 服务访问 WSDL

[英]cannot access WSDL for my java webservice

I hava been developing a webservice in Java SE 6 with the Webserver JBOSS 5 and have been trying to work around a problem that came up when I attempted to access my web service's wsdl file through a jsp page I created. I hava been developing a webservice in Java SE 6 with the Webserver JBOSS 5 and have been trying to work around a problem that came up when I attempted to access my web service's wsdl file through a jsp page I created. I got this error:我收到了这个错误:

13:32:13,324 WARN  [ServiceDelegateImpl] Cannot access wsdlURL:http://127.0.0.1:8080/RepEngSDK/?wsdl

at first i researched why I would get this error and how to get around it and that led me to a thread on this website on how to setup certificates and keyStores and trustStores起初我研究了为什么我会收到这个错误以及如何解决它,这让我在这个网站上找到了一个关于如何设置证书和 keyStores 和 trustStores 的帖子

Problem calling web service from within JBOSS EJB Service 从 JBOSS EJB 服务中调用 web 服务时出现问题

which then pointed me to this thread:然后将我指向这个线程:

Java client certificates over HTTPS/SSL Java 通过 HTTPS/SSL 的客户端证书

So I started setting my certificates and keystores and when it came to set Java's system properties such as javax.net.ssl.keyStore with the cmd line所以我开始设置我的证书和密钥库,当涉及到设置 Java 的系统属性时,例如 javax.net.ssl.keyStore 与 cmd 行

java -Djavax.net.ssl.keyStore=...

I get a no classdeffound error for javax.net.ssl.keyStore, javax.net.ssl.trustStore etc...我收到 javax.net.ssl.keyStore、javax.net.ssl.trustStore 等的 no classdeffound 错误...

Looking back at my error message and the threads I was using to get around it I noticed I wasn't even attempting at first to connect through a https url like these people had been trying to connect with.回顾我的错误消息和我用来解决它的线程,我注意到我一开始甚至没有尝试通过 https url 连接,就像这些人一直在尝试连接的那样。

SSL authentication is not necessary for my webservice but I can't seem to figure out why I get ServiceDelegateImpl error in the first place. SSL 身份验证对于我的 Web 服务不是必需的,但我似乎无法弄清楚为什么我首先会收到 ServiceDelegateImpl 错误。 I am completely at a loss on what to do from here.我完全不知道从这里做什么。

Admittedly this is my first attempt at a webservice and I am worried that I am completely looking over simple problems.诚然,这是我第一次尝试 Web 服务,我担心我完全在研究简单的问题。 I apologize in advance if this is the case but I promise have been researching very diligently and attempting any solutions I have come across.如果是这种情况,我提前道歉,但我 promise 一直在非常努力地研究并尝试我遇到的任何解决方案。

1) Since your using http:// not https:// you don't need to worry about setting a keystore up with certs. 1)由于您使用http://而不是https://您无需担心使用证书设置密钥库。 That can save yourself a headache right there.这可以让你自己头疼。

2) I think the problem is the url you are using. 2)我认为问题出在您使用的 url 上。 RepEngSDK/?wsdl, It doesn't look right, would guess at... RepEngSDK/?wsdl,看起来不太对,猜猜看……

http://127.0.0.1:8080/RepEngSDK/repengsdk?wsdl 

or just...要不就...

http://127.0.0.1:8080/RepEngSDK?wsdl 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM