public localhost.moteur_service_wsdl.Moteur_servicePortType getmoteur_service( java.net.URL portAddress) throws javax.xml.rpc.ServiceException { try { localhost.moteur_service_wsdl.Moteur_BindingStub _stub = new localhost.moteur_service_wsdl.Moteur_BindingStub(portAddress, this); _stub.setPortName(getmoteur_serviceWSDDServiceName()); 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 (localhost.moteur_service_wsdl.Moteur_servicePortType.class.isAssignableFrom( serviceEndpointInterface)) { localhost.moteur_service_wsdl.Moteur_BindingStub _stub = new localhost.moteur_service_wsdl.Moteur_BindingStub( new java.net.URL(moteur_service_address), this); _stub.setPortName(getmoteur_serviceWSDDServiceName()); 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())); }