1 package org.apache.hello_world_soap_http;
3 import java.net.MalformedURLException;
5 import javax.xml.namespace.QName;
6 import javax.xml.ws.WebEndpoint;
7 import javax.xml.ws.WebServiceClient;
8 import javax.xml.ws.WebServiceFeature;
9 import javax.xml.ws.Service;
17 @WebServiceClient(name =
"SOAPService",
18 wsdlLocation =
"classpath:/com/freeminscafe/apache/commons/cxf/wsdl/sample1/helloworld.wsdl",
19 targetNamespace =
"http://apache.org/hello_world_soap_http")
22 public final static URL WSDL_LOCATION;
24 public final static QName SERVICE =
new QName(
"http://apache.org/hello_world_soap_http",
"SOAPService");
25 public final static QName SoapPort =
new QName(
"http://apache.org/hello_world_soap_http",
"SoapPort");
29 url =
new URL(
"classpath:/com/freeminscafe/apache/commons/cxf/wsdl/sample1/helloworld.wsdl");
30 }
catch (MalformedURLException e) {
31 java.util.logging.Logger.getLogger(
SOAPService.class.getName())
32 .log(java.util.logging.Level.INFO,
33 "Can not initialize the default wsdl from {0}",
"classpath:/com/freeminscafe/apache/commons/cxf/wsdl/sample1/helloworld.wsdl");
39 super(wsdlLocation, SERVICE);
42 public SOAPService(URL wsdlLocation, QName serviceName) {
43 super(wsdlLocation, serviceName);
47 super(WSDL_LOCATION, SERVICE);
53 public SOAPService(WebServiceFeature ... features) {
54 super(WSDL_LOCATION, SERVICE, features);
60 public SOAPService(URL wsdlLocation, WebServiceFeature ... features) {
61 super(wsdlLocation, SERVICE, features);
67 public SOAPService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
68 super(wsdlLocation, serviceName, features);
76 @WebEndpoint(name =
"SoapPort")
78 return super.getPort(SoapPort,
Greeter.class);
88 @WebEndpoint(name =
"SoapPort")
89 public
Greeter getSoapPort(WebServiceFeature... features) {
90 return super.getPort(SoapPort,
Greeter.class, features);