内联WSDL而不是wsdl:import [英] Inline WSDL instead of wsdl:import
本文介绍了内联WSDL而不是wsdl:import的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当前,我的@WebService
带注释类的WSDL创建了一个描述类的外部wsdl.它是通过以下方式实现的:
Currently the WSDL of my @WebService
annotated class creates an external wsdl that describe the classes. It does this by:
<wsdl:import location="http://localhost:8080/myapp-web/Service?wsdl=Service.wsdl"
namespace="http://somenamespace.org/" />
该Web服务由eclipse/maven构建,并在jboss 7.1上运行.
The webservice is being built by eclipse/maven and is being run on jboss 7.1.
是否有一种方法(最好是通过注释)使wsdl生成内联?
Is there a way (preferably by an annotation) to make the wsdl generated inline?
推荐答案
在网上搜索了几个小时之后,我终于找到了答案.
After several hours searching the web I eventually found the answer.
接口和实现类上具有相同的targetNamespace,从而将WSDL导出到一个文件中.
Having the same targetNamespace on both Interface and implementation Class made the WSDL be exported in one file.
@WebService(targetNamespace="http://yournamespace.com")
这篇关于内联WSDL而不是wsdl:import的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文