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.
About this task
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, you must also transfer the pureQuery JAR files
to your Web server.
Procedure
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:
- 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\
Refer to the Messages portion of the SQL Results view for the
exact path.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.
Results
After deploying a Web
service, you can access it by using the following URLs:
- 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&...
To see the content of the WSDL file, use the URL http://
server:
port/
context_root/wsdl.