1 22 package org.jboss.test.ws.jaxws.webserviceref; 23 24 import java.net.MalformedURLException ; 25 import java.net.URL ; 26 import javax.xml.namespace.QName ; 27 import javax.xml.ws.Service; 28 import javax.xml.ws.WebEndpoint; 29 import javax.xml.ws.WebServiceClient; 30 31 32 38 @WebServiceClient(name = "TestEndpointService", targetNamespace = "http://org.jboss.ws/wsref", wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl") 39 public class TestEndpointService 40 extends Service 41 { 42 43 private final static URL TESTENDPOINTSERVICE_WSDL_LOCATION; 44 45 static { 46 URL url = null; 47 try { 48 url = new URL ("file:./resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl"); 49 } catch (MalformedURLException e) { 50 e.printStackTrace(); 51 } 52 TESTENDPOINTSERVICE_WSDL_LOCATION = url; 53 } 54 55 public TestEndpointService(URL wsdlLocation, QName serviceName) { 56 super(wsdlLocation, serviceName); 57 } 58 59 public TestEndpointService() { 60 super(TESTENDPOINTSERVICE_WSDL_LOCATION, new QName ("http://org.jboss.ws/wsref", "TestEndpointService")); 61 } 62 63 68 @WebEndpoint(name = "TestEndpointPort") 69 public TestEndpoint getTestEndpointPort() { 70 return (TestEndpoint)super.getPort(new QName ("http://org.jboss.ws/wsref", "TestEndpointPort"), TestEndpoint.class); 71 } 72 73 } 74 | Popular Tags |