1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.juddi.samples;
18
19 import java.net.URL;
20
21 import javax.xml.namespace.QName;
22 import javax.xml.ws.Service;
23 import javax.xml.ws.WebEndpoint;
24 import javax.xml.ws.WebServiceClient;
25
26 import org.apache.juddi.v3.client.ClassUtil;
27
28
29
30
31
32
33
34
35
36
37 @WebServiceClient(name = "HelloWorld", targetNamespace = "http://samples.juddi.apache.org/", wsdlLocation = "src/main/resources/wsdl/helloworld.wsdl")
38 public class HelloWorld_Service
39 extends Service
40 {
41
42 private final static URL HELLOWORLD_WSDL_LOCATION;
43
44 private final static QName HELLOWORLD_QNAME = new QName("http://samples.juddi.apache.org/", "HelloWorld");
45
46 static {
47 HELLOWORLD_WSDL_LOCATION = ClassUtil.getResource("/wsdl/helloworld.wsdl",HelloWorld_Service.class);
48 }
49
50 public HelloWorld_Service() {
51 super(__getWsdlLocation(), HELLOWORLD_QNAME);
52 }
53
54 public HelloWorld_Service(URL wsdlLocation) {
55 super(wsdlLocation, HELLOWORLD_QNAME);
56 }
57
58 public HelloWorld_Service(URL wsdlLocation, QName serviceName) {
59 super(wsdlLocation, serviceName);
60 }
61
62
63
64
65
66
67 @WebEndpoint(name = "HelloWorldImplPort")
68 public HelloWorld getHelloWorldImplPort() {
69 return super.getPort(new QName("http://samples.juddi.apache.org/", "HelloWorldImplPort"), HelloWorld.class);
70 }
71
72 private static URL __getWsdlLocation() {
73 return HELLOWORLD_WSDL_LOCATION;
74 }
75
76 }