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:
1) For the service, a SEI file is created
2) For the models, ser, deser and helper files are created.
But I cant understand what are the use of all these SEI, ser, deser and helper files.
Any valid explanation on this will be much appreciated.
BOUNTY EDIT:
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 is the Java interface corresponding to the Web service port type being implemented. It is defined by the JAX-RPC, which specifies the language mapping from WSDL 1.1 to Java. Ref
Or
A service endpoint interface ( SEI ) is a Java interface that declares the methods that a client can invoke on the service. Ref
These ser
, dser
, helper
are helpers to convert an XML document into a java object and vice versa (WebServices). Ref
Files generated in the server project: ( 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:
Service endpoint interface (SEI): itso.bean.WeatherJavaBean_SEI.java
is the interface defining the methods exposed in the Web service.
WSDL file: /WebContent/WEB-INF/wsdl/WeatherJavaBean.wsdl
describes the Web service.
Deployment descriptor: webservices.xml
, ibm-webservices-ext.xml
and ibm-webservices-bnd.xml
. These files describe the Web service according to the Web services for J2EE
style ( JSR 109
). The JAX-RPC
mapping is described in the WeatherJavaBean_mapping.xml
file.
Data mapping files: The helper beans in the itso.objects package perform the data conversion from XML to Java objects and back.
A servlet is defined in the Web deployment descriptor to invoke the JavaBean.
Hope this information help you.
Those files are related to the WebSphere mapping between Java, WSDL, and XML. 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...).
Here are some psuedo-helpful links, that may provide some more insight into your question:
All these files are basically generated for webservice.
A web service ia basically a port between 2 running applications independant of the framework or language.
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.
For this a stub is generated. This stub is basically an interface(SEI).
Also websphere needs additional files for implementing the webservices functionality, thus tge helper files.
This is basically the summary of it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.