Generating deployable files to transfer manually to Web servers
To deploy a Web service to a Web server that is not listed in the
Servers view in your workspace, you generate deployable files and transfer them to the Web server.
To modify a Web service after it is deployed to a Web server, edit the service in your data development project and then deploy it to the server again.
For J2EE Web servers and products that support pureQuery: If you select pureQuery as the access method for your database and you transfer deployable files manually to the Web server, also transfer the pureQuery JAR files to your Web server.
To generate deployable files:
- In the Data Project Explorer, right-click the Web service and then select
Build and Deploy. The
Deploy Web Service wizard opens.
- Under
Web server, specify the type of Web server that you want to deploy the Web service to.
- In the
Type field, select one of the supported types of Web server.
- Click
Build deployable files only, do not deploy to a Web server.
- Optional:
Modify other options as needed. For information about the fields, press F1.
- Click Finish to generate the deployable files. To view the generated files, open the Navigator view or the J2EE perspective. The files are created in the following directories:
Refer to the Messages portion of the SQL Results view for the exact path.
- For J2EE Web servers on Linux® and UNIX®:
workspace_directory/project_directory/DataServerWebServices/name_of_Web_service
- For J2EE Web servers on Windows®:
workspace_directory\project_directory\DataServerWebServices\name_of_Web_service
- For DataPower® on Linux and UNIX:
workspace_directory/project_directory/DataServerWebServices/name_of_Web_service/artifacts/
- For DataPower on Windows:
workspace_directory\project_directory\DataServerWebServices\name_of_Web_service\artifacts\
Transfer the files to the Web server using your preferred method. Refer to your Web server documentation for the steps to deploy the Web service.
After deploying a Web service, you can access it by using the following URLs:
To see the content of the WSDL file, use the URL http://server:port/context_root/wsdl.
- For access by SOAP/HTTP requests: http://server:port/context_root/services/service_name
- For access by REST-like POST (text/xml) or POST (url-encoded) requests: http://server:port/context_root/rest/service_name/operation_name
- For access by REST-like GET (url-encoded) requests: http://server:port/context_root/rest/service_name/operation_name?parm1=val1&parm2;=val2&...
Related tasks
Deploying Web services through the workbench
Adding parameters to Web services
Related reference
Supported Web servers, SOAP engines, and databases