Java API发布Web Service步骤
1.定义服务接口
?
package com.test.soap;import javax.xml.ws.Endpoint;public class Server{ public static void main(String args[]) { MessageReceiver implementor = new MessageReceiverImpl(); String address = "http://10.0.0.46:9000/messageReceiver"; Endpoint.publish(address, implementor); }}
?4.在浏览器输入http://10.0.0.46:9000/messageReceiver?wsdl看到wsdl文档则发布成功。