Claims
- 1. A method, in a data processing system, for deploying a web service, comprising:
retrieving a deployment descriptor for the web service; determining a location type for the web service from the deployment descriptor; and deploying the web service based on the location type for the web service, wherein the deployment descriptor describes how the web service may be deployed in the data processing system.
- 2. The method of claim 1, wherein the location type indicates that the web service is defined by one of a web service description language (WSDL) document only, a JavaBean only, and both a WSDL document and a JavaBean.
- 3. The method of claim 1, wherein deploying the web service based on the location type for the web service includes generating an internal definition of the web service using location type attributes associated with the location type.
- 4. The method of claim 1, wherein if the location type is determined to indicate that the web service is defined by a JavaBean, deploying the web service includes:
generating a web service description language (WSDL) document for the web service based on the JavaBean; and generating an internal definition of the web service based on the WSDL document.
- 5. The method of claim 4, wherein deploying the web service further includes adding a Java binding to the internal definition of the web service.
- 6. The method of claim 1, wherein if the location type is determined to indicate that the web service is defined by both a JavaBean and a web services description language (WSDL) document, deploying the web service includes:
generating an internal definition of the web service based on the WSDL document; and adding a Java binding to the internal definition of the web service, the Java binding corresponding to the JavaBean of the web service.
- 7. The method of claim 6, wherein adding the Java binding includes:
performing introspection of the JavaBean to determine data types used by the JavaBean; and mapping the data types used by the JavaBean to data types defined in the internal definition.
- 8. The method of claim 6, wherein adding the Java binding includes:
adding namespaces for Java extensibility elements; and adding extensibility elements for mapping to data types used by the JavaBean.
- 9. The method of claim 6, wherein adding the Java binding includes:
removing existing bindings and service elements in the internal definition; and adding a service element with a port that references the Java binding.
- 10. The method of claim 6, wherein adding the Java binding includes adding mappings between data type information obtained from the WSDL document and data types used by the JavaBean.
- 11. The method of claim 1, wherein if the location type is determined to indicate that the web service is defined by a web services description language (WSDL) document only, deploying the web service includes:
generating an internal definition of the web service based on the WSDL document.
- 12. A computer program product in a computer readable medium for deploying a web service, comprising:
first instructions for retrieving a deployment descriptor for the web service; second instructions for determining a location type for the web service from the deployment descriptor; and third instructions for deploying the web service based on the location type for the web service, wherein the deployment descriptor describes how the web service may be deployed in the data processing system.
- 13. The computer program product of claim 12, wherein the location type indicates that the web service is defined by one of a web service description language (WSDL) document only, a JavaBean only, and both a WSDL document and a JavaBean.
- 14. The computer program product of claim 12, wherein the third instructions for deploying the web service based on the location type for the web service include instructions for generating an internal definition of the web service using location type attributes associated with the location type.
- 15. The computer program product of claim 12, wherein for the location type being determined to indicate that the web service is defined by a JavaBean, the third instructions for deploying the web service include:
instructions for generating a web service description language (WSDL) document for the web service based on the JavaBean; and instructions for generating an internal definition of the web service based on the WSDL document.
- 16. The computer program product of claim 15, wherein the third instructions for deploying the web service further include instructions for adding a Java binding to the internal definition of the web service.
- 17. The computer program product of claim 12, wherein for the location type being determined to indicate that the web service is defined by both a JavaBean and a web services description language (WSDL) document, the third instructions for deploying the web service include:
instructions for generating an internal definition of the web service based on the WSDL document; and instructions for adding a Java binding to the internal definition of the web service, the Java binding corresponding to the JavaBean of the web service.
- 18. The computer program product of claim 17, wherein the instructions for adding the Java binding include:
instructions for performing introspection of the JavaBean to determine data types used by the JavaBean; and instructions for mapping the data types used by the JavaBean to data types defined in the internal definition.
- 19. The computer program product of claim 17, wherein the instructions for adding the Java binding include:
instructions for adding namespaces for Java extensibility elements; and instructions for adding extensibility elements for mapping to data types used by the JavaBean.
- 20. The computer program product of claim 17, wherein adding the Java binding includes:
instructions for removing existing bindings and service elements in the internal definition; and instructions for adding a service element with a port that references the Java binding.
- 21. The computer program product of claim 17, wherein the instructions for adding the Java binding include instructions for adding mappings between data type information obtained from the WSDL document and data types used by the JavaBean.
- 22. The computer program product of claim 12, wherein for the location type being determined to indicate that the web service is defined by a web services description language (WSDL) document only, the third instructions for deploying the web service include:
instructions for generating an internal definition of the web service based on the WSDL document.
- 23. A web services bus off-ramp, comprising:
means for retrieving a deployment descriptor for a web service; means for determining a location type for the web service from the deployment descriptor; and means for deploying the web service based on the location type for the web service, wherein the deployment descriptor describes how the web service may be deployed in the data processing system.
RELATED APPLICATIONS
[0001] The present invention is related to similar subject matter of co-pending and commonly assigned U.S. patent application Ser. No. ______ (Attorney Docket No. AUS920020608US1) entitled “Dynamic Web Service Implementation Discovery and Selection Apparatus and Method,” filed on ______ and U.S. patent application Ser. No. ______ (Attorney Docket No. AUS920020610US1) entitled “Apparatus and Method for Selecting a Web Service in Response to a Request from a Client Device,” filed on ______, both of which are hereby incorporated by reference.