?? factorizationservicelocator.java
字號:
/**
* FactorizationServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package factorization.service.Factorization;
public class FactorizationServiceLocator extends org.apache.axis.client.Service implements factorization.service.Factorization.FactorizationService {
// Use to get a proxy class for GridServiceSOAPBindingPort
private final java.lang.String GridServiceSOAPBindingPort_address = "http://localhost/ogsa/services/FactorizationService";
public java.lang.String getGridServiceSOAPBindingPortAddress() {
return GridServiceSOAPBindingPort_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String GridServiceSOAPBindingPortWSDDServiceName = "GridServiceSOAPBindingPort";
public java.lang.String getGridServiceSOAPBindingPortWSDDServiceName() {
return GridServiceSOAPBindingPortWSDDServiceName;
}
public void setGridServiceSOAPBindingPortWSDDServiceName(java.lang.String name) {
GridServiceSOAPBindingPortWSDDServiceName = name;
}
public org.gridforum.ogsi.GridService getGridServiceSOAPBindingPort() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(GridServiceSOAPBindingPort_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getGridServiceSOAPBindingPort(endpoint);
}
public org.gridforum.ogsi.GridService getGridServiceSOAPBindingPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub _stub = new org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub(portAddress, this);
_stub.setPortName(getGridServiceSOAPBindingPortWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
// Use to get a proxy class for FactorizationService
private final java.lang.String FactorizationService_address = "http://localhost/ogsa/services/FactorizationService";
public java.lang.String getFactorizationServiceAddress() {
return FactorizationService_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String FactorizationServiceWSDDServiceName = "FactorizationService";
public java.lang.String getFactorizationServiceWSDDServiceName() {
return FactorizationServiceWSDDServiceName;
}
public void setFactorizationServiceWSDDServiceName(java.lang.String name) {
FactorizationServiceWSDDServiceName = name;
}
public factorization.service.Factorization.FactorizationPortType getFactorizationService() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(FactorizationService_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getFactorizationService(endpoint);
}
public factorization.service.Factorization.FactorizationPortType getFactorizationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
factorization.service.Factorization.FactorizationServiceSoapBindingStub _stub = new factorization.service.Factorization.FactorizationServiceSoapBindingStub(portAddress, this);
_stub.setPortName(getFactorizationServiceWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
/**
* 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(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
try {
if (org.gridforum.ogsi.GridService.class.isAssignableFrom(serviceEndpointInterface)) {
org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub _stub = new org.gridforum.ogsi.bindings.GridServiceSOAPBindingStub(new java.net.URL(GridServiceSOAPBindingPort_address), this);
_stub.setPortName(getGridServiceSOAPBindingPortWSDDServiceName());
return _stub;
}
if (factorization.service.Factorization.FactorizationPortType.class.isAssignableFrom(serviceEndpointInterface)) {
factorization.service.Factorization.FactorizationServiceSoapBindingStub _stub = new factorization.service.Factorization.FactorizationServiceSoapBindingStub(new java.net.URL(FactorizationService_address), this);
_stub.setPortName(getFactorizationServiceWSDDServiceName());
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);
}
String inputPortName = portName.getLocalPart();
if ("GridServiceSOAPBindingPort".equals(inputPortName)) {
return getGridServiceSOAPBindingPort();
}
else if ("FactorizationService".equals(inputPortName)) {
return getFactorizationService();
}
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://factorization/service/Factorization", "FactorizationService");
}
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("GridServiceSOAPBindingPort"));
ports.add(new javax.xml.namespace.QName("FactorizationService"));
}
return ports.iterator();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -