Guest User

HelloWorldImplService

a guest
Sep 3rd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. package helloworld;
  2.  
  3.  
  4. import java.net.MalformedURLException;
  5. import java.net.URL;
  6. import javax.xml.namespace.QName;
  7. import javax.xml.ws.Service;
  8. import javax.xml.ws.WebEndpoint;
  9. import javax.xml.ws.WebServiceClient;
  10. import javax.xml.ws.WebServiceException;
  11. import javax.xml.ws.WebServiceFeature;
  12.  
  13.  
  14. /**
  15. * This class was generated by the JAX-WS RI.
  16. * JAX-WS RI 2.2.4-b01
  17. * Generated source version: 2.2
  18. *
  19. */
  20. @WebServiceClient(name = "HelloWorldImplService", targetNamespace = "http://ws.stuff.com/", wsdlLocation = "http://adnvl082:9999/ws/hello?wsdl")
  21. public class HelloWorldImplService
  22. extends Service
  23. {
  24.  
  25. private final static URL HELLOWORLDIMPLSERVICE_WSDL_LOCATION;
  26. private final static WebServiceException HELLOWORLDIMPLSERVICE_EXCEPTION;
  27. private final static QName HELLOWORLDIMPLSERVICE_QNAME = new QName("http://ws.stuff.com/", "HelloWorldImplService");
  28.  
  29. static {
  30. URL url = null;
  31. WebServiceException e = null;
  32. try {
  33. url = new URL("http://localhost:9999/ws/hello?wsdl");
  34. } catch (MalformedURLException ex) {
  35. e = new WebServiceException(ex);
  36. }
  37. HELLOWORLDIMPLSERVICE_WSDL_LOCATION = url;
  38. HELLOWORLDIMPLSERVICE_EXCEPTION = e;
  39. }
  40.  
  41. public HelloWorldImplService() {
  42. super(__getWsdlLocation(), HELLOWORLDIMPLSERVICE_QNAME);
  43. }
  44.  
  45. public HelloWorldImplService(WebServiceFeature... features) {
  46. super(__getWsdlLocation(), HELLOWORLDIMPLSERVICE_QNAME, features);
  47. }
  48.  
  49. public HelloWorldImplService(URL wsdlLocation) {
  50. super(wsdlLocation, HELLOWORLDIMPLSERVICE_QNAME);
  51. }
  52.  
  53. public HelloWorldImplService(URL wsdlLocation, WebServiceFeature... features) {
  54. super(wsdlLocation, HELLOWORLDIMPLSERVICE_QNAME, features);
  55. }
  56.  
  57. public HelloWorldImplService(URL wsdlLocation, QName serviceName) {
  58. super(wsdlLocation, serviceName);
  59. }
  60.  
  61. public HelloWorldImplService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
  62. super(wsdlLocation, serviceName, features);
  63. }
  64.  
  65. /**
  66. *
  67. * @return
  68. * returns HelloWorld
  69. */
  70. @WebEndpoint(name = "HelloWorldImplPort")
  71. public HelloWorld getHelloWorldImplPort() {
  72. return super.getPort(new QName("http://ws.stuff.com/", "HelloWorldImplPort"), HelloWorld.class);
  73. }
  74.  
  75. /**
  76. *
  77. * @param features
  78. * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
  79. * @return
  80. * returns HelloWorld
  81. */
  82. @WebEndpoint(name = "HelloWorldImplPort")
  83. public HelloWorld getHelloWorldImplPort(WebServiceFeature... features) {
  84. return super.getPort(new QName("http://ws.stuff.com/", "HelloWorldImplPort"), HelloWorld.class, features);
  85. }
  86.  
  87. private static URL __getWsdlLocation() {
  88. if (HELLOWORLDIMPLSERVICE_EXCEPTION!= null) {
  89. throw HELLOWORLDIMPLSERVICE_EXCEPTION;
  90. }
  91. return HELLOWORLDIMPLSERVICE_WSDL_LOCATION;
  92. }
  93.  
  94. }
Advertisement
Add Comment
Please, Sign In to add comment