package com.oracle.ucm.generic;

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 111209.0821.28162)

@WebServiceClient(wsdlLocation="http://SLC03NBL.us.oracle.com:16200/idcws/GenericSoapPort?wsdl",
  targetNamespace="urn:GenericSoap", name="GenericSoapService")
public class GenericSoapService
  extends Service
{
  private static URL wsdlLocationURL;

  private static Logger logger;
  static
  {
    try
    {
      logger = Logger.getLogger("com.oracle.ucm.generic.GenericSoapService");
      URL baseUrl = GenericSoapService.class.getResource(".");
      if (baseUrl == null)
      {
        wsdlLocationURL =
            GenericSoapService.class.getResource("http://SLC03NBL.us.oracle.com:16200/idcws/GenericSoapPort?wsdl");
        if (wsdlLocationURL == null)
        {
          baseUrl = new File(".").toURL();
          wsdlLocationURL =
              new URL(baseUrl, "http://SLC03NBL.us.oracle.com:16200/idcws/GenericSoapPort?wsdl");
        }
      }
      else
      {
                if (!baseUrl.getPath().endsWith("/")) {
         baseUrl = new URL(baseUrl, baseUrl.getPath() + "/");
}
                wsdlLocationURL =
            new URL(baseUrl, "http://SLC03NBL.us.oracle.com:16200/idcws/GenericSoapPort?wsdl");
      }
    }
    catch (MalformedURLException e)
    {
      logger.log(Level.ALL,
          "Failed to create wsdlLocationURL using http://SLC03NBL.us.oracle.com:16200/idcws/GenericSoapPort?wsdl",
          e);
    }
  }

  public GenericSoapService()
  {
    super(wsdlLocationURL,
          new QName("urn:GenericSoap", "GenericSoapService"));
  }

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

  @WebEndpoint(name="GenericSoapPort")
  public com.oracle.ucm.generic.GenericSoapPortType getGenericSoapPort()
  {
    return (com.oracle.ucm.generic.GenericSoapPortType) super.getPort(new QName("urn:GenericSoap",
                                                                                "GenericSoapPort"),
                                                                      com.oracle.ucm.generic.GenericSoapPortType.class);
  }

  @WebEndpoint(name="GenericSoapPort")
  public com.oracle.ucm.generic.GenericSoapPortType getGenericSoapPort(WebServiceFeature... features)
  {
    return (com.oracle.ucm.generic.GenericSoapPortType) super.getPort(new QName("urn:GenericSoap",
                                                                                "GenericSoapPort"),
                                                                      com.oracle.ucm.generic.GenericSoapPortType.class,
                                                                      features);
  }
}
