StoreAccessLocalServiceLocator.java
资源名称:MyStore.rar [点击查看]
上传用户:hgs128
上传日期:2007-02-03
资源大小:166k
文件大小:4k
源码类别:
百货/超市行业
开发平台:
WINDOWS
- /**
- * StoreAccessLocalServiceLocator.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis WSDL2Java emitter.
- */
- package webservice;
- public class StoreAccessLocalServiceLocator extends org.apache.axis.client.Service implements webservice.StoreAccessLocalService {
- // Use to get a proxy class for MyStoreLoginService
- private final java.lang.String MyStoreLoginService_address = "http://127.0.0.1:8080/axis/services/MyStoreLoginService";
- public java.lang.String getMyStoreLoginServiceAddress() {
- return MyStoreLoginService_address;
- }
- // The WSDD service name defaults to the port name.
- private java.lang.String MyStoreLoginServiceWSDDServiceName = "MyStoreLoginService";
- public java.lang.String getMyStoreLoginServiceWSDDServiceName() {
- return MyStoreLoginServiceWSDDServiceName;
- }
- public void setMyStoreLoginServiceWSDDServiceName(java.lang.String name) {
- MyStoreLoginServiceWSDDServiceName = name;
- }
- public webservice.StoreAccessLocal getMyStoreLoginService() throws javax.xml.rpc.ServiceException {
- java.net.URL endpoint;
- try {
- endpoint = new java.net.URL(MyStoreLoginService_address);
- }
- catch (java.net.MalformedURLException e) {
- throw new javax.xml.rpc.ServiceException(e);
- }
- return getMyStoreLoginService(endpoint);
- }
- public webservice.StoreAccessLocal getMyStoreLoginService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
- try {
- webservice.MyStoreLoginServiceSoapBindingStub _stub = new webservice.MyStoreLoginServiceSoapBindingStub(portAddress, this);
- _stub.setPortName(getMyStoreLoginServiceWSDDServiceName());
- 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 (webservice.StoreAccessLocal.class.isAssignableFrom(serviceEndpointInterface)) {
- webservice.MyStoreLoginServiceSoapBindingStub _stub = new webservice.MyStoreLoginServiceSoapBindingStub(new java.net.URL(MyStoreLoginService_address), this);
- _stub.setPortName(getMyStoreLoginServiceWSDDServiceName());
- 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 ("MyStoreLoginService".equals(inputPortName)) {
- return getMyStoreLoginService();
- }
- 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://127.0.0.1:8080/axis/services/MyStoreLoginService", "StoreAccessLocalService");
- }
- 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("MyStoreLoginService"));
- }
- return ports.iterator();
- }
- }