001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.external.kc.webService;
017    /*
018     * 
019     */
020    
021    import java.net.MalformedURLException;
022    import java.net.URL;
023    
024    import javax.xml.namespace.QName;
025    import javax.xml.ws.WebEndpoint;
026    import javax.xml.ws.WebServiceClient;
027    import javax.xml.ws.WebServiceFeature;
028    
029    import org.kuali.kfs.module.external.kc.KcConstants;
030    import org.kuali.kfs.module.external.kc.service.KfsService;
031    
032    /**
033     * This class was generated by Apache CXF 2.2.10
034     * Wed Mar 02 08:02:23 HST 2011
035     * Generated source version: 2.2.10
036     * 
037     */
038    
039    
040    @WebServiceClient(name = KcConstants.Cfda.SOAP_SERVICE_NAME, 
041                      wsdlLocation = "http://test.kc.kuali.org:80/kc-trunk/remoting/cfdaNumberSoapService?wsdl",
042                      targetNamespace = KcConstants.KC_NAMESPACE_URI) 
043    public class CfdaNumberSoapService extends KfsService {
044    
045         public final static QName CfdaNumberServicePort = new QName(KcConstants.KC_NAMESPACE_URI, KcConstants.Cfda.SERVICE_PORT);
046         static {
047             try {
048                getWsdl(KcConstants.Cfda.SERVICE); 
049              } catch (MalformedURLException e) {
050                  LOG.warn("Can not initialize the wsdl");
051              }
052         }
053    
054        public CfdaNumberSoapService() throws MalformedURLException {
055            super(getWsdl(KcConstants.Cfda.SERVICE), KcConstants.Cfda.SERVICE);
056        }
057        
058    
059        /**
060         * 
061         * @return
062         *     returns CfdaNumberService
063         */
064        @WebEndpoint(name =  KcConstants.Cfda.SERVICE_PORT)
065        public CfdaNumberService getCfdaNumberServicePort() {
066            return super.getPort(CfdaNumberServicePort, CfdaNumberService.class);
067        }
068    
069        /**
070         * 
071         * @param features
072         *     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.
073         * @return
074         *     returns CfdaNumberService
075         */
076        @WebEndpoint(name =  KcConstants.Cfda.SERVICE_PORT)
077        public CfdaNumberService getCfdaNumberServicePort(WebServiceFeature... features) {
078            return super.getPort(CfdaNumberServicePort, CfdaNumberService.class, features);
079        }
080    
081        public URL getWsdl() throws MalformedURLException {
082            return super.getWsdl(KcConstants.Cfda.SERVICE);
083        }
084    
085    }