小编Mar*_*rco的帖子

Eclipse Web Service Client向导和CXF

我正在尝试使用Eclipse Juno SR2向导创建Web服务客户端.该服务已正确部署并在Glassfish 3.1.2服务器上运行,我可以看到WSDL文件或使用Axis创建客户端.如果我尝试使用CXF(尝试过CXF 2.6.8和2.7.5)在为GLassfish 3.1.2创建的动态Web项目中创建客户端,则会出现问题:

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -client -d /Users/dude/Documents/SOA/workspace/gf/.cxftmp/src -classdir /Users/dude/Documents/SOA/workspace/gf/build/classes -p http://testservice.csiaf.unifi.it/=it.unifi.csiaf.testservice -impl -validate -exsh false -dns true -dex true -wsdlLocation http://localhost:8888/TestServiceGlassfish/TeamsService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
wsdl2java - Apache CXF 2.6.8

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/dude/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/apache-cxf-2.6.8/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http://localhost:8888/TestServiceGlassfish/TeamsService?wsdl …
Run Code Online (Sandbox Code Playgroud)

eclipse web-services cxf webservices-client

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

cxf ×1

eclipse ×1

web-services ×1

webservices-client ×1