简体   繁体   English

关联的类文件与WSDL

[英]Associated Class files with a WSDL

Is there a way to get a list of associated class files used to build a web service, using Eclipse, or other utilities? 有没有一种方法可以使用Eclipse或其他实用程序来获取用于构建Web服务的关联类文件的列表?

The service type is a top down java bean web service 服务类型是自上而下的Java Bean Web服务

I want to know how the WSDL knows what classes to create. 我想知道WSDL如何知道要创建哪些类。 And I'm not sure what files to look at. 而且我不确定要查看哪些文件。

What I eneded up doing was 我所想做的是

  1. Open the .WSDL file in WebContent/WEB-INF/wsdl/ 在WebContent / WEB-INF / wsdl /中打开.WSDL文件
    This allows you to view source, or design view of the WSDL. 这使您可以查看WSDL的源代码或设计视图。
  2. Then you click on the desired input or output arrow next to the chart in design view. 然后,单击设计视图中图表旁边的所需输入或输出箭头。 This will oppen the associated XSD file. 这将取消关联的XSD文件。
  3. Within the XSD Files, if I find <xs:complexType name="classNameWillBeHere"> tags, these are what the generated classes would have been called. 在XSD文件中,如果我找到<xs:complexType name="classNameWillBeHere">标记,则这些将被称为生成的类。
  4. From there I do a Navigate/Find Type - using the className from the complex type. 从那里,我执行导航/查找类型-使用复杂类型中的className。
  5. The class is returned in the project src folder. 该类在项目src文件夹中返回。 (assuming you've already built the web service from the WSDL) (假设您已经从WSDL构建了Web服务)

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

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