[英]grails wsdl2java script in Cxf Client plugin does not generate any java classes
I'm trying to run in grails the wsdl2java script in eclipse. 我正在尝试在Eclipse中运行wsdl2java脚本。
The console says : 控制台说:
"Generating java stubs from WSDL_URL?WSDL Completed wsdl2java"
“从WSDL_URL生成Java存根?WSDL已完成wsdl2java”
But in the end it shows TERMINATED and does not create any java classes. 但是最后它显示了TERMINATED,并且没有创建任何Java类。
I can't see what is wrong and where is the error. 我看不到哪里出了问题以及哪里出了错误。
I've tried it with other wsdl file and it worked fine. 我已经尝试过与其他wsdl文件,它工作正常。
My config.groovy file looks like this: 我的config.groovy文件如下所示:
cxf {
client{
MessagingServiceSoapClient{
wsdl = http://webapi.mymarketing.co.il/Messagi/MessagingService.asmx?WSDL
//wsdlArgs = ['-autoNameResolution','-frontend','jaxws21']
clientInterface = org.tempuri.MessagingServiceSoap
serviceEndpointAddress = http://webapi.mymarketing.co.il/Messagi/MessagingService.asmx
}
}
}
EDIT: I've found out the ERROR but not the solution to it: cxf ToolErrorListener - src-resolve.4.2: Error resolving component 's:schema' 编辑:我发现了错误,但不是解决方案:cxf ToolErrorListener-src-resolve.4.2:解决组件's:schema'时出错
I assume you are using the grails-cxf-client plugin. 我假设您正在使用grails-cxf-client插件。
I believe you are supposed to surround the client
node with a cxf
node as follows: 我相信您应该按如下所示用
cxf
节点围绕client
节点:
cxf {
client {
simpleServiceClient {
//used in wsdl2java
wsdl = "docs/SimpleService.wsdl" //only used for wsdl2java script target
namespace = "cxf.client.demo.simple"
client = false //defaults to false
bindingFile = "grails-app/conf/bindings.xml"
outputDir = "src/java"
allowChunking = true //false
//used for invoking service
clientInterface = cxf.client.demo.simple.SimpleServicePortType
serviceEndpointAddress = "${service.simple.url}"
}
//Another example real service to use against wsd2java script
stockQuoteClient {
wsdl = "http://www.webservicex.net/stockquote.asmx?WSDL"
clientInterface = net.webservicex.StockQuoteSoap
serviceEndpointAddress = "http://www.webservicex.net/stockquote.asmx"
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.