All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sugarcrm.ws.soap.Sugarsoap Maven / Gradle / Ivy

There is a newer version: 5.3.6
Show newest version

package com.sugarcrm.ws.soap;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.jws.HandlerChain;
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;


/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.7-b01-
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "sugarsoap", targetNamespace = "http://www.sugarcrm.com/sugarcrm", wsdlLocation = "file:/C:/work/workspace2/trunk/target/checkout/sugarcrm/src/wsdl/sugarcrm.wsdl")
@HandlerChain(file = "Sugarsoap_handler.xml")
public class Sugarsoap
    extends Service
{

    private final static URL SUGARSOAP_WSDL_LOCATION;
    private final static Logger logger = Logger.getLogger(com.sugarcrm.ws.soap.Sugarsoap.class.getName());

    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = com.sugarcrm.ws.soap.Sugarsoap.class.getResource(".");
            url = new URL(baseUrl, "file:/C:/work/workspace2/trunk/target/checkout/sugarcrm/src/wsdl/sugarcrm.wsdl");
        } catch (MalformedURLException e) {
            logger.warning("Failed to create URL for the wsdl Location: 'file:/C:/work/workspace2/trunk/target/checkout/sugarcrm/src/wsdl/sugarcrm.wsdl', retrying as a local file");
            logger.warning(e.getMessage());
        }
        SUGARSOAP_WSDL_LOCATION = url;
    }

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

    public Sugarsoap() {
        super(SUGARSOAP_WSDL_LOCATION, new QName("http://www.sugarcrm.com/sugarcrm", "sugarsoap"));
    }

    /**
     * 
     * @return
     *     returns SugarsoapPortType
     */
    @WebEndpoint(name = "sugarsoapPort")
    public SugarsoapPortType getSugarsoapPort() {
        return super.getPort(new QName("http://www.sugarcrm.com/sugarcrm", "sugarsoapPort"), SugarsoapPortType.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the features parameter will have their default values.
     * @return
     *     returns SugarsoapPortType
     */
    @WebEndpoint(name = "sugarsoapPort")
    public SugarsoapPortType getSugarsoapPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://www.sugarcrm.com/sugarcrm", "sugarsoapPort"), SugarsoapPortType.class, features);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy