问题描述
我正在尝试使用NetBeans IDE 7.0中的选项WSDL URL
创建一个Web Service客户端.不幸的是,它无法创建一个,并且由于以下错误而失败:
I'm trying to create a Web Service Client using the option WSDL URL
in NetBeans IDE 7.0. Unfortunately, it is not able to create one and is failing with the following error:
除非saxon9-dom.jar位于类路径上,否则Saxon无法编写DOMResult
看到此错误消息后,我什至确认是否已将saxon9-dom.jar
添加到NetBeans中的库中.是的,它已经可用.我不知道为什么错误仍然出现.有人可以让我知道发生了什么事吗?
After seeing this error message, I even confirmed whether saxon9-dom.jar
is added to the Libraries in NetBeans. Yes, it is already available. I don't know why still the error is appearing. Can somebody let me know what is going wrong?
我正在尝试为此WSDL 创建Web服务客户端.在NetBeans中创建新的Web Service客户端时,我在客户端样式选项中选择JAX-WS Style
.
I'm trying to create web service client for this WSDL. I'm choosing JAX-WS Style
in Client Style option while creating New Web Service Client in NetBeans.
更新:
谷歌搜索之后,我从以下两个地方了解了一些线索:
UPDATE:
After googling, I read about some clues from the following 2 places:
1) http://www.mail -archive.com/fop-dev@xmlgraphics.apache.org/msg09659.html
如消息所示,Saxon在 单独的JAR,在构建时需要将其添加到类路径中 FOP中继线.
As the message indicates, Saxon offers such an implementation in a separate JAR, which needs to be added to the classpath when building FOP Trunk.
2) http://xmlbeans.apache.org/sourceAndBinaries/index.html
因此,我想到了在类路径中更改saxon9-dom.jar的操作.我以前使用的是saxonb9-1-0-8j.zip
中的saxon9-dom.jar,但是当我尝试包括saxonb9-0-0-8j.zip
中可用的saxon9-dom.jar时,此错误已消失,并且现在正得到另一个错误,如下所示.有任何想法/线索吗?
So, I thought of changing saxon9-dom.jar in the classpath. I was using saxon9-dom.jar from saxonb9-1-0-8j.zip
before, but when I tried to include saxon9-dom.jar available in saxonb9-0-0-8j.zip
, now this error has disappeared and am getting a different error now as shown below. Any ideas/clues?
推荐答案
Web服务是使用WSDL文件描述的,因此,要为它们创建Web使用者,必须指定WSDL URL.
Web Services are described using WSDL files, so in order to create a Web Consumer for them you'll have to specify the WSDL url.
您可以通过在URL的和中添加?WSDL来获得它.
You can obtain it by adding ?WSDL ar the and of the url.
例如:
CrudService.asmx变为
CrudService.asmx becomes
CrudService.asmx?WSDL
CrudService.asmx?WSDL
(您已经测试了Web服务,并在最后显示"Tester",只需将其替换为"WSDL"即可.)
(It you have tested your web service and it appears ?Tester at the end, just replace it with ?WSDL).
这篇关于无法从NetBeans中的WSDL URL创建Web服务客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!