package oracle.demo.pts.fusionproxy.account;

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

@WebServiceClient(wsdlLocation="https://adc-fap0913-crm.oracledemos.com/crmCommonSalesParties/AccountService?WSDL",
  targetNamespace="http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/",
  name="AccountService")
public class AccountService_Service
  extends Service
{
  private static URL wsdlLocationURL;

  private static Logger logger;
  static
  {
    try
    {
      logger = Logger.getLogger("oracle.demo.pts.fusionproxy.account.AccountService_Service");
      URL baseUrl = AccountService_Service.class.getResource(".");
      if (baseUrl == null)
      {
        wsdlLocationURL =
            AccountService_Service.class.getResource("https://adc-fap0913-crm.oracledemos.com/crmCommonSalesParties/AccountService?WSDL");
        if (wsdlLocationURL == null)
        {
          baseUrl = new File(".").toURL();
          wsdlLocationURL =
              new URL(baseUrl, "https://adc-fap0913-crm.oracledemos.com/crmCommonSalesParties/AccountService?WSDL");
        }
      }
      else
      {
                if (!baseUrl.getPath().endsWith("/")) {
         baseUrl = new URL(baseUrl, baseUrl.getPath() + "/");
}
                wsdlLocationURL =
            new URL(baseUrl, "https://adc-fap0913-crm.oracledemos.com/crmCommonSalesParties/AccountService?WSDL");
      }
    }
    catch (MalformedURLException e)
    {
      logger.log(Level.ALL,
          "Failed to create wsdlLocationURL using https://adc-fap0913-crm.oracledemos.com/crmCommonSalesParties/AccountService?WSDL",
          e);
    }
  }

  public AccountService_Service()
  {
    super(wsdlLocationURL,
          new QName("http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/",
                    "AccountService"));
  }

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

  @WebEndpoint(name="AccountServiceSoapHttpPort")
  public oracle.demo.pts.fusionproxy.account.AccountService getAccountServiceSoapHttpPort()
  {
    return (oracle.demo.pts.fusionproxy.account.AccountService) super.getPort(new QName("http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/",
                                                                                        "AccountServiceSoapHttpPort"),
                                                                              oracle.demo.pts.fusionproxy.account.AccountService.class);
  }

  @WebEndpoint(name="AccountServiceSoapHttpPort")
  public oracle.demo.pts.fusionproxy.account.AccountService getAccountServiceSoapHttpPort(WebServiceFeature... features)
  {
    return (oracle.demo.pts.fusionproxy.account.AccountService) super.getPort(new QName("http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/",
                                                                                        "AccountServiceSoapHttpPort"),
                                                                              oracle.demo.pts.fusionproxy.account.AccountService.class,
                                                                              features);
  }
}
