📄 notificationservicelocator.java
字号:
/**
* NotificationServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service;
public class NotificationServiceLocator extends org.apache.axis.client.Service implements cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service.NotificationService {
// Use to get a proxy class for Notification
private final java.lang.String Notification_address = "http://localhost:9080/NotificationService/services/Notification";
public java.lang.String getNotificationAddress() {
return Notification_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String NotificationWSDDServiceName = "Notification";
public java.lang.String getNotificationWSDDServiceName() {
return NotificationWSDDServiceName;
}
public void setNotificationWSDDServiceName(java.lang.String name) {
NotificationWSDDServiceName = name;
}
public cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0._interface.Notification getNotification() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(Notification_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getNotification(endpoint);
}
public cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0._interface.Notification getNotification(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service.NotificationBindingStub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service.NotificationBindingStub(portAddress, this);
_stub.setPortName(getNotificationWSDDServiceName());
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 (cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0._interface.Notification.class.isAssignableFrom(serviceEndpointInterface)) {
cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service.NotificationBindingStub _stub = new cn.com.chinatelecom.www.wsdl.ctcc.payment.notification.v1_0.service.NotificationBindingStub(new java.net.URL(Notification_address), this);
_stub.setPortName(getNotificationWSDDServiceName());
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 ("Notification".equals(inputPortName)) {
return getNotification();
}
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://www.chinatelecom.com.cn/wsdl/ctcc/payment/notification/v1_0/service", "NotificationService");
}
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("Notification"));
}
return ports.iterator();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -