我试图在grails中运行eclipse中的wsdl2java脚本。
控制台上写着:
“从WSDL_URL?WSDL完成的wsdl2java生成java存根”
但最后,它显示终止,不创建任何java类。
我看不出哪里出了问题,哪里出了差错。
我已经在其他wsdl文件中尝试过了,它运行得很好。
我的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
}
}
}编辑:我发现了错误,但没有找到它的解决方案: cxf ToolErrorListener -src解析.4.2:错误解析组件的:schema‘
发布于 2013-08-29 10:12:21
我想你使用的是grails-cxf-客户端插件。
我相信您应该用一个client节点包围cxf节点,如下所示:
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"
}
}
}https://stackoverflow.com/questions/18481433
复制相似问题