public WeatherWebServiceSoap_PortType getWeatherWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { try { WeatherWebServiceSoap_BindingStub _stub = new WeatherWebServiceSoap_BindingStub(portAddress, this); _stub.setPortName(getWeatherWebServiceSoapWSDDServiceName()); 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. 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 (WeatherWebServiceSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) { WeatherWebServiceSoap_BindingStub _stub = new WeatherWebServiceSoap_BindingStub( new java.net.URL(WeatherWebServiceSoap_address), this); _stub.setPortName(getWeatherWebServiceSoapWSDDServiceName()); return _stub; } if (WeatherWebServiceSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) { WeatherWebServiceSoap12Stub _stub = new WeatherWebServiceSoap12Stub( new java.net.URL(WeatherWebServiceSoap12_address), this); _stub.setPortName(getWeatherWebServiceSoap12WSDDServiceName()); return _stub; } } catch (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())); }