设置工作空间之后,您可以通过创建或导入 Web Service 或 Web Service 客户机将要使用的资源,开始开发 Web Service。
设置 Web Service 首选项
在开始开发 Web Service 或客户机之前,您可以通过设置各种首选项来优化工作台以进行 Web Service 开发。
设置 WS-I 一致性的级别
Web Service WS-I 验证工具支持下列规范中概述的 WS-I 一致性级别:WS-I Basic Profile 1.1、1.2、2.0;WS-I Simple SOAP Binding Profile 1.0 (WS-I SSBP);WS-I Attachments
Profile 1.0 (WS-I AP);WS-I Basic Security Profile 1.0 (WS-I
BSP)。您可以根据需要选择使 Web Service 一致或不一致。例如,编码样式(RPC/编码)和 SOAP over JMS 协议不符合 WS-I。
创建支持 JAX-WS 的 WebSphere 服务器
JAX-WS Web Service 只能以支持 JAX-WS 运行时环境的服务器为目标,例如 IBM® WebSphere Application Server Liberty 概要文件或 WebSphere Application Server V7.0 或更高版本。
创建 WebSphere Application Server 和 Web 项目
如果计划创建将 WebSphere Application Server 用作其服务器的 Web Service,那么在开始创建 Web Service 之前,必须先安装必需版本的 WebSphere Application Server 并创建一个服务器。
创建 Liberty 概要文件服务器和 Web 项目
如果计划创建使用 WebSphere Application Server Liberty 概要文件 V8.5.5 的 Web Service,那么在创建 Web Service 之前,必须先安装并创建该服务器。
HTTP 和 JMS 传输方法
使用 WebSphere 运行时环境创建的 Web Service 除了支持现有的 HTTP 传输方法外,还支持 JMS 传输层。
这允许 Web Service 客户机和服务器使用 JMS 队列和主题(而不是 HTTP 连接)进行通信。单向请求和同步双向请求都受支持。
配置 IBM JRE 以与受保护的 WebSphere Application Server 通信
如果要使用 Web Service 向导来检索 HTTPS WSDL,或者如果要对受保护的 WebSphere Application Server 使用 Web Service 资源管理器,请使用这些步骤。如果遇到类似于 Error opening socket: javax.net.ssl.SSLHandshakeException: unknown certifcate 的错误,那么此任务将解决该问题。发生此错误的原因是,WebSphere Application Server 将安全证书用于协商其它基于 JRE 的应用程序通常不共享的安全连接。