简体   繁体   English

Web服务自动生成的文件

[英]Web Service Auto Generated Files

When I create a new Web service using RSA 7.5 IDE and Web Sphere 7.0 server from a Web Application, then I can see a few auto-generated files created by this process, namely: 当我从Web应用程序使用RSA 7.5 IDE和Web Sphere 7.0服务器创建新的Web服务时,我可以看到由此过程创建的一些自动生成的文件,即:

1) For the service, a SEI file is created 1)对于服务,创建SEI文件

2) For the models, ser, deser and helper files are created. 2)对于模型,创建ser,deser和helper文件。

But I cant understand what are the use of all these SEI, ser, deser and helper files. 但是我无法理解所有这些SEI,ser,deser和helper文件的用途。

Any valid explanation on this will be much appreciated. 任何有效的解释将非常感激。

BOUNTY EDIT: BOUNTY编辑:

Bounty-Edit: 赏金编辑:

Since I did not get any response I would like to ask this question again - offering a bounty to encourage an in-depth answer. 由于我没有得到任何回复,我想再次提出这个问题 - 提供奖励以鼓励深入回答。 I would love to know how and when are these files used internally? 我很想知道这些文件是如何以及何时在内部使用的?

Regards, 问候,

Service Endpoint Interface (SEI): 服务端点接口(SEI):

SEI is the Java interface corresponding to the Web service port type being implemented. SEI是与正在实现的Web服务端口类型相对应的Java接口。 It is defined by the JAX-RPC, which specifies the language mapping from WSDL 1.1 to Java. 它由JAX-RPC定义,它指定从WSDL 1.1到Java的语言映射。 Ref 参考

Or 要么

A service endpoint interface ( SEI ) is a Java interface that declares the methods that a client can invoke on the service. 服务端点接口( SEI )是一个Java接口,它声明客户端可以在服务上调用的方法。 Ref 参考

These ser , dser , helper are helpers to convert an XML document into a java object and vice versa (WebServices). 这些serdserhelper是帮助者将XML文档转换为java对象,反之亦然(WebServices)。 Ref 参考

Files generated in the server project: ( WebSphere Application Server 6.1 Ref ) 服务器项目中生成的文件:WebSphere Application Server 6.1 Ref

According to the settings made during the run of the wizard, the following files in the WeatherJavaBeanWeb project have been created: 根据向导运行期间的设置,已创建WeatherJavaBeanWeb项目中的以下文件:

Service endpoint interface (SEI): itso.bean.WeatherJavaBean_SEI.java is the interface defining the methods exposed in the Web service. 服务端点接口(SEI): itso.bean.WeatherJavaBean_SEI.java是定义Web服务中公开的方法的接口。

WSDL file: /WebContent/WEB-INF/wsdl/WeatherJavaBean.wsdl describes the Web service. WSDL文件: /WebContent/WEB-INF/wsdl/WeatherJavaBean.wsdl描述了Web服务。

Deployment descriptor: webservices.xml , ibm-webservices-ext.xml and ibm-webservices-bnd.xml . 部署描述符: webservices.xmlibm-webservices-ext.xmlibm-webservices-bnd.xml These files describe the Web service according to the Web services for J2EE style ( JSR 109 ). 这些文件根据J2EE样式的Web服务( JSR 109 )描述Web服务。 The JAX-RPC mapping is described in the WeatherJavaBean_mapping.xml file. WeatherJavaBean_mapping.xml文件中描述了JAX-RPC映射。

Data mapping files: The helper beans in the itso.objects package perform the data conversion from XML to Java objects and back. 数据映射文件: itso.objects包中的辅助bean执行从XML到Java对象的数据转换。

A servlet is defined in the Web deployment descriptor to invoke the JavaBean. Web部署描述符中定义了一个servlet来调用JavaBean。

在此输入图像描述

Hope this information help you. 希望这些信息对您有所帮助

Those files are related to the WebSphere mapping between Java, WSDL, and XML. 这些文件与Java,WSDL和XML之间的WebSphere映射有关。 They are automatically generated, and should not need to be edited. 它们是自动生成的,不需要编辑。 You should pretend they are not there (except if they are not there you may have trouble deploying...). 你应该假装他们不在那里(除非他们不在那里你可能会有部署麻烦......)。

  • SEI - Service Endpoint Interface SEI - 服务端点接口
  • ser - Serialize ser - 序列化
  • deser - Deserialize deser - 反序列化
  • helper - ? 帮手 - ?

Here are some psuedo-helpful links, that may provide some more insight into your question: 以下是一些有用的链接,可以更深入地了解您的问题:

All these files are basically generated for webservice. 所有这些文件基本上都是为webservice生成的。

A web service ia basically a port between 2 running applications independant of the framework or language. Web服务基本上是两个独立于框架或语言的运行应用程序之间的端口。

Leta say if you are using java from one side of web service then for complete compilation the java end would need some class files that have those methids which you wish to call on the service. Leta说如果你从Web服务的一端使用java然后进行完整的编译,那么java端需要一些类文件,这些文件具有你希望在服务上调用的那些。

For this a stub is generated. 为此,生成存根。 This stub is basically an interface(SEI). 这个存根基本上是一个接口(SEI)。

Also websphere needs additional files for implementing the webservices functionality, thus tge helper files. 此外,websphere还需要其他文件来实现webservices功能,因此需要tge帮助文件。

This is basically the summary of it. 这基本上是它的总结。

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

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