Java 1.8中的SOAP1.1到SOAP1.2

时间:2018-09-06 12:00:19

标签: java web-services

我有简单的Web服务:

package tst;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class TstService {
    @WebMethod
    public int tst(String data)
    {
        return 1;
    }

    public static void main(String[] args ){
        System.out.println("starting test service");
        Endpoint.publish("http://0.0.0.0:1234/TstService", new TstService());
        System.out.println("test service started");
    }
}

它支持SOAP 1.1协议。如何使该服务运行SOAP 1.2?

0 个答案:

没有答案