📄 weather_x0020_webservicelocator.java
字号:
/**
* Weather_x0020_WebServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com._6617.fhs.IPService;
public class Weather_x0020_WebServiceLocator extends org.apache.axis.client.Service implements com._6617.fhs.IPService.Weather_x0020_WebService {
/**
* <b>IP归属地查询,IP地址库及时更新。</b>联系QQ:301109640
*/
public Weather_x0020_WebServiceLocator() {
}
public Weather_x0020_WebServiceLocator(org.apache.axis.EngineConfiguration config) {
super(config);
}
public Weather_x0020_WebServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
super(wsdlLoc, sName);
}
// Use to get a proxy class for Weather_x0020_WebServiceSoap12
private java.lang.String Weather_x0020_WebServiceSoap12_address = "http://fhs.6617.com/getip.asmx";
public java.lang.String getWeather_x0020_WebServiceSoap12Address() {
return Weather_x0020_WebServiceSoap12_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String Weather_x0020_WebServiceSoap12WSDDServiceName = "Weather_x0020_WebServiceSoap12";
public java.lang.String getWeather_x0020_WebServiceSoap12WSDDServiceName() {
return Weather_x0020_WebServiceSoap12WSDDServiceName;
}
public void setWeather_x0020_WebServiceSoap12WSDDServiceName(java.lang.String name) {
Weather_x0020_WebServiceSoap12WSDDServiceName = name;
}
public com._6617.fhs.IPService.Weather_x0020_WebServiceSoap getWeather_x0020_WebServiceSoap12() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(Weather_x0020_WebServiceSoap12_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getWeather_x0020_WebServiceSoap12(endpoint);
}
public com._6617.fhs.IPService.Weather_x0020_WebServiceSoap getWeather_x0020_WebServiceSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
com._6617.fhs.IPService.Weather_x0020_WebServiceSoap12Stub _stub = new com._6617.fhs.IPService.Weather_x0020_WebServiceSoap12Stub(portAddress, this);
_stub.setPortName(getWeather_x0020_WebServiceSoap12WSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setWeather_x0020_WebServiceSoap12EndpointAddress(java.lang.String address) {
Weather_x0020_WebServiceSoap12_address = address;
}
// Use to get a proxy class for Weather_x0020_WebServiceSoap
private java.lang.String Weather_x0020_WebServiceSoap_address = "http://fhs.6617.com/getip.asmx";
public java.lang.String getWeather_x0020_WebServiceSoapAddress() {
return Weather_x0020_WebServiceSoap_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String Weather_x0020_WebServiceSoapWSDDServiceName = "Weather_x0020_WebServiceSoap";
public java.lang.String getWeather_x0020_WebServiceSoapWSDDServiceName() {
return Weather_x0020_WebServiceSoapWSDDServiceName;
}
public void setWeather_x0020_WebServiceSoapWSDDServiceName(java.lang.String name) {
Weather_x0020_WebServiceSoapWSDDServiceName = name;
}
public com._6617.fhs.IPService.Weather_x0020_WebServiceSoap getWeather_x0020_WebServiceSoap() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(Weather_x0020_WebServiceSoap_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getWeather_x0020_WebServiceSoap(endpoint);
}
public com._6617.fhs.IPService.Weather_x0020_WebServiceSoap getWeather_x0020_WebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
com._6617.fhs.IPService.Weather_x0020_WebServiceSoapStub _stub = new com._6617.fhs.IPService.Weather_x0020_WebServiceSoapStub(portAddress, this);
_stub.setPortName(getWeather_x0020_WebServiceSoapWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setWeather_x0020_WebServiceSoapEndpointAddress(java.lang.String address) {
Weather_x0020_WebServiceSoap_address = address;
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
* This service has multiple ports for a given interface;
* the proxy implementation returned may be indeterminate.
*/
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
try {
if (com._6617.fhs.IPService.Weather_x0020_WebServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
com._6617.fhs.IPService.Weather_x0020_WebServiceSoap12Stub _stub = new com._6617.fhs.IPService.Weather_x0020_WebServiceSoap12Stub(new java.net.URL(Weather_x0020_WebServiceSoap12_address), this);
_stub.setPortName(getWeather_x0020_WebServiceSoap12WSDDServiceName());
return _stub;
}
if (com._6617.fhs.IPService.Weather_x0020_WebServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
com._6617.fhs.IPService.Weather_x0020_WebServiceSoapStub _stub = new com._6617.fhs.IPService.Weather_x0020_WebServiceSoapStub(new java.net.URL(Weather_x0020_WebServiceSoap_address), this);
_stub.setPortName(getWeather_x0020_WebServiceSoapWSDDServiceName());
return _stub;
}
}
catch (java.lang.Throwable t) {
throw new javax.xml.rpc.ServiceException(t);
}
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
if (portName == null) {
return getPort(serviceEndpointInterface);
}
java.lang.String inputPortName = portName.getLocalPart();
if ("Weather_x0020_WebServiceSoap12".equals(inputPortName)) {
return getWeather_x0020_WebServiceSoap12();
}
else if ("Weather_x0020_WebServiceSoap".equals(inputPortName)) {
return getWeather_x0020_WebServiceSoap();
}
else {
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
((org.apache.axis.client.Stub) _stub).setPortName(portName);
return _stub;
}
}
public javax.xml.namespace.QName getServiceName() {
return new javax.xml.namespace.QName("http://fhs.6617.com/IPService", "Weather_x0020_WebService");
}
private java.util.HashSet ports = null;
public java.util.Iterator getPorts() {
if (ports == null) {
ports = new java.util.HashSet();
ports.add(new javax.xml.namespace.QName("http://fhs.6617.com/IPService", "Weather_x0020_WebServiceSoap12"));
ports.add(new javax.xml.namespace.QName("http://fhs.6617.com/IPService", "Weather_x0020_WebServiceSoap"));
}
return ports.iterator();
}
/**
* Set the endpoint address for the specified port name.
*/
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
if ("Weather_x0020_WebServiceSoap12".equals(portName)) {
setWeather_x0020_WebServiceSoap12EndpointAddress(address);
}
else
if ("Weather_x0020_WebServiceSoap".equals(portName)) {
setWeather_x0020_WebServiceSoapEndpointAddress(address);
}
else
{ // Unknown Port Name
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
}
}
/**
* Set the endpoint address for the specified port name.
*/
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
setEndpointAddress(portName.getLocalPart(), address);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -