Пример #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.microsoft.schemas.sharepoint.soap.CopySoap.class.isAssignableFrom(
         serviceEndpointInterface)) {
       com.microsoft.schemas.sharepoint.soap.CopySoapStub _stub =
           new com.microsoft.schemas.sharepoint.soap.CopySoapStub(
               new java.net.URL(CopySoap_address), this);
       _stub.setPortName(getCopySoapWSDDServiceName());
       return _stub;
     }
     if (com.microsoft.schemas.sharepoint.soap.CopySoap.class.isAssignableFrom(
         serviceEndpointInterface)) {
       com.microsoft.schemas.sharepoint.soap.CopySoap12Stub _stub =
           new com.microsoft.schemas.sharepoint.soap.CopySoap12Stub(
               new java.net.URL(CopySoap12_address), this);
       _stub.setPortName(getCopySoap12WSDDServiceName());
       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.microsoft.schemas.sharepoint.soap.CopySoap getCopySoap12(java.net.URL portAddress)
     throws javax.xml.rpc.ServiceException {
   try {
     com.microsoft.schemas.sharepoint.soap.CopySoap12Stub _stub =
         new com.microsoft.schemas.sharepoint.soap.CopySoap12Stub(portAddress, this);
     _stub.setPortName(getCopySoap12WSDDServiceName());
     return _stub;
   } catch (org.apache.axis.AxisFault e) {
     return null;
   }
 }