Specifies the application’s web tier configuration.
sun-application (sun-application.xml)
The following table describes subelements for the web element.
Table A–126 web Subelements
Element |
Required |
Description |
---|---|---|
only one |
Contains the web URI for the application. |
|
only one |
Contains the web context root for the application. |
Contains the web URI for the application. Must match the corresponding element in the application.xml file.
web (sun-application.xml)
none - contains data
Specifies a name and optional publish location for a web service.
sun-web-app (sun-web.xml), enterprise-beans (sun-ejb-jar.xml)
The following table describes subelements for the webservice-description element.
Table A–127 webservice-description subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies a unique name for the web service within a web or EJB module. |
|
zero or one |
Specifies the URL of a directory to which a web service’s WSDL is published during deployment. |
Specifies a unique name for the web service within a web or EJB module.
webservice-description (sun-web.xml, sun-ejb-jar.xml)
none - contains data
Specifies information about a web service endpoint.
servlet (sun-web.xml), ejb (sun-ejb-jar.xml)
The following table describes subelements for the webservice-endpoint element.
Table A–128 webservice-endpoint subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies a unique name for a port component within a web or EJB module. |
|
zero or one |
Specifies the automatically generated endpoint address. |
|
zero or one |
Specifies the authentication configuration for an EJB web service endpoint. |
|
zero or one |
Specifies a custom authentication provider binding. |
|
zero or one |
Specifies that the communication between client and server is NONE, INTEGRAL, or CONFIDENTIAL. |
|
zero or one |
Specifies the WSDL service element that is being referenced. |
|
zero or one |
Specifies the automatically generated name of a tie implementation class for a port component. |
|
zero or one |
Specifies the automatically generated name of the generated servlet implementation class. |
Specifies a valid URL pointing to a final WSDL document. If not specified, the WSDL document associated with the service-ref in the standard J2EE deployment descriptor is used.
service-ref (sun-web.xml, sun-ejb-jar.xml, sun-application-client.xml)
none - contains data
// available via HTTP <wsdl-override>http://localhost:8000/myservice/myport?WSDL</wsdl-override>
// in a file <wsdl-override>file:/home/user1/myfinalwsdl.wsdl</wsdl-override>
Specifies the WSDL port.
port-info (sun-web.xml, sun-ejb-jar.xml, sun-application-client.xml)
The following table describes subelements for the wsdl-port element.
Table A–129 wsdl-port subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the namespace URI. |
|
only one |
Specifies the local part of a QNAME. |
Specifies the URL of a directory to which a web service’s WSDL is published during deployment. Any required files are published to this directory, preserving their location relative to the module-specific WSDL directory (META-INF/wsdl or WEB-INF/wsdl).
webservice-description (sun-web.xml, sun-ejb-jar.xml)
none - contains data
Suppose you have an ejb.jar file whose webservices.xml file’s wsdl-file element contains the following reference:
META-INF/wsdl/a/Foo.wsdl
Suppose your sun-ejb-jar file contains the following element:
<wsdl-publish-location>file:/home/user1/publish</wsdl-publish-location>
The final WSDL is stored in /home/user1/publish/a/Foo.wsdl.