简体   繁体   English

Axis2 Web服务客户端应用程序

[英]Axis2 Web service client application

I'm trying to create Web Service application with Axis2 in Eclipse. 我正在尝试在Eclipse中使用Axis2创建Web Service应用程序。 When I generate Web Service for my class I make wizard to generate client application for my Web Service. 当我为我的班级生成Web Service时,我将创建向导以为Web Service生成客户端应用程序。 There is "Generate a JUnit test case to test the service" checkbox. "Generate a JUnit test case to test the service"复选框。

Wizard generates client application and the skeleton for unit test classes. 向导将生成客户端应用程序和单元测试类的框架。

But what if I add new method to my Web Service or change the definition of existing one? 但是,如果我向Web服务中添加新方法或更改现有方法的定义怎么办? But the test cases can be already modified by someone and there can be a lot of hand-made logic. 但是测试用例可能已经被某人修改,并且可能有很多手工制作的逻辑。

Is there a way to do some kind of "update" for client application and unit tests skeletons to fit with changes in Web Service application without rewriting the existing one? 有没有一种方法可以对客户端应用程序和单元测试框架进行某种“更新”,以适应Web Service应用程序中的更改,而无需重写现有的更新?

Thank you 谢谢

I found the solution by myself. 我自己找到了解决方案。 The issue actually is not exactly an issue. 该问题实际上并非完全是问题。

My concern was that Web Service generation wizard will rewite my changes to generated unit tests. 我担心的是,Web Service生成向导会重新生成对生成的单元测试的更改。 But after few checks I see that wizard rewrites the stub classes and proxy classes for Web Service. 但是经过几次检查,我发现该向导重写了Web Service的存根类和代理类。 This is exactly what I need. 这正是我所需要的。

Thanks everyone 感谢大家

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM