我有简单的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?