예제 #1
0
 /**
  * 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 (com.bancoazteca.elite.wsfotounica.ServiceSoap.class.isAssignableFrom(
         serviceEndpointInterface)) {
       com.bancoazteca.elite.wsfotounica.ServiceSoapStub _stub =
           new com.bancoazteca.elite.wsfotounica.ServiceSoapStub(
               new java.net.URL(ServiceSoap_address), this);
       _stub.setPortName(getServiceSoapWSDDServiceName());
       return _stub;
     }
     if (com.bancoazteca.elite.wsfotounica.ServiceSoap.class.isAssignableFrom(
         serviceEndpointInterface)) {
       com.bancoazteca.elite.wsfotounica.ServiceSoap12Stub _stub =
           new com.bancoazteca.elite.wsfotounica.ServiceSoap12Stub(
               new java.net.URL(ServiceSoap12_address), this);
       _stub.setPortName(getServiceSoap12WSDDServiceName());
       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()));
 }
예제 #2
0
 public com.bancoazteca.elite.wsfotounica.ServiceSoap getServiceSoap(java.net.URL portAddress)
     throws javax.xml.rpc.ServiceException {
   try {
     com.bancoazteca.elite.wsfotounica.ServiceSoapStub _stub =
         new com.bancoazteca.elite.wsfotounica.ServiceSoapStub(portAddress, this);
     _stub.setPortName(getServiceSoapWSDDServiceName());
     return _stub;
   } catch (org.apache.axis.AxisFault e) {
     return null;
   }
 }