简体   繁体   English

Java-如何使用Wdsl2Java导入的类

[英]Java - How to use Wdsl2Java imported classes

i'm working on a thesis project about Java and Soap web services, I'm a bit new to Soap and all of this webservices. 我正在从事有关Java和Soap Web服务的论文项目,对于Soap和所有这些Web服务我还是有点陌生​​。 What i'm going to do is to take some info from soap services that are already implemented and then make some processing on them with java and eclipse (that isn't my problem for now). 我要做的是从已经实现的soap服务中获取一些信息,然后使用java和eclipse对它们进行一些处理(目前这不是我的问题)。

For now, what i've done is importing with command "wdsl2java" all the wdls services that i have (that thery are not done by me), in this way i have all the classes inside eclipse, and also an interface that implements some methods.. 现在,我已经完成的工作是使用命令“ wdsl2java”导入我拥有的所有wdls服务(该理论没有由我完成),这样,我在eclipse中拥有了所有类,并且还实现了一些方法..

My question could be a lot stupid but, how can i use the classes imported in my project? 我的问题可能很愚蠢,但是,如何使用项目中导入的类? For example: what can i write on the main class to use data from soap services? 例如:我可以在主类上写些什么来使用soap服务中的数据? Thanks a lot to everyone 非常感谢大家

try to write a webservice client ,use your exposed webservice and play around with it. 尝试编写一个Web服务客户端,使用您公开的Web服务并试用它。

Thanks 谢谢

只是想一想,您可以使用SOAP UI代替主类来玩耍

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

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