1 package org.objectweb.celtix.systest.type_test.soap; 2 3 4 import javax.jws.WebService; 5 import javax.xml.ws.Endpoint; 6 7 import org.objectweb.celtix.systest.common.TestServerBase; 8 import org.objectweb.celtix.systest.type_test.TypeTestImpl; 9 import org.objectweb.type_test.doc.TypeTestPortType; 10 11 public class SOAPDocLitServerImpl extends TestServerBase { 12 13 public void run() { 14 15 Object implementor = new SOAPTypeTestImpl(); 16 String address = "http://localhost:9007/SOAPService/SOAPPort/"; 17 Endpoint.publish(address, implementor); 18 } 19 20 public static void main(String args[]) { 21 try { 22 SOAPDocLitServerImpl s = new SOAPDocLitServerImpl(); 23 s.start(); 24 } catch (Exception ex) { 25 ex.printStackTrace(); 26 System.exit(-1); 27 } finally { 28 System.out.println("done!"); 29 } 30 } 31 32 @WebService(serviceName = "SOAPDocLitService", portName = "SOAPPort", 33 endpointInterface = "org.objectweb.type_test.doc.TypeTestPortType", 34 targetNamespace = "http://objectweb.org/type_test/doc") 35 class SOAPTypeTestImpl extends TypeTestImpl implements TypeTestPortType { 36 } 37 } 38 | Popular Tags |