package org.jboss.test.ws.jaxws.jbws2937;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
* Generated source version: 2.0
*
*/
@WebServiceClient(name = "EndpointService", targetNamespace = "http://jboss.org/jbws2937", wsdlLocation = "file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/service.wsdl")
public class EndpointService
extends Service
{
private final static URL ENDPOINTSERVICE_WSDL_LOCATION;
private final static WebServiceException ENDPOINTSERVICE_EXCEPTION;
private final static QName ENDPOINTSERVICE_QNAME = new QName("http://jboss.org/jbws2937", "EndpointService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/service.wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
ENDPOINTSERVICE_WSDL_LOCATION = url;
ENDPOINTSERVICE_EXCEPTION = e;
}
public EndpointService() {
super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME);
}
public EndpointService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
/**
*
* @return
* returns Endpoint
*/
@WebEndpoint(name = "EndpointPort")
public Endpoint getEndpointPort() {
return super.getPort(new QName("http://jboss.org/jbws2937", "EndpointPort"), Endpoint.class);
}
private static URL __getWsdlLocation() {
if (ENDPOINTSERVICE_EXCEPTION!= null) {
throw ENDPOINTSERVICE_EXCEPTION;
}
return ENDPOINTSERVICE_WSDL_LOCATION;
}
}