开发者

What is the best way to generate client code for a CXF service?

I'd like to generate a client for my CXF service so I tried the Axis 2 code generator but it doesn't quite开发者_StackOverflow中文版 generate straightforward-to-use code. I expected something like client.getEmployeeByName("John Doe") but I have to create request classes and set the parameters on them.

What is the best way to generate client code for a CXF service?


What about just using the CXF wsdl2java command to generate the code?


just gave cxf a go to try to replace axis.. my goal was to replace the wsdl2java target in my maven pom files - im disapointed. the documentation and examples plainly sux. it appears that you have to have a local installation and reference to local resources to make the job execute (they provide a java command line based example to integrate in maven builds. it will in both examples requerre you to install something locally.

imo cxf is a nogo for client handling until they provide som industrialized tools

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜