📄 adcinterfaceforsilocator.java
字号:
/**
* ADCInterfaceForSILocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package mcm.adc.client;
public class ADCInterfaceForSILocator extends org.apache.axis.client.Service implements mcm.adc.client.ADCInterfaceForSI {
public ADCInterfaceForSILocator() {
}
public ADCInterfaceForSILocator(org.apache.axis.EngineConfiguration config) {
super(config);
}
public ADCInterfaceForSILocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
super(wsdlLoc, sName);
}
// Use to get a proxy class for ADCInterfaceForSISoap12
private java.lang.String ADCInterfaceForSISoap12_address = "http://localhost:8080/ADCWSInterfaceTest/ADCInterfaceForSI.asmx";
public java.lang.String getADCInterfaceForSISoap12Address() {
return ADCInterfaceForSISoap12_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String ADCInterfaceForSISoap12WSDDServiceName = "ADCInterfaceForSISoap12";
public java.lang.String getADCInterfaceForSISoap12WSDDServiceName() {
return ADCInterfaceForSISoap12WSDDServiceName;
}
public void setADCInterfaceForSISoap12WSDDServiceName(java.lang.String name) {
ADCInterfaceForSISoap12WSDDServiceName = name;
}
public mcm.adc.client.ADCInterfaceForSISoap getADCInterfaceForSISoap12() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(ADCInterfaceForSISoap12_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getADCInterfaceForSISoap12(endpoint);
}
public mcm.adc.client.ADCInterfaceForSISoap getADCInterfaceForSISoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
mcm.adc.client.ADCInterfaceForSISoap12Stub _stub = new mcm.adc.client.ADCInterfaceForSISoap12Stub(portAddress, this);
_stub.setPortName(getADCInterfaceForSISoap12WSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setADCInterfaceForSISoap12EndpointAddress(java.lang.String address) {
ADCInterfaceForSISoap12_address = address;
}
// Use to get a proxy class for ADCInterfaceForSISoap
private java.lang.String ADCInterfaceForSISoap_address = "http://localhost:8080/ADCWSInterfaceTest/ADCInterfaceForSI.asmx";
public java.lang.String getADCInterfaceForSISoapAddress() {
return ADCInterfaceForSISoap_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String ADCInterfaceForSISoapWSDDServiceName = "ADCInterfaceForSISoap";
public java.lang.String getADCInterfaceForSISoapWSDDServiceName() {
return ADCInterfaceForSISoapWSDDServiceName;
}
public void setADCInterfaceForSISoapWSDDServiceName(java.lang.String name) {
ADCInterfaceForSISoapWSDDServiceName = name;
}
public mcm.adc.client.ADCInterfaceForSISoap getADCInterfaceForSISoap() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(ADCInterfaceForSISoap_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getADCInterfaceForSISoap(endpoint);
}
public mcm.adc.client.ADCInterfaceForSISoap getADCInterfaceForSISoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
mcm.adc.client.ADCInterfaceForSISoapStub _stub = new mcm.adc.client.ADCInterfaceForSISoapStub(portAddress, this);
_stub.setPortName(getADCInterfaceForSISoapWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setADCInterfaceForSISoapEndpointAddress(java.lang.String address) {
ADCInterfaceForSISoap_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 (mcm.adc.client.ADCInterfaceForSISoap.class.isAssignableFrom(serviceEndpointInterface)) {
mcm.adc.client.ADCInterfaceForSISoap12Stub _stub = new mcm.adc.client.ADCInterfaceForSISoap12Stub(new java.net.URL(ADCInterfaceForSISoap12_address), this);
_stub.setPortName(getADCInterfaceForSISoap12WSDDServiceName());
return _stub;
}
if (mcm.adc.client.ADCInterfaceForSISoap.class.isAssignableFrom(serviceEndpointInterface)) {
mcm.adc.client.ADCInterfaceForSISoapStub _stub = new mcm.adc.client.ADCInterfaceForSISoapStub(new java.net.URL(ADCInterfaceForSISoap_address), this);
_stub.setPortName(getADCInterfaceForSISoapWSDDServiceName());
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 ("ADCInterfaceForSISoap12".equals(inputPortName)) {
return getADCInterfaceForSISoap12();
}
else if ("ADCInterfaceForSISoap".equals(inputPortName)) {
return getADCInterfaceForSISoap();
}
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://adc.siinterface/", "ADCInterfaceForSI");
}
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://adc.siinterface/", "ADCInterfaceForSISoap12"));
ports.add(new javax.xml.namespace.QName("http://adc.siinterface/", "ADCInterfaceForSISoap"));
}
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 ("ADCInterfaceForSISoap12".equals(portName)) {
setADCInterfaceForSISoap12EndpointAddress(address);
}
else
if ("ADCInterfaceForSISoap".equals(portName)) {
setADCInterfaceForSISoapEndpointAddress(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 + -