
/*
 *  Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*/
package proxy.ws;

import java.io.File;

import java.net.MalformedURLException;
import java.net.URL;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
// !DO NOT EDIT THIS FILE!
// This source file is generated by Oracle tools
// Contents may be subject to change
// For reporting problems, use the following
// Version = Oracle WebServices (11.1.1.0.0, build 110329.0915.20612)

@WebServiceClient(wsdlLocation="http://slc04eld.us.oracle.com:7003/ws/wssunt?wsdl",
  targetNamespace="http://wssunt/", name="HelloWorldService")
public class HelloWorldService
  extends Service
{
  private static URL wsdlLocationURL;

  private static Logger logger;
  static
  {
    try
    {
      logger = Logger.getLogger("proxy.ws.HelloWorldService");
      URL baseUrl = HelloWorldService.class.getResource(".");
      if (baseUrl == null)
      {
        wsdlLocationURL =
            HelloWorldService.class.getResource("http://slc04eld.us.oracle.com:7003/ws/wssunt?wsdl");
        if (wsdlLocationURL == null)
        {
          baseUrl = new File(".").toURL();
          wsdlLocationURL =
              new URL(baseUrl, "http://slc04eld.us.oracle.com:7003/ws/wssunt?wsdl");
        }
      }
      else
      {
        wsdlLocationURL =
            new URL(baseUrl, "http://slc04eld.us.oracle.com:7003/ws/wssunt?wsdl");
      }
    }
    catch (MalformedURLException e)
    {
      logger.log(Level.ALL,
          "Failed to create wsdlLocationURL using http://slc04eld.us.oracle.com:7003/ws/wssunt?wsdl",
          e);
    }
  }

  public HelloWorldService()
  {
    super(wsdlLocationURL,
          new QName("http://wssunt/", "HelloWorldService"));
  }

  public HelloWorldService(URL wsdlLocation, QName serviceName)
  {
    super(wsdlLocation, serviceName);
  }

  @WebEndpoint(name="HelloWorldPort")
  public proxy.ws.HelloWorld getHelloWorldPort()
  {
    return (proxy.ws.HelloWorld) super.getPort(new QName("http://wssunt/",
                                                         "HelloWorldPort"),
                                               proxy.ws.HelloWorld.class);
  }

  @WebEndpoint(name="HelloWorldPort")
  public proxy.ws.HelloWorld getHelloWorldPort(WebServiceFeature... features)
  {
    return (proxy.ws.HelloWorld) super.getPort(new QName("http://wssunt/",
                                                         "HelloWorldPort"),
                                               proxy.ws.HelloWorld.class,
                                               features);
  }
}
