net.webservicex.GlobalWeather Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fractal-bf-examples-meteo-model Show documentation
Show all versions of fractal-bf-examples-meteo-model Show documentation
This module is in charge of generating required classes to bind
a java interface toward a remote webservice. It uses th
org.apache.cxf:cxf-codegen-plugin to generate classes given the
WSDL file saved in src/main/wsdl. To keep things simple, the
wsdl file is saved here: more smart approaches might be adopted
if saving the WSDL file causes troubles.
package net.webservicex;
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 net.webservicex.GlobalWeatherSoap;
import net.webservicex.GlobalWeatherHttpPost;
import net.webservicex.GlobalWeatherHttpGet;
/**
* This class was generated by Apache CXF 2.0.9
* Thu Nov 13 13:52:27 CET 2008
* Generated source version: 2.0.9
*
*/
@WebServiceClient(name = "GlobalWeather",
wsdlLocation = "file:/Users/veleno/workspace/fractal-bf-parent/target/checkout/examples/meteo/model/src/main/wsdl/globalweather.asmx-WSDL.wsdl",
targetNamespace = "http://www.webserviceX.NET")
public class GlobalWeather extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://www.webserviceX.NET", "GlobalWeather");
public final static QName GlobalWeatherSoap = new QName("http://www.webserviceX.NET", "GlobalWeatherSoap");
public final static QName GlobalWeatherHttpPost = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpPost");
public final static QName GlobalWeatherHttpGet = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpGet");
static {
URL url = null;
try {
url = new URL("file:/Users/veleno/workspace/fractal-bf-parent/target/checkout/examples/meteo/model/src/main/wsdl/globalweather.asmx-WSDL.wsdl");
} catch (MalformedURLException e) {
System.err.println("Can not initialize the default wsdl from file:/Users/veleno/workspace/fractal-bf-parent/target/checkout/examples/meteo/model/src/main/wsdl/globalweather.asmx-WSDL.wsdl");
// e.printStackTrace();
}
WSDL_LOCATION = url;
}
public GlobalWeather(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public GlobalWeather(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public GlobalWeather() {
super(WSDL_LOCATION, SERVICE);
}
/**
*
* @return
* returns GlobalWeatherSoap
*/
@WebEndpoint(name = "GlobalWeatherSoap")
public GlobalWeatherSoap getGlobalWeatherSoap() {
return super.getPort(GlobalWeatherSoap, GlobalWeatherSoap.class);
}
/**
*
* @return
* returns GlobalWeatherHttpPost
*/
@WebEndpoint(name = "GlobalWeatherHttpPost")
public GlobalWeatherHttpPost getGlobalWeatherHttpPost() {
return super.getPort(GlobalWeatherHttpPost, GlobalWeatherHttpPost.class);
}
/**
*
* @return
* returns GlobalWeatherHttpGet
*/
@WebEndpoint(name = "GlobalWeatherHttpGet")
public GlobalWeatherHttpGet getGlobalWeatherHttpGet() {
return super.getPort(GlobalWeatherHttpGet, GlobalWeatherHttpGet.class);
}
}