コード例 #1
0
 public uk.ac.ebi.www.WSKalign.WSKalign getWSKalign(java.net.URL portAddress)
     throws javax.xml.rpc.ServiceException {
   try {
     uk.ac.ebi.www.WSKalign.WSKalignSoapBindingStub _stub =
         new uk.ac.ebi.www.WSKalign.WSKalignSoapBindingStub(portAddress, this);
     _stub.setPortName(getWSKalignWSDDServiceName());
     return _stub;
   } catch (org.apache.axis.AxisFault e) {
     return null;
   }
 }
コード例 #2
0
 /**
  * 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 (uk.ac.ebi.www.WSKalign.WSKalign.class.isAssignableFrom(serviceEndpointInterface)) {
       uk.ac.ebi.www.WSKalign.WSKalignSoapBindingStub _stub =
           new uk.ac.ebi.www.WSKalign.WSKalignSoapBindingStub(
               new java.net.URL(WSKalign_address), this);
       _stub.setPortName(getWSKalignWSDDServiceName());
       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()));
 }