无法从NetBeans中的WSDL URL创建Web服务客户端 [英] Unable to create Web Service Client from WSDL URL in NetBeans

查看:142
本文介绍了无法从NetBeans中的WSDL URL创建Web服务客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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

这是由于添加了新的事件处理框架 在0.95之后.生成资源的构建过程中的步骤 各种消息的文件,似乎需要可写的DOM 执行.

This is due to the new event-handling framework that has been added after 0.95. The step in the build process that generates the resource files for the various messages, seems to require a writable DOM implementation.

如消息所示,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

使用XPath/XQuery需要另外下载 saxonb9-0-0-4j.zip并放置在文件的类路径中 其中包含的saxon9.jar和saxon9-dom.jar.可用的拉链 这里.由于以下原因,我们无法以二进制分发形式分发此zip: 许可问题.

Using XPath/XQuery requires an additional download of saxonb9-0-0-4j.zip and placing on the classpath of the files saxon9.jar and saxon9-dom.jar that it contains. The zip is available here. We cannot distribute this zip in a binary distribution due to licensing issues.

因此,我想到了在类路径中更改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服务客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆