Service.java
package org.apache.cxf.jaxws.schemavalidation;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import javax.xml.namespace.QName;
import jakarta.xml.ws.WebEndpoint;
import jakarta.xml.ws.WebServiceClient;
import jakarta.xml.ws.WebServiceFeature;
/**
* This class was generated by Apache CXF 4.1.3-SNAPSHOT-22c6265d4306187569b30c5b19682b37fe7d5c5c
* 2025-07-04T06:56:24.796Z
* Generated source version: 4.1.3-SNAPSHOT
*
*/
@WebServiceClient(name = "service",
wsdlLocation = "file:/src/project-parent/cxf/systests/jaxws/src/test/resources/wsdl_systest_jaxws/schemaValidation.wsdl",
targetNamespace = "http://cxf.apache.org/jaxws/schemavalidation")
public class Service extends jakarta.xml.ws.Service {
public static final URL WSDL_LOCATION;
public static final QName SERVICE = new QName("http://cxf.apache.org/jaxws/schemavalidation", "service");
public static final QName ServicePort = new QName("http://cxf.apache.org/jaxws/schemavalidation", "servicePort");
static {
URL url = null;
try {
url = URI.create("file:/src/project-parent/cxf/systests/jaxws/src/test/resources/wsdl_systest_jaxws/schemaValidation.wsdl").toURL();
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(Service.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "file:/src/project-parent/cxf/systests/jaxws/src/test/resources/wsdl_systest_jaxws/schemaValidation.wsdl");
}
WSDL_LOCATION = url;
}
public Service(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public Service(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public Service() {
super(WSDL_LOCATION, SERVICE);
}
public Service(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public Service(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
public Service(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns ServicePortType
*/
@WebEndpoint(name = "servicePort")
public ServicePortType getServicePort() {
return super.getPort(ServicePort, ServicePortType.class);
}
/**
*
* @param features
* A list of {@link jakarta.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns ServicePortType
*/
@WebEndpoint(name = "servicePort")
public ServicePortType getServicePort(WebServiceFeature... features) {
return super.getPort(ServicePort, ServicePortType.class, features);
}
}