<servlet-class>videorentalstore.webservice.gen.RentalServiceRPC_Impl</servlet-class> </servlet>
<servlet-mapping> <servlet-name>RentalServiceRPC
</servlet-name> <url-pattern>/RPC</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>RentalServiceDoc</servlet-name> <servlet-class>videorentalstore.webservice
.gen.RentalServiceDoc_Impl</servlet-class> </servlet>
<servlet-mapping> <servlet-name>RentalServiceDoc
</servlet-name> <url-pattern>/DOC</url-pattern>
</servlet-mapping></web-app>neste arquivo estamos criando dois servlet um pro rpc e outro pro document. Definimos as classes que iram responder por estes servlet,
videorentalstore.webservice.gen.RentalServiceRPC_Impl e videorentalstore.webservice.gen.RentalServiceDoc_Impl, além dos url-pattern, /RPC e /DOC. isto esta certo?
webservices.xml
<webservices version="1.1"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:impl="http://www.ime.usp.br/SOD06
"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
<webservice-description>
<webservice-description-name>VideoRentalStoreService</webservice-description-name>
<wsdl-file>WEB-INF/wsdl/VideoRental.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>RentalServiceRPCPort</port-component-name>
<wsdl-port>impl:RentalServiceRPCPort</wsdl-port>
<service-endpoint-interface>videorentalstore.webservice.gen.RentalServiceRPC</service-endpoint-interface>
<service-impl-bean>
<servlet-link>RentalServiceRPC</servlet-link>
</service-impl-bean>
</port-component>
<port-component>
<port-component-name>RentalServiceDocPort</port-component-name>
<wsdl-port>impl:RentalServiceDocPort</wsdl-port>
<service-endpoint-interface>videorentalstore.webservice.gen.RentalServiceDoc</service-endpoint-interface>
<service-impl-bean>
<servlet-link>RentalServiceDoc</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>